Borderou de evaluare (job #2815935)
Utilizator | Data | 10 decembrie 2021 17:18:25 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:25:13: error: 'map' was not declared in this scope
25 | map<int,int>::iterator poz=v.find(x);
| ^~~
main.cpp:4:1: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
3 | #include <algorithm>
+++ |+#include <map>
4 | using namespace std;
main.cpp:25:17: error: expected primary-expression before 'int'
25 | map<int,int>::iterator poz=v.find(x);
| ^~~
main.cpp:26:16: error: 'poz' was not declared in this scope
26 | if(poz==v.end())
| ^~~
main.cpp:40:13: error: 'map' was not declared in this scope
40 | map<int,int>::iterator poz=v.find(x);
| ^~~
main.cpp:40:13: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
main.cpp:40:17: error: expected primary-expression before 'int'
40 | map<int,int>::iterator poz=v.find(x);
| ^~~
main.cpp:41:16: error: 'poz' was not declared in this scope
41 | if(poz!=v.end())
| ^~~
main.cpp:55:13: error: 'map' was not declared in this scope
55 | map<int,int>::iterator poz=v.find(x);
| ^~~
main.cpp:55:13: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
main.cpp:55:17: error: expected primary-expression before 'int'
55 | map<int,int>::iterator poz=v.find(x);
| ^~~
main.cpp:56:16: error: 'poz' was not declared in this scope
56 | if(poz==v.end())
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !