Borderou de evaluare (job #3258379)

Utilizator tteodoraTita Georgiana Teodora tteodora Data 22 noiembrie 2024 11:32:30
Problema Orase1 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int verif(int)': main.cpp:31:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 31 | if(j==n) | ^~ main.cpp:33:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 33 | if(k2>k) | ^~ main.cpp: In function 'int cb(int, int, int)': main.cpp:22:12: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 22 | return p; | ^ main.cpp:11:14: note: 'p' was declared here 11 | int b=st,p; | ^ main.cpp: In function 'int verif(int)': main.cpp:35:10: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 35 | i=cb(j,n,c)+1; | ~^~~~~~~~~~~~ main.cpp:11:14: note: 'p' was declared here 11 | int b=st,p; | ^ In function 'int cb(int, int, int)', inlined from 'int verif(int)' at main.cpp:35:13: main.cpp:14:18: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 14 | int m=(st+dr)/2; | ~~~^~~~ main.cpp: In function 'int verif(int)': main.cpp:11:14: note: 'p' was declared here 11 | int b=st,p; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbIncorect00
20ms303kbIncorect00
34ms557kbIncorect00
48ms1081kbIncorect00
513ms2387kbIncorect00
619ms3076kbIncorect00
719ms3268kbIncorect00
824ms3809kbIncorect0
928ms4173kbIncorect0
100ms303kbOK1010
Punctaj total10

Ceva nu functioneaza?