| Problem | makingparallelograms |
|---|---|
| User | Kannan |
| Submission Time | 2023-12-30 17:18:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
makingparallelograms.cpp: In function ‘int main()’:
makingparallelograms.cpp:10:5: error: ‘map’ was not declared in this scope
10 | map<int, int> lineCount;
| ^~~
makingparallelograms.cpp:3:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
2 | #include <cmath>
+++ |+#include <map>
3 |
makingparallelograms.cpp:10:9: error: expected primary-expression before ‘int’
10 | map<int, int> lineCount;
| ^~~
makingparallelograms.cpp:15:9: error: ‘lineCount’ was not declared in this scope
15 | lineCount[length]++;
| ^~~~~~~~~
makingparallelograms.cpp:20:29: error: ‘lineCount’ was not declared in this scope
20 | for (const auto& pair : lineCount) {
| ^~~~~~~~~