Problem xmas
User EuniceLoh
Submission Time 2024-11-08 00:56:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int32_t main()’:
xmas.cpp:11:23: error: expected ‘)’ before ‘}’ token
11 | for (int i=1;i<=n;i++}{
| ~ ^
| )
xmas.cpp:11:23: error: expected primary-expression before ‘}’ token
xmas.cpp: At global scope:
xmas.cpp:11:24: error: expected unqualified-id before ‘{’ token
11 | for (int i=1;i<=n;i++}{
| ^
xmas.cpp:16:2: error: expected unqualified-id before ‘for’
16 | for (int i=0;i<n;i++){
| ^~~
xmas.cpp:16:15: error: ‘i’ does not name a type
16 | for (int i=0;i<n;i++){
| ^
xmas.cpp:16:19: error: ‘i’ does not name a type
16 | for (int i=0;i<n;i++){
| ^
xmas.cpp:20:2: error: expected unqualified-id before ‘return’
20 | return 0;
| ^~~~~~
xmas.cpp:21:1: error: expected declaration before ‘}’ token
21 | }
| ^