QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#74911#3871. Voting CitiesHuangHanShengCompile Error//C++983.2kb2023-02-04 13:00:262023-02-04 13:00:27

Details

answer.code:6:26: error: ‘>>’ should be ‘> >’ within a nested template argument list
    6 | typedef vector<vector<int>> vvi;
      |                          ^~
      |                          > >
answer.code:7:33: error: ‘>>’ should be ‘> >’ within a nested template argument list
    7 | typedef vector<vector<vector<int>>> vvvi;
      |                                 ^~
      |                                 > >
answer.code:9:25: error: ‘>>’ should be ‘> >’ within a nested template argument list
    9 | typedef vector<vector<ll>> vvll;
      |                         ^~
      |                         > >
answer.code:10:32: error: ‘>>’ should be ‘> >’ within a nested template argument list
   10 | typedef vector<vector<vector<ll>>> vvvll;
      |                                ^~
      |                                > >
answer.code:14:26: error: ‘>>’ should be ‘> >’ within a nested template argument list
   14 | typedef vector<vector<pii>> vvpii;
      |                          ^~
      |                          > >
answer.code:15:33: error: ‘>>’ should be ‘> >’ within a nested template argument list
   15 | typedef vector<vector<vector<pii>>> vvvpii;
      |                                 ^~
      |                                 > >
answer.code:17:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
   17 | typedef vector<vector<pllll>> vvpllll;
      |                            ^~
      |                            > >
answer.code:18:35: error: ‘>>’ should be ‘> >’ within a nested template argument list
   18 | typedef vector<vector<vector<pllll>>> vvvpllll;
      |                                   ^~
      |                                   > >
answer.code:21:27: error: ‘>>’ should be ‘> >’ within a nested template argument list
   21 | typedef vector<vector<char>> vvc;
      |                           ^~
      |                           > >
answer.code:23:29: error: ‘>>’ should be ‘> >’ within a nested template argument list
   23 | typedef vector<vector<double>> vvd;
      |                             ^~
      |                             > >
answer.code:42:7: error: expected nested-name-specifier before ‘vve’
   42 | using vve=vector<vector<edges>>;
      |       ^~~
answer.code:43:7: error: expected nested-name-specifier before ‘ve’
   43 | using ve=vector<edges>;
      |       ^~
answer.code:44:18: error: ‘vve’ does not name a type; did you mean ‘vvi’?
   44 | void daiku(const vve &miti,int si,int s,vll &dist,vpllll &from){
      |                  ^~~
      |                  vvi
answer.code: In function ‘void daiku(const int&, int, int, vll&, vpllll&)’:
answer.code:46:53: error: ‘>>’ should be ‘> >’ within a nested template argument list
   46 |     priority_queue<pllll,vector<pllll>,greater<pllll>> pq;
      |                                                     ^~
      |                                                     > >
answer.code:48:18: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   48 |     from[s]={0,-1};
      |                  ^
answer.code:48:18: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
answer.code:49:8: error: ‘class std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >’ has no member named ‘emplace’
   49 |     pq.emplace(dist[s],s);
      |        ^~~~~~~
answer.code:55:19: error: ISO C++ forbids declaration of ‘i’ with no type [-fpermissive]
   55 |         for(auto &i:miti[v]){
      |                   ^
answer.code:55:21: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   55 |         for(auto &i:miti[v]){
      |                     ^~~~
answer.code:55:25: error: invalid types ‘const int[int]’ for array subscript
   55 |         for(auto &i:miti[v]){
      |                         ^
answer.code:56:23: error: request for member ‘to’ in ‘i’, which is of non-class type ‘int’
   56 |             if(dist[i.to]>dist[v]+i.cost){
      |                       ^~
answer.code:56:37: error: request for member ‘cost’ in ‘i’, which is of non-class type ‘int’
   56 |             if(dist[i.to]>dist[v]+i.cost){
      |                                     ^~~~
answer.code:57:24: error: request for member ‘to’ in ‘i’, which is of non-class type ‘int’
   57 |                 dist[i.to]=dist[v]+i.cost;
      |                        ^~
answer.code:57:38: error: request for member ‘cost’ in ‘i’, which is of non-class type ‘int’
   57 |                 dist[i.to]=dist[v]+i.cost;
      |                                      ^~~~
answer.code:58:24: error: request for member ‘to’ in ‘i’, which is of non-class type ‘int’
   58 |                 from[i.to]={i.cost,v};
      |                        ^~
answer.code:58:31: error: request for member ‘cost’ in ‘i’, which is of non-class type ‘int’
   58 |                 from[i....