| Problem | tourist_noi |
|---|---|
| User | HOK |
| Submission Time | 2026-02-28 10:03:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
tourist_noi.cpp: In function ‘int main()’:
tourist_noi.cpp:6:20: error: found ‘:’ in nested-name-specifier, expected ‘::’
6 | for (int i=1; i<=n: i++){
| ^
| ::
tourist_noi.cpp:6:19: error: ‘n’ is not a class, namespace, or enumeration
6 | for (int i=1; i<=n: i++){
| ^
tourist_noi.cpp:14:2: error: expected primary-expression before ‘}’ token
14 | }
| ^
tourist_noi.cpp:13:12: error: expected ‘)’ before ‘}’ token
13 | cout<<sum;
| ^
| )
14 | }
| ~
tourist_noi.cpp:6:6: note: to match this ‘(’
6 | for (int i=1; i<=n: i++){
| ^
tourist_noi.cpp:14:2: error: expected primary-expression before ‘}’ token
14 | }
| ^
tourist_noi.cpp: At global scope:
tourist_noi.cpp:15:1: error: expected declaration before ‘}’ token
15 | }