QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#439275#2810. Speedrunegypt_ioi2024_09#Compile Error//C++231.4kb2024-06-11 18:54:422024-06-11 18:54:42

Details

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