Problem xmas
User alice157050
Submission Time 2026-06-23 16:31:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int main()’:
xmas.cpp:8:17: error: ‘N’ was not declared in this scope
8 | vector<int> ans(N+1);
| ^
xmas.cpp:12:6: error: ‘A’ was not declared in this scope
12 | ans[A] = i;
| ^
xmas.cpp:15:24: error: expected ‘;’ before ‘}’ token
15 | cout << ans[i] << "\n"
| ^
| ;
16 | }
| ~