Borderou de evaluare (job #802311)

Utilizator avatar andreitrica Andrei Trica andreitrica IP ascuns
Problemă Subșirul comun de lungime maximă (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 4 ian. 2025 13:45:52 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:37:26: warning: 'maxi' may be used uninitialized [-Wmaybe-uninitialized] 37 | fout<<smax<<" "<<maxi-smax+2<<" "<<maxj-smax+2<<"\n"; | ~~~~^~~~~ main.cpp:14:23: note: 'maxi' was declared here 14 | int n, m, smax=0, maxi, maxj; | ^~~~ main.cpp:37:44: warning: 'maxj' may be used uninitialized [-Wmaybe-uninitialized] 37 | fout<<smax<<" "<<maxi-smax+2<<" "<<maxj-smax+2<<"\n"; | ~~~~^~~~~ main.cpp:14:29: note: 'maxj' was declared here 14 | int n, m, smax=0, maxi, maxj; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 4 ms 397 kb OK 10
3 1 ms 770 kb OK 10
4 1 ms 1052 kb OK 10
5 10 ms 2076 kb OK 10
6 12 ms 2744 kb OK 10
7 9 ms 2605 kb OK 10
8 19 ms 4435 kb OK 10
9 19 ms 4435 kb OK 10
10 16 ms 4063 kb OK 10
Punctaj total 100