QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#652105#7878. Matrix DistancesGuanYunchangCompile Error//C++981.9kb2024-10-18 18:20:402024-10-18 18:20:59

詳細信息

answer.code:14:1: error: ‘mt19937’ does not name a type
   14 | mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
      | ^~~~~~~
answer.code:39:31: error: ‘>>’ should be ‘> >’ within a nested template argument list
   39 | map<long long,vector<long long>>mx,my;
      |                               ^~
      |                               > >
answer.code: In function ‘void solve()’:
answer.code:56:14: error: ‘it’ does not name a type; did you mean ‘int’?
   56 |     for(auto it:st)
      |              ^~
      |              int
answer.code:75:6: error: expected ‘;’ before ‘cout’
   75 |     }
      |      ^
      |      ;
   76 |     cout<<ans*2<<"\n";
      |     ~~~~
answer.code:78:1: error: expected primary-expression before ‘}’ token
   78 | }
      | ^
answer.code:76:23: error: expected ‘)’ before ‘}’ token
   76 |     cout<<ans*2<<"\n";
      |                       ^
      |                       )
   77 | 
   78 | }
      | ~                      
answer.code:56:8: note: to match this ‘(’
   56 |     for(auto it:st)
      |        ^
answer.code:78:1: error: expected primary-expression before ‘}’ token
   78 | }
      | ^