Borderou de evaluare (job #1466258)

Utilizator iulianrotaruRotaru Gheorghe-Iulian iulianrotaru Data 28 iulie 2015 20:23:27
Problema Custi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:27: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n",v[n][n]); ^ user.cpp:24:42: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] for(i=2;i<=n;++i) printf("%ld\n",r[i]); ^ user.cpp:9:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("custi.in","r",stdin); ^ user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("custi.out","w",stdout); ^ user.cpp:11:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:13:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(j=1;j<=n;++j) {scanf("%c ",&t); v[i][j]=(t-'0')+v[i][j-1]+v[i-1][j]-v[i-1][j-1];} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1156ms2248kbOK10
20ms396kbOK10
30ms512kbOK10
40ms668kbOK10
5132ms4200kbOK10
692ms3320kbOK10
7Depăşit4160kbTime limit exceeded.0
8Depăşit4156kbTime limit exceeded.0
9Depăşit4108kbTime limit exceeded.0
10Depăşit4156kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?