Problem pushups
User Elwinthenerd
Submission Time 2024-11-11 15:47:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pushups.cpp: In function ‘int main()’:
pushups.cpp:19:2: error: ‘vector’ was not declared in this scope
19 | vector<int> a(n);
| ^~~~~~
pushups.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <cmath>
+++ |+#include <vector>
3 | using namespace std;
pushups.cpp:19:9: error: expected primary-expression before ‘int’
19 | vector<int> a(n);
| ^~~
pushups.cpp:21:10: error: ‘a’ was not declared in this scope
21 | cin >> a[i];
| ^