Problem 7up
User Yuzzll
Submission Time 2023-04-24 21:58:07
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:5: error: expected unqualified-id before ‘>’ token
17 | int>::iterator it = l.begin();
| ^
7up.cpp:18:9: error: ‘it’ was not declared in this scope; did you mean ‘int’?
18 | while (it != l.end()){
| ^~
| int
7up.cpp:18:15: error: ‘l’ was not declared in this scope
18 | while (it != l.end()){
| ^