QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#144144#4184. Amusement ArcadeHuangHanShengCompile Error//C++98963b2023-08-21 15:42:162023-08-21 15:42:17

詳細信息

answer.code: In function ‘void slove()’:
answer.code:32:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’
   32 |         for (auto [x,y] : mp) {
      |                   ^
answer.code:32:19: error: ISO C++ forbids declaration of ‘structured binding’ with no type [-fpermissive]
   32 |         for (auto [x,y] : mp) {
      |                   ^~~~~
answer.code:32:19: error: structured binding declaration cannot be C++98 ‘auto’
answer.code:32:19: error: structured binding declaration cannot have type ‘int’
answer.code:32:19: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
answer.code:32:27: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   32 |         for (auto [x,y] : mp) {
      |                           ^~
answer.code:32:27: error: forming reference to reference type ‘std::map<long long int, long long int>&’