QOJ.ac

QOJ

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

詳細信息

speedrun.code:10:23: error: ‘>>’ should be ‘> >’ within a nested template argument list
   10 | vector < vector < int >> adj;
      |                       ^~
      |                       > >
speedrun.code: In function ‘void dfs(int, int)’:
speedrun.code:14:14: error: ‘ch’ does not name a type
   14 |     for(auto ch : adj[node]) {
      |              ^~
speedrun.code:18:6: error: expected ‘;’ before ‘vector’
   18 |     }
      |      ^
      |      ;
   19 |     vector < int > val(n + 1);
      |     ~~~~~~
speedrun.code:19:23: error: expected initializer before ‘(’ token
   19 |     vector < int > val(n + 1);
      |                       ^
speedrun.code:19:23: error: could not convert ‘val’ from ‘std::vector<int>’ to ‘bool’
speedrun.code:19:23: error: expected ‘;’ before ‘(’ token
   19 |     vector < int > val(n + 1);
      |                       ^
      |                       ;
speedrun.code:19:30: error: expected ‘)’ before ‘;’ token
   19 |     vector < int > val(n + 1);
      |                              ^
      |                              )
speedrun.code:14:8: note: to match this ‘(’
   14 |     for(auto ch : adj[node]) {
      |        ^
speedrun.code:20:14: error: ‘i’ does not name a type
   20 |     for(auto i : arr) val[i] = 1;
      |              ^
speedrun.code:20:34: error: expected ‘;’ before ‘for’
   20 |     for(auto i : arr) val[i] = 1;
      |                                  ^
      |                                  ;
   21 |     for(int i = 1 ; i <= n ; i++) {
      |     ~~~                           
speedrun.code:21:5: error: expected primary-expression before ‘for’
   21 |     for(int i = 1 ; i <= n ; i++) {
      |     ^~~
speedrun.code:20:34: error: expected ‘;’ before ‘for’
   20 |     for(auto i : arr) val[i] = 1;
      |                                  ^
      |                                  ;
   21 |     for(int i = 1 ; i <= n ; i++) {
      |     ~~~                           
speedrun.code:21:5: error: expected primary-expression before ‘for’
   21 |     for(int i = 1 ; i <= n ; i++) {
      |     ^~~
speedrun.code:20:34: error: expected ‘)’ before ‘for’
   20 |     for(auto i : arr) val[i] = 1;
      |        ~                         ^
      |                                  )
   21 |     for(int i = 1 ; i <= n ; i++) {
      |     ~~~                           
speedrun.code:22:26: error: ‘val’ was not declared in this scope
   22 |         setHint(node, i, val[i]);
      |                          ^~~
speedrun.code: In function ‘void assignHints(int, int, int*, int*)’:
speedrun.code:28:33: error: ‘>>’ should be ‘> >’ within a nested template argument list
   28 |     adj = vector < vector < int >> (n + 14);
      |                                 ^~
      |                                 > >
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);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~