Borderou de evaluare (job #3208944)

Utilizator Cristi1123Lucan Crisitian Cristi1123 Data 1 martie 2024 16:31:57
Problema Trompeta Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:53:21: warning: comparison of integer expressions of different signedness: 'std::vector<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 53 | while (v.size() <= n - m){ | ~~~~~~~~~^~~~~~~~ main.cpp:38:32: warning: unused variable 'nr_chosen_elem' [-Wunused-variable] 38 | int n, m, chosen_poz = -1, nr_chosen_elem = 0; | ^~~~~~~~~~~~~~ main.cpp: In function 'int local_max_poz(int, int, const std::vector<char>&)': main.cpp:15:12: warning: 'max_poz' may be used uninitialized [-Wmaybe-uninitialized] 15 | return max_poz; | ^~~~~~~ main.cpp:8:20: note: 'max_poz' was declared here 8 | int vmax = -1, max_poz; | ^~~~~~~ main.cpp: In function 'int main()': main.cpp:67:29: warning: 'max_poz' may be used uninitialized [-Wmaybe-uninitialized] 67 | fout << v[chosen_poz]; //Il afisam | ^ main.cpp:8:20: note: 'max_poz' was declared here 8 | int vmax = -1, max_poz; | ^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
40ms303kbOK10
50ms303kbOK10
629ms303kbTime limit exceeded0
729ms303kbTime limit exceeded0
828ms819kbTime limit exceeded0
929ms303kbTime limit exceeded0
1029ms561kbTime limit exceeded0
Punctaj total50

Ceva nu functioneaza?