QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#439354#2810. Speedrunegypt_ioi2024_09#Compile Error//C++231.0kb2024-06-11 20:00:002024-06-11 20:00:03

Details

speedrun.code: In function ‘void assignHints(int, int, int*, int*)’:
speedrun.code:9:27: error: ‘>>’ should be ‘> >’ within a nested template argument list
    9 |     vector < vector < int >> adj(n + 10);
      |                           ^~
      |                           > >
speedrun.code:17:21: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   17 |         for(int j : adj[i]) {
      |                     ^~~
speedrun.code:17:26: error: forming reference to reference type ‘std::vector<int>&’
   17 |         for(int j : adj[i]) {
      |                          ^
speedrun.code: In function ‘void solve(int, int, int&)’:
speedrun.code:36:14: error: ‘ch’ does not name a type
   36 |     for(auto ch : childs) {
      |              ^~
speedrun.code:39:6: error: expected ‘;’ before ‘goTo’
   39 |     }
      |      ^
      |      ;
   40 |     goTo(par);
      |     ~~~~
speedrun.code:41:1: error: expected primary-expression before ‘}’ token
   41 | }
      | ^
speedrun.code:40:15: error: expected ‘)’ before ‘}’ token
   40 |     goTo(par);
      |               ^
      |               )
   41 | }
      | ~              
speedrun.code:36:8: note: to match this ‘(’
   36 |     for(auto ch : childs) {
      |        ^
speedrun.code:41:1: error: expected primary-expression before ‘}’ token
   41 | }
      | ^
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);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~