| Problem | sumint |
|---|---|
| User | minkison |
| Submission Time | 2025-11-12 04:23:16 |
| 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: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:13:16: error: expected ‘;’ before ‘total’
13 | cin >> number
| ^
| ;
14 | total += number
| ~~~~~