Problem | sumint |
---|---|
User | MrCool |
Submission Time | 2025-06-19 09:11:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:3:1: error: ‘cin’ was not declared in this scope
3 | cin >> n;
| ^~~
sumint.cpp:4:1: error: ‘vector’ was not declared in this scope
4 | vector<long long>numbs(n);
| ^~~~~~
sumint.cpp:4:8: error: expected primary-expression before ‘long’
4 | vector<long long>numbs(n);
| ^~~~
sumint.cpp:6:12: error: ‘numbs’ was not declared in this scope
6 | cin >> numbs[i];
| ^~~~~
sumint.cpp:8:28: error: ‘numbs’ was not declared in this scope
8 | long long sum = accumulate(numbs.begin(), numbs.end(), 0);
| ^~~~~
sumint.cpp:8:17: error: ‘accumulate’ was not declared in this scope
8 | long long sum = accumulate(numbs.begin(), numbs.end(), 0);
| ^~~~~~~~~~
sumint.cpp:9:1: error: ‘cout’ was not declared in this scope
9 | cout << sum;