Problem | labs |
---|---|
User | jerrielchangjiebin |
Submission Time | 2024-12-21 10:33:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
labs.cpp: In function ‘int main()’:
labs.cpp:15:5: error: ‘map’ was not declared in this scope
15 | map<string, int> m;
| ^~~
labs.cpp:4:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
3 | #include <set>
+++ |+#include <map>
4 | using namespace std;
labs.cpp:15:15: error: expected primary-expression before ‘,’ token
15 | map<string, int> m;
| ^
labs.cpp:15:17: error: expected primary-expression before ‘int’
15 | map<string, int> m;
| ^~~
labs.cpp:29:4: error: ‘m’ was not declared in this scope
29 | m[id] = lab;
| ^
labs.cpp:37:34: error: ‘m’ was not declared in this scope
37 | for (auto const& [key, val] : m)
| ^
labs.cpp: At global scope:
labs.cpp:56:5: error: expected unqualified-id before ‘return’