Problem gotoschool
User waffles1823
Submission Time 2024-07-26 15:26:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotoschool.cpp: In function ‘std::vector<int> reconstruct_order(int, const std::vector<int>&)’:
gotoschool.cpp:23:31: error: request for member ‘first’ in ‘i’, which is of non-class type ‘int’
23 | order[i] = students[i.first;
| ^~~~~
gotoschool.cpp:23:36: error: expected ‘]’ before ‘;’ token
23 | order[i] = students[i.first;
| ^
| ]