Problem | sumint |
---|---|
User | angei |
Submission Time | 2025-07-22 19:58:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:5:10: error: expected ‘;’ before ‘long’
5 | cin >> d
| ^
| ;
6 | long long total = 0;
| ~~~~
sumint.cpp:7:15: error: two or more data types in declaration of ‘i’
7 | for (int int i = 0; i < d; ++i) {
| ^
sumint.cpp:7:22: error: ‘i’ was not declared in this scope
7 | for (int int i = 0; i < d; ++i) {
| ^
sumint.cpp:10:3: error: ‘total’ was not declared in this scope
10 | total += meows;
| ^~~~~
sumint.cpp:12:10: error: ‘total’ was not declared in this scope
12 | cout << total <<nendl;
| ^~~~~
sumint.cpp:12:18: error: ‘nendl’ was not declared in this scope
12 | cout << total <<nendl;
| ^~~~~