Problem smurf
User TheInvadr
Submission Time 2023-01-04 23:12:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smurf.cpp: In function ‘int main()’:
smurf.cpp:10:3: error: ‘vector’ was not declared in this scope
10 | vector<int> arr(n);
| ^~~~~~
smurf.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
smurf.cpp:10:10: error: expected primary-expression before ‘int’
10 | vector<int> arr(n);
| ^~~
smurf.cpp:21:14: error: ‘arr’ was not declared in this scope
21 | cin >> arr[currIdx];
| ^~~
smurf.cpp:25:15: error: ‘arr’ was not declared in this scope
25 | cout << arr[i] << " ";
| ^~~