QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#439285#2810. Speedrunegypt_ioi2024_09#Compile Error//C++231.3kb2024-06-11 19:06:342024-06-11 19:06:34

Details

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: 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 + 2);
      |                                 ^~
      |                                 > >
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);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~