Problem | labs |
---|---|
User | jerrielchangjiebin |
Submission Time | 2024-12-21 10:33:25 |
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:17:21: error: ‘i’ was not declared in this scope
17 | for (int i = 0; i < q; ++i) {
| ^
labs.cpp: At global scope:
labs.cpp:56:5: error: expected unqualified-id before ‘return’
56 | return 0;
| ^~~~~~
labs.cpp:58:1: error: expected declaration before ‘}’ token
58 | }