Problem | calc |
---|---|
User | Teeskit |
Submission Time | 2025-08-28 16:22:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
calc.cpp: In function ‘int main()’:
calc.cpp:7:2: error: expected initializer before ‘long’
7 | long long total = 0;
| ^~~~
calc.cpp:9:9: error: ‘N’ was not declared in this scope
9 | cin >> N;
| ^
calc.cpp:18:4: error: ‘total’ was not declared in this scope
18 | total += add;
| ^~~~~
calc.cpp:21:4: error: ‘total’ was not declared in this scope
21 | total -= number[i-1];
| ^~~~~
calc.cpp:24:10: error: ‘total’ was not declared in this scope
24 | cout << total;
| ^~~~~