Problem | sumint |
---|---|
User | Pushkaltoocool |
Submission Time | 2023-07-06 16:04:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp:6:30: error: ‘vector’ has not been declared
6 | int calculateMeowTotal(int d,vector<int>& meowCounts) {
| ^~~~~~
sumint.cpp:6:36: error: expected ‘,’ or ‘...’ before ‘<’ token
6 | int calculateMeowTotal(int d,vector<int>& meowCounts) {
| ^
sumint.cpp: In function ‘int calculateMeowTotal(int, int)’:
sumint.cpp:9:23: error: ‘meowCounts’ was not declared in this scope
9 | totalMeows += meowCounts[i];
| ^~~~~~~~~~
sumint.cpp: In function ‘int main()’:
sumint.cpp:18:5: error: ‘vector’ was not declared in this scope
18 | vector<int> meowCounts(d);
| ^~~~~~
sumint.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include<iostream>
+++ |+#include <vector>
3 | using namespace std;
su