Borderou de evaluare (job #1777246)

Utilizator Dragne.Andrei11Dragne Andrei Dragne.Andrei11 Data 12 octombrie 2016 10:13:38
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:83:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%I64d", &d); ^ user.cpp:77:32: 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:78:34: 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:81:9: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:83:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%I64d", &d); ^ /tmp/ccfevjwb.o: In function `main': user.cpp:(.text.startup+0x61): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK10
20ms284kbOK10
30ms284kbOK10
40ms316kbKilled by signal 6(SIGABRT).0
50ms316kbKilled by signal 6(SIGABRT).0
60ms312kbKilled by signal 6(SIGABRT).0
70ms312kbKilled by signal 6(SIGABRT).0
80ms316kbKilled by signal 6(SIGABRT).0
90ms308kbKilled by signal 6(SIGABRT).0
100ms316kbKilled by signal 6(SIGABRT).0
Punctaj total30

Ceva nu functioneaza?