Problem sumint
User Yicen
Submission Time 2025-02-21 20:00:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:10:2: error: expected initializer before ‘long’
10 | long long total_meows=0;
| ^~~~
sumint.cpp:11:17: error: expected ‘;’ before ‘<’ token
11 | for (int i=0, i<d, i++){
| ^
| ;
sumint.cpp:11:17: error: expected primary-expression before ‘<’ token
sumint.cpp:11:24: error: expected ‘;’ before ‘)’ token
11 | for (int i=0, i<d, i++){
| ^
| ;
sumint.cpp:12:8: error: ‘meows’ was not declared in this scope
12 | cin>>meows;
| ^~~~~
sumint.cpp:13:3: error: ‘total_meows’ was not declared in this scope
13 | total_meows += meows;
| ^~~~~~~~~~~
sumint.cpp:16:8: error: ‘total_meows’ was not declared in this scope
16 | cout<<total_meows;
| ^~~~~~~~~~~
sumint.cpp:17:9: error: ‘o’ was not declared i