QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#760004#982. RobotGuanYunChang Compile Error//C++232.8kb2024-11-18 13:59:412024-11-18 13:59:51

详细

answer.code: In function ‘int main()’:
answer.code:28:5: error: ‘vector’ was not declared in this scope
   28 |     vector<pair<int, int>> path = {{0, 0}};
      |     ^~~~~~
answer.code:5:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
    4 | #include <cmath>
  +++ |+#include <vector>
    5 | using namespace std;
answer.code:28:25: error: expected primary-expression before ‘>’ token
   28 |     vector<pair<int, int>> path = {{0, 0}};
      |                         ^~
answer.code:28:28: error: ‘path’ was not declared in this scope
   28 |     vector<pair<int, int>> path = {{0, 0}};
      |                            ^~~~
answer.code:51:12: error: expected primary-expression before ‘long’
   51 |     vector<long long> results;
      |            ^~~~
answer.code:52:5: error: ‘results’ was not declared in this scope
   52 |     results.reserve(n);
      |     ^~~~~~~