Problem sorting2
User shenshiqi
Submission Time 2025-12-11 09:56:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sorting2.cpp: In function ‘void sort_questions(int, int, int*)’:
sorting2.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector < pair <ll, ll> > noSmaller(N); //how many questions are easier than a qn number (num, idx)
| ^~~~~~
sorting2.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <iostream>
+++ |+#include <vector>
3 | using namespace std;
sorting2.cpp:6:25: error: expected primary-expression before ‘>’ token
6 | vector < pair <ll, ll> > noSmaller(N); //how many questions are easier than a qn number (num, idx)
| ^
sorting2.cpp:6:27: error: ‘noSmaller’ was not declared in this scope
6 | vector < pair <ll, ll> > noSmaller(N); //how many questions are easier than a qn number (num, idx)
| ^~~~~~~~~
sorting2.cpp:1