Borderou de evaluare (job #2158001)

Utilizator bogdi1bogdan bancuta bogdi1 Data 10 martie 2018 09:01:25
Problema Incantatii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ 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:14:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ 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:14:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ 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:28:49: warning: format ‘%c’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%c", v[i]/put53[j]+'A'-1); ^ user.cpp:30:52: warning: format ‘%c’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%c", v[i]/put53[j]-26+'a'-1); ^ user.cpp:9:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] { freopen("incantatii.in", "r",stdin); ^ user.cpp:10:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("incantatii.out", "w",stdout); ^ user.cpp:12:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:14:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccRMPB4H.o: In function `main': user.cpp:(.text.startup+0x81): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms1436kbOK5
20ms1484kbOK5
30ms1400kbOK5
40ms1456kbOK5
50ms1428kbOK5
64ms1404kbOK5
7Depăşit7188kbTime limit exceeded.0
8Depăşit9052kbTime limit exceeded.0
9624ms5276kbOK5
10104ms1748kbOK5
11384ms2556kbOK5
12Depăşit7168kbTime limit exceeded.0
13120ms1792kbOK5
14Depăşit7688kbTime limit exceeded.0
15Depăşit7552kbTime limit exceeded.0
16Depăşit5112kbTime limit exceeded.0
17500ms2840kbOK5
18424ms2684kbOK5
19Depăşit5152kbTime limit exceeded.0
20Depăşit5124kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?