Borderou de evaluare (job #696953)

Utilizator avatar AlexBarbu Alexandru Barbu AlexBarbu IP ascuns
Problemă Cartonașe (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 18 feb. 2023 16:11:27 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:31:10: error: jump to case label 31 | case 2: | ^ main.cpp:20:19: note: crosses initialization of 'short int num_matches' 20 | short int num_matches = 0; | ^~~~~~~~~~~ main.cpp:50:10: error: jump to case label 50 | case 3: | ^ main.cpp:33:19: note: crosses initialization of 'short int max_lenght' 33 | short int max_lenght = 0; | ^~~~~~~~~~ main.cpp:32:19: note: crosses initialization of 'short int current_lenght' 32 | short int current_lenght = 0; | ^~~~~~~~~~~~~~ main.cpp:20:19: note: crosses initialization of 'short int num_matches' 20 | short int num_matches = 0; | ^~~~~~~~~~~ main.cpp:51:19: error: redeclaration of 'short int current_lenght' 51 | short int current_lenght = 0; | ^~~~~~~~~~~~~~ main.cpp:32:19: note: 'short int current_lenght' previously declared here 32 | short int current_lenght = 0; | ^~~~~~~~~~~~~~ main.cpp:52:19: error: redeclaration of 'short int max_lenght' 52 | short int max_lenght = 0; | ^~~~~~~~~~ main.cpp:33:19: note: 'short int max_lenght' previously declared here 33 | short int max_lenght = 0; | ^~~~~~~~~~