Pagini recente » Cod sursa (job #943568) | Cod sursa (job #1492466) | Borderou de evaluare (job #1537757)
Borderou de evaluare (job #1537757)
Raport evaluator
Compilare:
user.cpp: In function ‘void readData()’:
user.cpp:26:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d ", &n, &l);
^
user.cpp:28:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir[i]);
^
user.cpp:38:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &cost[i]);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from user.cpp:4:
In function ‘char* gets(char*)’,
inlined from ‘void readData()’ at user.cpp:28:21:
/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/ccZsIpaQ.o: In function `readData()':
user.cpp:(.text+0x45): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 292kb | Cool! | 10 |
2 | 0ms | 288kb | Cool! | 10 |
3 | 0ms | 296kb | Cool! | 10 |
4 | 56ms | 316kb | Cool! | 10 |
5 | 0ms | 328kb | Cool! | 10 |
6 | 4ms | 348kb | Cool! | 10 |
7 | 4ms | 388kb | Cool! | 10 |
8 | 8ms | 384kb | Cool! | 10 |
9 | 28ms | 444kb | Cool! | 10 |
10 | 8ms | 448kb | Cool! | 10 |
Punctaj total | 100 |