QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#144144 | #4184. Amusement Arcade | HuangHanSheng | Compile Error | / | / | C++98 | 963b | 2023-08-21 15:42:16 | 2023-08-21 15:42:17 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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>&’