Borderou de evaluare (job #1520577)

Utilizator Eugen_VlasieFMI Vlasie Eugen Eugen_Vlasie Data 9 noiembrie 2015 01:55:09
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*, int, int)’: user.cpp:16:35: warning: operation on ‘*(v + ((sizetype)(((unsigned int)j) * 4u)))’ may be undefined [-Wsequence-point] v[i]+=v[j]-(v[j]=v[i]); ^ user.cpp:17:51: warning: operation on ‘*(poz + ((sizetype)(((unsigned int)j) * 4u)))’ may be undefined [-Wsequence-point] poz[i]+=poz[j]-(poz[j]=poz[i]),i++,j--; ^ user.cpp: In function ‘int main()’: user.cpp:38: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:27: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:28: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:30:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:32: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ăşit248kbTime limit exceeded.0
2Depăşit248kbTime limit exceeded.0
3Depăşit252kbTime limit exceeded.0
4Depăşit252kbTime limit exceeded.0
5Depăşit256kbTime limit exceeded.0
6Depăşit260kbTime limit exceeded.0
7Depăşit260kbTime limit exceeded.0
8Depăşit284kbTime limit exceeded.0
9Depăşit312kbTime limit exceeded.0
10Depăşit320kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?