Problem | snowball |
---|---|
User | meixu |
Submission Time | 2024-07-29 16:23:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snowball.cpp: In function ‘int main()’:
snowball.cpp:8:3: error: expected initializer before ‘for’
8 | for (int i = 0; i < N, ++1) {
| ^~~
snowball.cpp:8:19: error: ‘i’ was not declared in this scope
8 | for (int i = 0; i < N, ++1) {
| ^
snowball.cpp:8:28: error: lvalue required as increment operand
8 | for (int i = 0; i < N, ++1) {
| ^
snowball.cpp:13:10: error: ‘sum’ was not declared in this scope
13 | cout << sum << end
| ^~~
snowball.cpp:14:10: error: expected ‘}’ at end of input
14 | return 0
| ^
snowball.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^