Borderou de evaluare (job #1777257)

Utilizator PruteanuTheoPruteanu Theodor PruteanuTheo Data 12 octombrie 2016 10:16:29
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:22:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("\n%I64d",&d); ^ user.cpp:13:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.in","r",stdin); ^ user.cpp:14:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.out","w",stdout); ^ user.cpp:16:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:22:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n%I64d",&d); ^ /tmp/ccl9s2Qp.o: In function `main': user.cpp:(.text.startup+0x66): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
20ms268kbIncorect0
30ms272kbOK10
40ms320kbOK10
54ms424kbOK10
620ms756kbOK10
752ms1548kbIncorect0
8140ms3520kbIncorect0
9200ms4668kbIncorect0
10212ms5140kbIncorect0
Punctaj total50

Ceva nu functioneaza?