Borderou de evaluare (job #2623724)

Utilizator anacomoAna-Maria Comorasu anacomo Data 3 iunie 2020 17:13:33
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:12:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (unsigned i = 0; i < n; ++i) ~~^~~ main.cpp:29:14: error: jump to case label [-fpermissive] case 3: ^ main.cpp:25:18: note: crosses initialization of 'std::__detail::_Node_iterator<std::pair<const int, bool>, false, false> it' auto it = hashmap.find(element); ^~ main.cpp:31:18: error: conflicting declaration 'auto it' auto it = hashmap.find(element); ^~ main.cpp:25:18: note: previous declaration as 'std::__detail::_Node_iterator<std::pair<const int, bool>, false, false> it' auto it = hashmap.find(element); ^~ main.cpp:37:9: error: jump to case label [-fpermissive] default: ^~~~~~~ main.cpp:25:18: note: crosses initialization of 'std::__detail::_Node_iterator<std::pair<const int, bool>, false, false> it' auto it = hashmap.find(element); ^~ Non zero exit status: 1

Ceva nu functioneaza?