Problem sumint
User tomdzs1tg
Submission Time 2024-08-28 11:02:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:7:22: error: redeclaration of ‘int i’
7 | for (int i = 1; int i <= a; i++) {
| ^
sumint.cpp:7:11: note: ‘int i’ previously declared here
7 | for (int i = 1; int i <= a; i++) {
| ^
sumint.cpp:7:24: error: expected initializer before ‘<=’ token
7 | for (int i = 1; int i <= a; i++) {
| ^~
sumint.cpp:7:23: error: expected ‘;’ before ‘<=’ token
7 | for (int i = 1; int i <= a; i++) {
| ^~~
| ;
sumint.cpp:7:24: error: expected primary-expression before ‘<=’ token
7 | for (int i = 1; int i <= a; i++) {
| ^~
sumint.cpp:7:28: error: expected ‘)’ before ‘;’ token
7 | for (int i = 1; int i <= a; i++) {
| ~ ^
| )
su