Problem 7up
User Yuzzll
Submission Time 2023-04-24 21:57:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

7up.cpp: In function ‘int main()’:
7up.cpp:7:2: error: ‘map’ was not declared in this scope
7 | map<int,int> l;
| ^~~
7up.cpp:2:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
1 | #include <iostream>
+++ |+#include <map>
2 | using namespace std;
7up.cpp:7:6: error: expected primary-expression before ‘int’
7 | map<int,int> l;
| ^~~
7up.cpp:17:2: error: ‘it’ was not declared in this scope; did you mean ‘int’?
17 | it=l.begin();
| ^~
| int
7up.cpp:17:5: error: ‘l’ was not declared in this scope
17 | it=l.begin();
| ^