QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#653896#9313. Make MaxGuanYunchangCompile Error//C++982.0kb2024-10-18 20:48:502024-10-18 20:48:53

詳細信息

answer.code: In function ‘void sukuna(long long int)’:
answer.code:71:23: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   71 |         pos.push_back({x, i});
      |                       ^
answer.code:71:22: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   71 |         pos.push_back({x, i});
      |         ~~~~~~~~~~~~~^~~~~~~~
answer.code:79:14: error: ‘i’ does not name a type; did you mean ‘fi’?
   79 |     for(auto i : pos){
      |              ^
      |              fi
answer.code:81:6: error: expected ‘;’ before ‘cout’
   81 |     }
      |      ^
      |      ;
   82 | 
   83 |     cout << ans << endl;
      |     ~~~~
answer.code:85:1: error: expected primary-expression before ‘}’ token
   85 | }
      | ^
answer.code:83:25: error: expected ‘)’ before ‘}’ token
   83 |     cout << ans << endl;
      |                         ^
      |                         )
   84 | 
   85 | }
      | ~                        
answer.code:79:8: note: to match this ‘(’
   79 |     for(auto i : pos){
      |        ^
answer.code:85:1: error: expected primary-expression before ‘}’ token
   85 | }
      | ^