QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#90007#1212. NavigationyouwikeCompile Error//C++14654b2023-03-21 22:19:192023-03-21 22:19:20

详细

Anna.code:5:1: error: ‘vector’ does not name a type
    5 | vector<int> path[100010];
      | ^~~~~~
Anna.code:6:9: error: ‘N’ was not declared in this scope
    6 | int col[N];
      |         ^
Anna.code: In function ‘void dfs(int, int)’:
Anna.code:9:3: error: ‘c’ was not declared in this scope
    9 |   c[u] = (u < _fa) ^ c[_fa];
      |   ^
Anna.code:11:17: error: ‘path’ was not declared in this scope
   11 |   for (auto v : path[u]) {
      |                 ^~~~
Anna.code: In function ‘void Anna(int, int, int, int*, int*)’:
Anna.code:19:5: error: ‘path’ was not declared in this scope
   19 |     path[A[i]].emplace_back(B[i]);
      |     ^~~~
grader.cpp: In function ‘int main(int, char**)’:
grader.cpp:144:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  144 |         scanf("%d%d%d%d", &K, &S, &F, &L);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
grader.cpp:146:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  146 |                 scanf("%d", &P_[i]);
      |                 ~~~~~^~~~~~~~~~~~~~
grader.cpp:150:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  150 |                 scanf("%d", &Q_[i]);
      |                 ~~~~~^~~~~~~~~~~~~~