QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#653851 | #7878. Matrix Distances | MaMengQi | Compile Error | / | / | C++98 | 1.4kb | 2024-10-18 20:44:57 | 2024-10-18 20:44:59 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘std::vector<long long int> prefix_summ(std::vector<int>&)’: answer.code:20:16: error: ‘move’ was not declared in this scope 20 | return move(summ); | ^~~~ answer.code:20:16: note: ‘std::move’ is only available from C++11 onwards answer.code: In function ‘void solution()’: answer.code:28:28: error: ‘>>’ should be ‘> >’ within a nested template argument list 28 | map<int, vector<int>> X, Y; | ^~ | > > answer.code:44:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 44 | for (auto [_, v] : X) { | ^ answer.code:44:19: error: ISO C++ forbids declaration of ‘structured binding’ with no type [-fpermissive] 44 | for (auto [_, v] : X) { | ^~~~~~ answer.code:44:19: error: structured binding declaration cannot be C++98 ‘auto’ answer.code:44:19: error: structured binding declaration cannot have type ‘int’ answer.code:44:19: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ answer.code:44:28: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 44 | for (auto [_, v] : X) { | ^ answer.code:44:28: error: forming reference to reference type ‘std::map<int, std::vector<int> >&’ answer.code:45:17: error: ‘ranges’ has not been declared 45 | ranges::sort(v); | ^~~~~~ answer.code:47:22: error: ‘prefix_’ does not name a type 47 | auto prefix_ = prefix_summ(v); | ^~~~~~~ answer.code:48:37: error: ‘prefix_’ was not declared in this scope 48 | for (int i = 1; i < prefix_.size(); i++) | ^~~~~~~ answer.code:53:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 53 | for (auto [_, v] : Y) { | ^ answer.code:53:19: error: ISO C++ forbids declaration of ‘structured binding’ with no type [-fpermissive] 53 | for (auto [_, v] : Y) { | ^~~~~~ answer.code:53:19: error: structured binding declaration cannot be C++98 ‘auto’ answer.code:53:19: error: structured binding declaration cannot have type ‘int’ answer.code:53:19: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ answer.code:53:28: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 53 | for (auto [_, v] : Y) { | ^ answer.code:53:28: error: forming reference to reference type ‘std::map<int, std::vector<int> >&’ answer.code:54:17: error: ‘ranges’ has not been declared 54 | ranges::sort(v); | ^~~~~~ answer.code:55:22: error: ‘prefix_’ does not name a type 55 | auto prefix_ = prefix_summ(v); | ^~~~~~~ answer.code:56:37: error: ‘prefix_’ was not declared in this scope 56 | for (int i = 1; i < prefix_.size(); i++) | ^~~~~~~