Borderou de evaluare (job #801799)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Criptare (clasa a 10-a) | Compilator | cpp-32 |
Rundă | cexgj_10_olimpiada_locala | Status | evaluat |
Dată | 30 dec. 2024 15:48:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:42:39: warning: loop variable 'pereche' of type 'const std::pair<std::__cxx11::basic_string<char>, int>&' binds to a temporary constructed from type 'std::pair<const std::__cxx11::basic_string<char>, int>' [-Wrange-loop-construct]
42 | for (const pair<string, int>& pereche : solutii) {
| ^~~~~~~
main.cpp:42:39: note: use non-reference type 'const std::pair<std::__cxx11::basic_string<char>, int>' to make the copy explicit or 'const std::pair<const std::__cxx11::basic_string<char>, int>&' to prevent copying