Problem sorting2
User maximushartanto
Submission Time 2025-12-10 15:08:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sorting2.cpp: In function ‘void sort_questions(int, int, int*)’:
sorting2.cpp:9:7: error: ‘a’ was not declared in this scope
9 | iota(a, a + N, 1);
| ^
sorting2.cpp:12:3: error: expected ‘)’ before ‘;’ token
12 | };
| ^
| )
sorting2.cpp:10:6: note: to match this ‘(’
10 | sort(a, a + N, [&](const int &lhs, const int &rhs){
| ^