Problem xmas
User Devthethala
Submission Time 2026-06-23 16:26:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int main()’:
xmas.cpp:7:10: error: expected ‘;’ before ‘vector’
7 | cin >> n
| ^
| ;
8 | vector<int> a(n+1);
| ~~~~~~
xmas.cpp:12:9: error: ‘a’ was not declared in this scope
12 | a[x] = i;
| ^
xmas.cpp:15:17: error: ‘a’ was not declared in this scope
15 | cout << a[i] << endl;
| ^