Borderou de evaluare (job #1520580)

Utilizator Eugen_VlasieFMI Vlasie Eugen Eugen_Vlasie Data 9 noiembrie 2015 02:05:18
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:17: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:18: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:42: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:28: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:29: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:34:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:36: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ăşit356kbTime limit exceeded.0
2Depăşit364kbTime limit exceeded.0
3Depăşit364kbTime limit exceeded.0
4Depăşit364kbTime limit exceeded.0
5Depăşit360kbTime limit exceeded.0
6Depăşit364kbTime limit exceeded.0
7Depăşit364kbTime limit exceeded.0
8Depăşit360kbTime limit exceeded.0
9Depăşit360kbTime limit exceeded.0
10Depăşit364kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?