QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#439272#2810. Speedrunegypt_ioi2024_09#Compile Error//C++231.2kb2024-06-11 18:52:442024-06-11 18:52:44

詳細信息

speedrun.code:9:23: error: ‘>>’ should be ‘> >’ within a nested template argument list
    9 | vector < vector < int >> adj;
      |                       ^~
      |                       > >
speedrun.code: In function ‘void dfs(int, int)’:
speedrun.code:13:14: error: ‘ch’ does not name a type
   13 |     for(auto ch : adj[node]) {
      |              ^~
speedrun.code:17:6: error: expected ‘;’ before ‘vector’
   17 |     }
      |      ^
      |      ;
   18 |     vector < int > val(n + 1);
      |     ~~~~~~
speedrun.code:18:23: error: expected initializer before ‘(’ token
   18 |     vector < int > val(n + 1);
      |                       ^
speedrun.code:18:23: error: could not convert ‘val’ from ‘std::vector<int>’ to ‘bool’
speedrun.code:18:23: error: expected ‘;’ before ‘(’ token
   18 |     vector < int > val(n + 1);
      |                       ^
      |                       ;
speedrun.code:18:30: error: expected ‘)’ before ‘;’ token
   18 |     vector < int > val(n + 1);
      |                              ^
      |                              )
speedrun.code:13:8: note: to match this ‘(’
   13 |     for(auto ch : adj[node]) {
      |        ^
speedrun.code:19:14: error: ‘i’ does not name a type
   19 |     for(auto i : arr) val[i] = 1;
      |              ^
speedrun.code:19:34: error: expected ‘;’ before ‘for’
   19 |     for(auto i : arr) val[i] = 1;
      |                                  ^
      |                                  ;
   20 |     for(int i = 1 ; i <= n ; i++) {
      |     ~~~                           
speedrun.code:20:5: error: expected primary-expression before ‘for’
   20 |     for(int i = 1 ; i <= n ; i++) {
      |     ^~~
speedrun.code:19:34: error: expected ‘;’ before ‘for’
   19 |     for(auto i : arr) val[i] = 1;
      |                                  ^
      |                                  ;
   20 |     for(int i = 1 ; i <= n ; i++) {
      |     ~~~                           
speedrun.code:20:5: error: expected primary-expression before ‘for’
   20 |     for(int i = 1 ; i <= n ; i++) {
      |     ^~~
speedrun.code:19:34: error: expected ‘)’ before ‘for’
   19 |     for(auto i : arr) val[i] = 1;
      |        ~                         ^
      |                                  )
   20 |     for(int i = 1 ; i <= n ; i++) {
      |     ~~~                           
speedrun.code:21:26: error: ‘val’ was not declared in this scope
   21 |         setHint(node, i, val[i]);
      |                          ^~~
speedrun.code:21:9: error: ‘setHint’ was not declared in this scope; did you mean ‘setns’?
   21 |         setHint(node, i, val[i]);
      |         ^~~~~~~
      |         setns
speedrun.code: In function ‘void assignHints(int, int, int*, int*)’:
speedrun.code:27:33: error: ‘>>’ should be ‘> >’ within a nested template argument list
   27 |     adj = vector < vector < int >> (n + 14);
      |                                 ^~
      |                                 > >
speedrun.code:29:5: error: ‘setHintLen’ was not declared in this scope
   29 |     setHintLen(n);
      |     ^~~~~~~~~~
speedrun.code: In function ‘void solve(int, int)’:
speedrun.code:42:12: error: ‘getHint’ was not declared in this scope; did you mean ‘getline’?
   42 |         if(getHint(i) == 1) {
      |            ^~~~~~~
      |            getline
speedrun.code:43:13: error: ‘goTo’ was not declared in this scope
   43 |             goTo(i);
      |             ^~~~
speedrun.code:50:9: error: ‘goTo’ was not declared in this scope
   50 |         goTo(par);
      |         ^~~~
grader_speedrun.cpp: In function ‘int readvalue()’:
grader_speedrun.cpp:9:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |   fscanf(input, "%d", &val);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~