| Problem | sumint |
|---|---|
| User | minkison |
| Submission Time | 2025-11-12 04:22:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:8:2: error: expected initializer before ‘cin’
8 | cin >> num;
| ^~~
sumint.cpp:11:2: error: expected initializer before ‘int’
11 | int number
| ^~~
sumint.cpp:12:18: error: ‘i’ was not declared in this scope
12 | for (int i = 0; i < num; i++){
| ^
sumint.cpp:12:22: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
12 | for (int i = 0; i < num; i++){
| ^~~
| enum
sumint.cpp:16:10: error: ‘total’ was not declared in this scope
16 | cout << total
| ^~~~~