Borderou de evaluare (job #2883394)

Utilizator mediocrekarmaChirvasa George Matei mediocrekarma Data 1 aprilie 2022 14:41:00
Problema Diff 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:21:8: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' 21 | if (int k = (boys[i] - boys[j]) * 2 - (i - j); !mp.contains(k)) { | ^~~ main.cpp:21:55: error: 'class std::unordered_map<int, std::pair<int, int> >' has no member named 'contains' 21 | if (int k = (boys[i] - boys[j]) * 2 - (i - j); !mp.contains(k)) { | ^~~~~~~~ main.cpp:29:10: error: 'class std::unordered_map<int, std::pair<int, int> >' has no member named 'contains' 29 | if (mp.contains(k)) { | ^~~~~~~~ main.cpp:30:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 30 | auto& [x, y] = mp[k]; | ^ Non zero exit status: 1

Ceva nu functioneaza?