QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#100227#5828. 游戏alch07Compile Error//C++142.1kb2023-04-25 03:36:242023-04-25 03:36:28

Details

answer.code:14:1: error: ‘vector’ does not name a type
   14 | vector <int> edgs [maxn];
      | ^~~~~~
answer.code: In function ‘void dfs(int, int)’:
answer.code:21:24: error: ‘edgs’ was not declared in this scope
   21 |     for(int i = 0; i < edgs[x].size(); i++){
      |                        ^~~~
answer.code:26:24: error: ‘edgs’ was not declared in this scope
   26 |     for(int i = 0; i < edgs[x].size(); i++){
      |                        ^~~~
answer.code: In function ‘void dfs2(int, int)’:
answer.code:41:24: error: ‘edgs’ was not declared in this scope
   41 |     for(int i = 0; i < edgs[x].size(); i++){
      |                        ^~~~
answer.code:54:5: error: ‘assert’ was not declared in this scope
   54 |     assert(mxv == dpath[x][0]);
      |     ^~~~~~
answer.code:2:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
    1 | #include <iostream>
  +++ |+#include <cassert>
    2 | 
answer.code:55:13: error: incompatible types in assignment of ‘int’ to ‘int [200500]’
   55 |     secDeep = smv;
      |     ~~~~~~~~^~~~~
answer.code:56:24: error: ‘edgs’ was not declared in this scope
   56 |     for(int i = 0; i < edgs[x].size(); i++){
      |                        ^~~~
answer.code:73:24: error: ‘edgs’ was not declared in this scope
   73 |     for(int i = 0; i < edgs[x].size(); i++){
      |                        ^~~~
answer.code: In function ‘int main()’:
answer.code:89:17: error: ‘m’ was not declared in this scope
   89 |     cin >> n >> m;
      |                 ^