Borderou de evaluare (job #3326027)

Utilizator Horatiu_Horatiu Horatiu_ Data 27 noiembrie 2025 09:44:09
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:11:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 11 | for(i=1;i<=n;i++) | ^~~ main.cpp:13:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 13 | lung[n]=1;poz[n]=-1; | ^~~ main.cpp:17:17: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized] 17 | if(a[i]<a[j]&&lung[i]<lung[j]+1) | ~~~^ main.cpp:7:8: note: 'a' declared here 7 | { int a[100],i,n,j,lung[100],poz[100]; | ^ main.cpp:17:22: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized] 17 | if(a[i]<a[j]&&lung[i]<lung[j]+1) | ~~~^ main.cpp:7:8: note: 'a' declared here 7 | { int a[100],i,n,j,lung[100],poz[100]; | ^ main.cpp:35:27: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized] 35 | fout<<a[pozitie]<<" "; | ^~~ main.cpp:7:8: note: 'a' declared here 7 | { int a[100],i,n,j,lung[100],poz[100]; | ^ main.cpp:36:16: warning: 'pozitie' may be used uninitialized [-Wmaybe-uninitialized] 36 | pozitie=poz[pozitie]; | ~~~~~~~^~~~~~~~~~~~~ main.cpp:28:23: note: 'pozitie' was declared here 28 | int maxim=INT_MIN,pozitie; | ^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms397kbKilled by Signal 1100
20ms397kbKilled by Signal 1100
30ms401kbKilled by Signal 1100
40ms405kbKilled by Signal 1100
50ms397kbKilled by Signal 1100
60ms401kbKilled by Signal 1100
70ms401kbKilled by Signal 1100
811ms401kbKilled by Signal 1100
99ms397kbKilled by Signal 110
109ms397kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?