Borderou de evaluare (job #2246135)

Utilizator stefan1anubystefan popa stefan1anuby Data 26 septembrie 2018 18:31:29
Problema Ausoara Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void golire()’: user.cpp:12:15: warning: iteration 1000001 invokes undefined behavior [-Waggressive-loop-optimizations] aux[i]=0; ~~~~~~^~ user.cpp:11:15: note: within this loop for(i=1; i<=nmax; i++) ^ user.cpp: In function ‘int main()’: user.cpp:38:15: warning: iteration 1000001 invokes undefined behavior [-Waggressive-loop-optimizations] if(v[i]>0) sol+=v[i]; ~~~^ user.cpp:37:15: note: within this loop for(i=1; i<=nmax; i++) ^ user.cpp:34:17: warning: iteration 1000001 invokes undefined behavior [-Waggressive-loop-optimizations] v[j]=min(aux[j],v[j]); ~~~~^~~~~~~~~~~~~~~~~ user.cpp:33:19: note: within this loop for(j=1; j<=nmax; j++) ^ user.cpp:41:15: warning: iteration 1000001 invokes undefined behavior [-Waggressive-loop-optimizations] if(v[i]>0) while(v[i]!=0) ~~~^ user.cpp:40:15: note: within this loop for(i=1; i<=nmax; i++) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms1424kbOK10
232ms9192kbOK10
3Depăşit9192kbTime limit exceeded.0
4Depăşit9200kbTime limit exceeded.0
5Depăşit9196kbTime limit exceeded.0
6Depăşit9192kbTime limit exceeded.0
7Depăşit9192kbTime limit exceeded.0
8Depăşit9196kbTime limit exceeded.0
9Depăşit9196kbTime limit exceeded.0
10Depăşit9196kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?