Borderou de evaluare (job #1520581)

Utilizator Eugen_VlasieFMI Vlasie Eugen Eugen_Vlasie Data 9 noiembrie 2015 02:10:11
Problema Egipt Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void qsort(int, int)’: user.cpp:18:35: warning: operation on ‘v[j]’ may be undefined [-Wsequence-point] v[i]+=v[j]-(v[j]=v[i]); ^ user.cpp:19:51: warning: operation on ‘poz[j]’ may be undefined [-Wsequence-point] poz[i]+=poz[j]-(poz[j]=poz[i]),i++,j--; ^ user.cpp: In function ‘int main()’: user.cpp:40:75: warning: operation on ‘poz[poz[i]]’ may be undefined [-Wsequence-point] rez[poz[i]]=i,s++,poz[i]+=poz[poz[i]]-(poz[poz[i]]=poz[i]); ^ user.cpp:29:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("egipt.in","r",stdin); ^ user.cpp:30:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("egipt.out","w",stdout); ^ user.cpp:31:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:34:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]),poz[i]=i; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit240kbTime limit exceeded.0
2Depăşit248kbTime limit exceeded.0
3Depăşit244kbTime limit exceeded.0
4Depăşit240kbTime limit exceeded.0
5Depăşit248kbTime limit exceeded.0
6Depăşit252kbTime limit exceeded.0
7Depăşit256kbTime limit exceeded.0
8Depăşit284kbTime limit exceeded.0
9Depăşit308kbTime limit exceeded.0
10Depăşit316kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?