Problem | sumint |
---|---|
User | whaleshark |
Submission Time | 2024-01-29 16:02:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:4:16: error: expected initializer before ‘>>’ token
4 | int d, cin >> d;
| ^~
sumint.cpp:7:20: error: expected unqualified-id before ‘int’
7 | for(int m = 0, int m < d, ++m);
| ^~~
sumint.cpp:7:19: error: expected ‘;’ before ‘int’
7 | for(int m = 0, int m < d, ++m);
| ^~~~
| ;
sumint.cpp:7:24: error: redeclaration of ‘int m’
7 | for(int m = 0, int m < d, ++m);
| ^
sumint.cpp:7:13: note: ‘int m’ previously declared here
7 | for(int m = 0, int m < d, ++m);
| ^
sumint.cpp:7:26: error: expected initializer before ‘<’ token
7 | for(int m = 0, int m < d, ++m);
| ^
sumint.cpp:7:25: error: expected ‘;’ before ‘<’ token
7 | for(