Problem | sumint |
---|---|
User | StormyGood |
Submission Time | 2024-01-12 15:05:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp:4:2: error: expected initializer before ‘int’
4 | int a,b,sum=0;
| ^~~
sumint.cpp:5:2: error: ‘cin’ does not name a type
5 | cin >> a;
| ^~~
sumint.cpp:6:2: error: expected unqualified-id before ‘for’
6 | for (int i = 1; i <= a; i++)
| ^~~
sumint.cpp:6:18: error: ‘i’ does not name a type
6 | for (int i = 1; i <= a; i++)
| ^
sumint.cpp:6:26: error: ‘i’ does not name a type
6 | for (int i = 1; i <= a; i++)
| ^
sumint.cpp:11:2: error: ‘cout’ does not name a type
11 | cout << sum;
| ^~~~
sumint.cpp:12:1: error: expected declaration before ‘}’ token
12 | }
| ^