Borderou de evaluare (job #1660557)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 23 martie 2016 11:31:36
Problema Sms Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:22:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:22:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:22:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:17:34: 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:18:36: 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:21:28: 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:22:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ user.cpp:24:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf%lf%lf", &pok[i], &pwr[i], &pbk[i]); ^ /tmp/cccY2Yas.o: In function `main': user.cpp:(.text.startup+0x60): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms6748kbOk!10
28ms7076kbOk!10
38ms6776kbOk!10
412ms6872kbOk!10
5Depăşit7132kbTime limit exceeded.0
6Depăşit20028kbTime limit exceeded.0
7Depăşit26772kbTime limit exceeded.0
8Depăşit26432kbTime limit exceeded.0
9Depăşit27004kbTime limit exceeded.0
10Depăşit26876kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?