QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#390577#3733. 地铁ucup-team1383Compile Error//C++981.5kb2024-04-15 17:21:582024-04-15 17:21:58

详细

answer.code:23:19: error: ‘>>’ should be ‘> >’ within a nested template argument list
   23 | vector<vector<node>>g(100010);
      |                   ^~
      |                   > >
answer.code: In function ‘void dij()’:
answer.code:28:16: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   28 |         q.push({0, 1, -1});
      |                ^
answer.code:28:15: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   28 |         q.push({0, 1, -1});
      |         ~~~~~~^~~~~~~~~~~~
answer.code:30:22: error: ‘t’ does not name a type; did you mean ‘tm’?
   30 |                 auto t = q.top();
      |                      ^
      |                      tm
answer.code:32:27: error: request for member ‘u’ in ‘t’, which is of non-class type ‘long long int [100010]’
   32 |                 int u = t.u;
      |                           ^
answer.code:33:27: error: request for member ‘w’ in ‘t’, which is of non-class type ‘long long int [100010]’
   33 |                 int w = t.w;
      |                           ^
answer.code:34:28: error: request for member ‘op’ in ‘t’, which is of non-class type ‘long long int [100010]’
   34 |                 int op = t.op;
      |                            ^~
answer.code:39:27: error: ‘c’ does not name a type
   39 |                 for (auto c : g[u]) {
      |                           ^
answer.code:60:18: error: expected ‘;’ before ‘}’ token
   60 |                 }
      |                  ^
      |                  ;
   61 |         }
      |         ~         
answer.code:61:9: error: expected primary-expression before ‘}’ token
   61 |         }
      |         ^
answer.code:60:18: error: expected ‘;’ before ‘}’ token
   60 |                 }
      |                  ^
      |                  ;
   61 |         }
      |         ~         
answer.code:61:9: error: expected primary-expression before ‘}’ token
   61 |         }
      |         ^
answer.code:60:18: error: expected ‘)’ before ‘}’ token
   60 |                 }
      |                  ^
      |                  )
   61 |         }
      |         ~         
answer.code:39:21: note: to match this ‘(’
   39 |                 for (auto c : g[u]) {
      |                     ^
answer.code:61:9: error: expected primary-expression before ‘}’ token
   61 |         }
      |         ^
answer.code: In function ‘int main()’:
answer.code:76:43: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   76 |                         g[a[i]].push_back({b[i], c[i], t[i]});
      |                                           ^
answer.code:76:42: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   76 |                         g[a[i]].push_back({b[i], c[i], t[i]});
      |                         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
answer.code:77:43: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   77 |                         g[b[i]].push_back({a[i], c[i], t[i]});
      |                                           ^
answer.code:77:42: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   77 |                         g[b[i]].push_back({a[i], c[i], t[i]});
      |                         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~