QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#733413#9544. Grand Prix of Ballanceucup-team1130#Compile Error//C++141023b2024-11-10 18:43:082024-11-10 18:43:10

详细

answer.code: In function ‘void solve()’:
answer.code:13:5: error: ‘vector’ was not declared in this scope
   13 |     vector<ll> tot(m + 1, 0);
      |     ^~~~~~
answer.code:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
    2 | #include<set>
  +++ |+#include <vector>
    3 | using namespace std;
answer.code:13:14: error: expected primary-expression before ‘>’ token
   13 |     vector<ll> tot(m + 1, 0);
      |              ^
answer.code:13:16: error: ‘tot’ was not declared in this scope
   13 |     vector<ll> tot(m + 1, 0);
      |                ^~~
answer.code:32:24: error: expected primary-expression before ‘>’ token
   32 |     vector<pair<ll, int>> ans;
      |                        ^~
answer.code:32:27: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   32 |     vector<pair<ll, int>> ans;
      |                           ^~~
      |                           abs
answer.code:36:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
   36 |     sort(ans.begin(), ans.end());
      |     ^~~~
      |     short