QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#754975 | #9548. The Fool | ucup-team171# | Compile Error | / | / | C++17 | 492b | 2024-11-16 16:10:35 | 2024-11-16 16:10:35 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:8:21: error: ‘pii’ was not declared in this scope 8 | map<string, pii> mp; | ^~~ answer.code:8:24: error: template argument 2 is invalid 8 | map<string, pii> mp; | ^ answer.code:8:24: error: template argument 4 is invalid answer.code:15:32: error: request for member ‘find’ in ‘mp’, which is of non-class type ‘int’ 15 | if (mp.find(T) == mp.end()) | ^~~~ answer.code:15:46: error: request for member ‘end’ in ‘mp’, which is of non-class type ‘int’ 15 | if (mp.find(T) == mp.end()) | ^~~ answer.code:16:35: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}) 16 | mp[T] = {i, j}; | ^ answer.code:18:35: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}) 18 | mp[T] = {-1, -1}; | ^ answer.code:21:29: error: ‘begin’ was not declared in this scope 21 | for (auto [_, pr] : mp) { | ^~ answer.code:21:29: note: suggested alternatives: In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:166, from answer.code:1: /usr/include/c++/13/valarray:1232:5: note: ‘std::begin’ 1232 | begin(const valarray<_Tp>& __va) noexcept | ^~~~~ In file included from /usr/include/c++/13/filesystem:50, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:200: /usr/include/c++/13/bits/fs_dir.h:607:3: note: ‘std::filesystem::__cxx11::begin’ 607 | begin(recursive_directory_iterator __iter) noexcept | ^~~~~ answer.code:21:29: error: ‘end’ was not declared in this scope 21 | for (auto [_, pr] : mp) { | ^~ answer.code:21:29: note: suggested alternatives: /usr/include/c++/13/valarray:1259:5: note: ‘std::end’ 1259 | end(const valarray<_Tp>& __va) noexcept | ^~~ /usr/include/c++/13/bits/fs_dir.h:612:3: note: ‘std::filesystem::__cxx11::end’ 612 | end(recursive_directory_iterator) noexcept | ^~~