QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#34754#4251. Gamealch07#Compile Error//C++14884b2022-06-12 06:53:312024-05-26 00:55:51

详细

answer.code:4:1: error: ‘vector’ does not name a type
    4 | vector <int> vv [1005];
      | ^~~~~~
answer.code: In function ‘void init(int, int)’:
answer.code:15:9: error: ‘vv’ was not declared in this scope
   15 |         vv[i].push_back(i+1);
      |         ^~
answer.code: In function ‘void dfs(int)’:
answer.code:22:24: error: ‘vv’ was not declared in this scope
   22 |     for(int i = 0; i < vv[x].size(); i++){
      |                        ^~
answer.code: In function ‘int add_teleporter(int, int)’:
answer.code:42:5: error: ‘vv’ was not declared in this scope; did you mean ‘v’?
   42 |     vv[u].push_back(v);
      |     ^~
      |     v