Problem | sumint |
---|---|
User | Zhuoxun |
Submission Time | 2024-03-01 14:45:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int32_t main()’:
sumint.cpp:3:13: error: ‘longlong’ was not declared in this scope
3 | #define int longlong;
| ^~~~~~~~
sumint.cpp:6:2: note: in expansion of macro ‘int’
6 | int n;
| ^~~
sumint.cpp:6:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | int n;
| ^
| yn
sumint.cpp:7:6: error: ‘temp’ was not declared in this scope
7 | int temp;
| ^~~~
sumint.cpp:8:6: error: ‘sum’ was not declared in this scope
8 | int sum = 0;
| ^~~
sumint.cpp:10:11: error: ‘i’ was not declared in this scope
10 | for (int i = 0; i < n; i++) {
| ^
sumint.cpp:10:23: error: expected ‘)’ before ‘;’ token
10 | for (int i = 0; i < n; i++) {
| ~ ^
| )
sumint.cpp:10:25: error: ‘i’ was not declared in this scope
10 | for (