What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-11-19 17:27:22
variable sized array
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> //using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; ... Add solution -
C++ 2021-11-10 19:58:11
how to use vectors c++
#include <iostream> #include <vector> using namespace std; int main() { //vector element size const int size = 4; //vector with int data type //all elements are equal to 4 vector<int> myVect (size, 4); for (int i=0; i<s... Add solution