QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#651867#7878. Matrix DistancesHuangHanShengCompile Error//C++981.1kb2024-10-18 18:06:012024-10-18 18:06:17

Details

answer.code: In function ‘void answer_to_the_question()’:
answer.code:17:21: error: ‘>>’ should be ‘> >’ within a nested template argument list
   17 |     vector<vector<ll>>arr(n,vector<ll>(m));
      |                     ^~
      |                     > >
answer.code:18:21: error: ‘>>’ should be ‘> >’ within a nested template argument list
   18 |     map<ll,vector<ll>>mpx,mpy;
      |                     ^~
      |                     > >
answer.code:28:14: error: ‘i’ does not name a type
   28 |     for(auto i:mpx){
      |              ^
answer.code:36:6: error: expected ‘;’ before ‘for’
   36 |     }
      |      ^
      |      ;
   37 |     for(auto i:mpy){
      |     ~~~
answer.code:37:5: error: expected primary-expression before ‘for’
   37 |     for(auto i:mpy){
      |     ^~~
answer.code:36:6: error: expected ‘;’ before ‘for’
   36 |     }
      |      ^
      |      ;
   37 |     for(auto i:mpy){
      |     ~~~
answer.code:37:5: error: expected primary-expression before ‘for’
   37 |     for(auto i:mpy){
      |     ^~~
answer.code:36:6: error: expected ‘)’ before ‘for’
   36 |     }
      |      ^
      |      )
   37 |     for(auto i:mpy){
      |     ~~~
answer.code:28:8: note: to match this ‘(’
   28 |     for(auto i:mpx){
      |        ^
answer.code:37:14: error: ‘i’ does not name a type
   37 |     for(auto i:mpy){
      |              ^
answer.code:45:6: error: expected ‘;’ before ‘cout’
   45 |     }
      |      ^
      |      ;
   46 |     cout << (ansx+ansy)*2 << nl;
      |     ~~~~
answer.code:47:1: error: expected primary-expression before ‘}’ token
   47 | }
      | ^
answer.code:46:33: error: expected ‘)’ before ‘}’ token
   46 |     cout << (ansx+ansy)*2 << nl;
      |                                 ^
      |                                 )
   47 | }
      | ~                                
answer.code:37:8: note: to match this ‘(’
   37 |     for(auto i:mpy){
      |        ^
answer.code:47:1: error: expected primary-expression before ‘}’ token
   47 | }
      | ^