Problem xmas
User Priyankha13
Submission Time 2023-11-08 13:53:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int main()’:
xmas.cpp:6:24: error: invalid declarator before ‘xmas’
6 | vector pair<int, int> xmas;
| ^~~~
xmas.cpp:11:9: error: ‘xmas’ was not declared in this scope
11 | xmas.push_back(make_pair(i+1, x));
| ^~~~
xmas.cpp:14:10: error: ‘xmas’ was not declared in this scope
14 | sort(xmas.begin(), xmas.end(), [](pair<int, int> a, pair<int, int> b) {
| ^~~~