Borderou de evaluare (job #1471771)

Utilizator theprdvtheprdv theprdv Data 15 august 2015 08:27:55
Problema Ratina Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:52:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short unsigned int*’ [-Wformat=] scanf("%d %d\n", &N, &M); ^ user.cpp:52:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short unsigned int*’ [-Wformat=] user.cpp:48:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratina.in", "r", stdin); ^ user.cpp:49:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratina.out", "w", stdout); ^ user.cpp:52:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &N, &M); ^ user.cpp:57:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(W[i].A); ^ user.cpp:70:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &t); ^ user.cpp:74:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &val); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:3: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:57:15: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccMVsn2x.o: In function `main': user.cpp:(.text.startup+0xa9): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbKilled by signal 11(SIGSEGV).0
20ms276kbKilled by signal 11(SIGSEGV).0
30ms268kbKilled by signal 11(SIGSEGV).0
40ms264kbKilled by signal 11(SIGSEGV).0
50ms268kbKilled by signal 11(SIGSEGV).0
60ms264kbKilled by signal 11(SIGSEGV).0
70ms276kbKilled by signal 11(SIGSEGV).0
80ms276kbKilled by signal 11(SIGSEGV).0
90ms272kbKilled by signal 11(SIGSEGV).0
100ms276kbKilled by signal 11(SIGSEGV).0
110ms280kbKilled by signal 11(SIGSEGV).0
120ms276kbKilled by signal 11(SIGSEGV).0
130ms276kbKilled by signal 11(SIGSEGV).0
140ms276kbKilled by signal 11(SIGSEGV).0
150ms272kbKilled by signal 11(SIGSEGV).0
160ms276kbKilled by signal 11(SIGSEGV).0
170ms276kbKilled by signal 11(SIGSEGV).0
180ms272kbKilled by signal 11(SIGSEGV).0
190ms276kbKilled by signal 11(SIGSEGV).0
200ms272kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?