QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#144139#4184. Amusement ArcadeMaMengQiCompile Error//C++98623b2023-08-21 15:41:532023-08-21 15:41:55

詳細信息

answer.code: In function ‘int main()’:
answer.code:16:17: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   16 |     vector<ll> x{1, 3};
      |                 ^
answer.code:16:16: error: in C++98 ‘x’ must be initialized by constructor, not by ‘{...}’
   16 |     vector<ll> x{1, 3};
      |                ^
answer.code:21:15: error: ‘v’ does not name a type
   21 |     for (auto v : x)
      |               ^
answer.code:28:6: error: expected ‘;’ before ‘cout’
   28 |     }
      |      ^
      |      ;
   29 |     cout << "impossible" << endl;
      |     ~~~~
answer.code:30:5: error: expected primary-expression before ‘return’
   30 |     return 0;
      |     ^~~~~~
answer.code:29:34: error: expected ‘)’ before ‘return’
   29 |     cout << "impossible" << endl;
      |                                  ^
      |                                  )
   30 |     return 0;
      |     ~~~~~~                        
answer.code:21:9: note: to match this ‘(’
   21 |     for (auto v : x)
      |         ^