Problem | makingparallelograms |
---|---|
User | Hengweezy |
Submission Time | 2024-01-31 17:00:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
makingparallelograms.cpp: In function ‘int main()’:
makingparallelograms.cpp:7:2: error: ‘map’ was not declared in this scope
7 | map<int, int> lines;
| ^~~
makingparallelograms.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;
makingparallelograms.cpp:7:6: error: expected primary-expression before ‘int’
7 | map<int, int> lines;
| ^~~
makingparallelograms.cpp:13:3: error: ‘lines’ was not declared in this scope
13 | lines[value]++;
| ^~~~~
makingparallelograms.cpp:17:17: error: ‘lines’ was not declared in this scope
17 | for(auto cur = lines.begin(); cur != lines.end(); cur++){
| ^~~~~