Borderou de evaluare (job #1680482)

Utilizator geniucosOncescu Costin geniucos Data 8 aprilie 2016 20:04:15
Problema Sms Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void get_wob(int)’: user.cpp:11:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] w = inc[sir[i]], o = cor[sir[i]], b = bac[sir[i]]; ^ user.cpp:11:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] w = inc[sir[i]], o = cor[sir[i]], b = bac[sir[i]]; ^ user.cpp:11:53: warning: array subscript has type ‘char’ [-Wchar-subscripts] w = inc[sir[i]], o = cor[sir[i]], b = bac[sir[i]]; ^ user.cpp: In function ‘int main()’: user.cpp:20:1: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets (sir + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:20:1: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets (sir + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:20:14: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets (sir + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:16:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("sms.in", "r", stdin); ^ user.cpp:17:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("sms.out", "w", stdout); ^ user.cpp:19:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d\n", &N, &K); ^ user.cpp:20:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (sir + 1); ^ user.cpp:24:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%lf %lf %lf", &cor[i], &inc[i], &bac[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms3280kbOk!10
20ms3360kbOk!10
30ms3392kbOk!10
40ms3392kbOk!10
54ms3644kbOk!10
624ms12820kbOk!10
736ms17088kbOk!10
836ms17128kbOk!10
948ms17920kbOk!10
1048ms17948kbOk!10
Punctaj total100

Ceva nu functioneaza?