| Problem | tourist_noi |
|---|---|
| User | piecat |
| Submission Time | 2026-11-18 23:00:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
tourist_noi.cpp: In function ‘int main()’:
tourist_noi.cpp:9:7: error: ‘i’ was not declared in this scope
9 | for (i=1, i<=n, i++) {
| ^
tourist_noi.cpp:20:1: error: expected primary-expression before ‘}’ token
20 | }
| ^
tourist_noi.cpp:19:16: error: expected ‘)’ before ‘}’ token
19 | cout << total;
| ^
| )
20 | }
| ~
tourist_noi.cpp:9:6: note: to match this ‘(’
9 | for (i=1, i<=n, i++) {
| ^
tourist_noi.cpp:20:1: error: expected primary-expression before ‘}’ token
20 | }
| ^