Problem | sumint |
---|---|
User | JhoCyber |
Submission Time | 2024-12-15 23:22:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | vector<int> meows(d);
| ^~~~~~
sumint.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;
sumint.cpp:7:12: error: expected primary-expression before ‘int’
7 | vector<int> meows(d);
| ^~~
sumint.cpp:10:21: error: ‘meows’ was not declared in this scope
10 | std::cin >> meows[i];
| ^~~~~
sumint.cpp:16:24: error: ‘meows’ was not declared in this scope
16 | total_meows += meows[i];
| ^~~~~