| Problem | sumint |
|---|---|
| User | Zhuoxun |
| Submission Time | 2024-03-01 14:44:20 |
| 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, curr;
| ^~~
sumint.cpp:6:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | int n, curr;
| ^
| yn
sumint.cpp:6:9: error: ‘curr’ was not declared in this scope
6 | int n, curr;
| ^~~~
sumint.cpp:7:6: error: ‘sum’ was not declared in this scope
7 | int sum = 0;
| ^~~
sumint.cpp:9:11: error: ‘i’ was not declared in this scope
9 | for (int i = 0; i < n; i++) {
| ^
sumint.cpp:9:23: error: expected ‘)’ before ‘;’ token
9 | for (int i = 0; i < n; i++) {
| ~ ^
| )
sumint.cpp:9:25: error: ‘i’ was not declared in this scope