| Problem | sorting2 |
|---|---|
| User | bachnguyen123 |
| Submission Time | 2026-04-24 22:58:35 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sorting2.cpp: In function ‘void sort_questions(int, int, int*)’:
sorting2.cpp:4:5: error: ‘vector’ was not declared in this scope
4 | vector<int> v;
| ^~~~~~
sorting2.cpp:4:12: error: expected primary-expression before ‘int’
4 | vector<int> v;
| ^~~
sorting2.cpp:5:33: error: ‘v’ was not declared in this scope
5 | for(int i = 1; i <= N; i++) v.push_back(i);
| ^
sorting2.cpp:6:7: error: ‘v’ was not declared in this scope
6 | sort(v.begin(), v.end(), compare_difficulty);
| ^
sorting2.cpp:6:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
6 | sort(v.begin(), v.end(), compare_difficulty);
| ^~~~
| short