Borderou de evaluare (job #3128557)
Utilizator | Data | 9 mai 2023 21:06:18 | |
---|---|---|---|
Problema | Proc2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:5: error: 'unordered_map' was not declared in this scope
15 | unordered_map<int, int> HT;
| ^~~~~~~~~~~~~
main.cpp:7:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
6 | #include <unordered_set>
+++ |+#include <unordered_map>
7 |
main.cpp:15:19: error: expected primary-expression before 'int'
15 | unordered_map<int, int> HT;
| ^~~
main.cpp:17:9: error: 'HT' was not declared in this scope
17 | HT[i] = -1;
| ^~
main.cpp:23:16: error: 'HT' was not declared in this scope
23 | if(HT[i] == -1 || HT[i] < a){
| ^~
main.cpp:13:21: warning: unused variable 'c' [-Wunused-variable]
13 | int n, m, a, b, c = 1, t = 0;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !