QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#398755#3736. Tree Intersectionucup-team1383Compile Error//C++171.6kb2024-04-25 17:53:052024-04-25 17:53:06

Details

answer.code:8:1: error: ‘vector’ does not name a type
    8 | vector<int>vct[N];
      | ^~~~~~
answer.code: In function ‘void dfs1(int, int)’:
answer.code:14:22: error: ‘vct’ was not declared in this scope
   14 |         for (int y : vct[x])
      |                      ^~~
answer.code: In function ‘void add(int)’:
answer.code:34:22: error: ‘vct’ was not declared in this scope
   34 |         for (int y : vct[x])
      |                      ^~~
answer.code: In function ‘void delet(int)’:
answer.code:42:22: error: ‘vct’ was not declared in this scope
   42 |         for (int y : vct[x])
      |                      ^~~
answer.code: In function ‘void dfs2(int, bool)’:
answer.code:48:22: error: ‘vct’ was not declared in this scope
   48 |         for (int y : vct[x])
      |                      ^~~
answer.code:53:22: error: ‘vct’ was not declared in this scope
   53 |         for (int y : vct[x])
      |                      ^~~
answer.code: In function ‘int main()’:
answer.code:75:25: error: ‘vct’ was not declared in this scope
   75 |                         vct[i].clear();
      |                         ^~~
answer.code:82:25: error: ‘vct’ was not declared in this scope
   82 |                         vct[u[i]].push_back(v[i]);
      |                         ^~~