Pagini recente » Borderou de evaluare (job #541309) | Borderou de evaluare (job #1748968) | Borderou de evaluare (job #2960754) | Borderou de evaluare (job #2288760) | Borderou de evaluare (job #1605644)
Borderou de evaluare (job #1605644)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s + 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:18:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s + 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:18:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s + 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:14: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:15: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:17:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i %i\n", &n, &k);
^
user.cpp:18:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s + 1);
^
user.cpp:21:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf %lf", &pc[i], &pi[i], &pb[i]);
^
/tmp/ccDrB59l.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 |
1 | 4ms | 7496kb | Ok! | 10 |
2 | 4ms | 7456kb | Ok! | 10 |
3 | 4ms | 7460kb | Ok! | 10 |
4 | 4ms | 7468kb | Ok! | 10 |
5 | 8ms | 7524kb | Ok! | 10 |
6 | 56ms | 18104kb | Ok! | 10 |
7 | 80ms | 24608kb | Ok! | 10 |
8 | 84ms | 24868kb | Ok! | 10 |
9 | 108ms | 26628kb | Ok! | 10 |
10 | 108ms | 26544kb | Ok! | 10 |
Punctaj total | 100 |