Borderou de evaluare (job #1484228)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 10 septembrie 2015 16:50:02
Problema Virus Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:41:13: warning: unused variable ‘ok’ [-Wunused-variable] int ok = 0, Ans = 0; ^ user.cpp:31:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("virus.in", "r", stdin); ^ user.cpp:32:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("virus.out", "w", stdout); ^ user.cpp:33:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &T); ^ user.cpp:34:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(b + 1); ^ user.cpp:37:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &m); ^ user.cpp:38:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a + 1); ^ /tmp/cc9bvSkK.o: In function `main': user.cpp:(.text.startup+0x77): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms336kbKilled by signal 6(SIGABRT).0
212ms268kbIncorect0
30ms336kbKilled by signal 6(SIGABRT).0
40ms336kbKilled by signal 6(SIGABRT).0
50ms340kbKilled by signal 6(SIGABRT).0
60ms332kbKilled by signal 6(SIGABRT).0
70ms340kbKilled by signal 6(SIGABRT).0
80ms336kbKilled by signal 6(SIGABRT).0
90ms336kbKilled by signal 6(SIGABRT).0
100ms340kbKilled by signal 6(SIGABRT).0
Punctaj total0

Ceva nu functioneaza?