Borderou de evaluare (job #1646285)

Utilizator hegedusPaul Hegedus hegedus Data 10 martie 2016 15:39:12
Problema Suma4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

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
1Depăşit440kbTime limit exceeded.0
2Depăşit444kbTime limit exceeded.0
3Depăşit456kbTime limit exceeded.0
4Depăşit460kbTime limit exceeded.0
58ms492kbKilled by signal 11(SIGSEGV).0
68ms492kbKilled by signal 11(SIGSEGV).0
712ms500kbKilled by signal 11(SIGSEGV).0
812ms496kbKilled by signal 11(SIGSEGV).0
912ms496kbKilled by signal 11(SIGSEGV).0
10Depăşit428kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?