Borderou de evaluare (job #1648662)

Utilizator hegedusPaul Hegedus hegedus Data 11 martie 2016 11:12:19
Problema Suma4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 4

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:73:26: warning: operation on ‘k’ may be undefined [-Wsequence-point] do {u[++k]=k*k+u[k-1];} while(u[k]<n); ^ user.cpp:73:26: warning: operation on ‘k’ may be undefined [-Wsequence-point] user.cpp:73:26: warning: operation on ‘k’ may be undefined [-Wsequence-point] user.cpp:78:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n",smin); ^ user.cpp: In function ‘void citire()’: user.cpp:16:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("suma4.in","r",stdin); ^ user.cpp:17:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("suma4.out","w",stdout); ^ user.cpp:18:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:21:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms460kbPrimul numar corect1
20ms460kbPrimul numar corect1
38ms464kbPrimul numar corect1
4Depăşit492kbTime limit exceeded.0
5Depăşit616kbTime limit exceeded.0
6Depăşit648kbTime limit exceeded.0
7Depăşit680kbTime limit exceeded.0
8Depăşit700kbTime limit exceeded.0
9Depăşit700kbTime limit exceeded.0
100ms452kbPrimul numar corect1
Punctaj total4

Ceva nu functioneaza?