Borderou de evaluare (job #1466275)

Utilizator iulianrotaruRotaru Gheorghe-Iulian iulianrotaru Data 28 iulie 2015 20:50:54
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:28: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:29: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:10: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:11: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:12:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:16:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(w); ^ /tmp/cc9SyYI3.o: In function `main': user.cpp:(.text.startup+0x85): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1128ms2232kbOK10
20ms388kbOK10
30ms512kbOK10
40ms668kbOK10
528ms4192kbOK10
616ms3316kbOK10
7Depăşit4160kbTime limit exceeded.0
8Depăşit4160kbTime limit exceeded.0
9Depăşit4112kbTime limit exceeded.0
10Depăşit4160kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?