Pagini recente » Borderou de evaluare (job #1407529) | Borderou de evaluare (job #2907150) | Borderou de evaluare (job #590692) | Borderou de evaluare (job #1347009) | Borderou de evaluare (job #1559533)
Borderou de evaluare (job #1559533)
Raport evaluator
Compilare:
user.cpp: In function ‘void readData()’:
user.cpp:23: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:25:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir[i]);
^
user.cpp:35: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:1:
In function ‘char* gets(char*)’,
inlined from ‘void readData()’ at user.cpp:25: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/ccWokRNf.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 | 292kb | Cool! | 10 |
3 | 0ms | 300kb | Cool! | 10 |
4 | 72ms | 312kb | Cool! | 10 |
5 | 0ms | 328kb | Cool! | 10 |
6 | 8ms | 352kb | Cool! | 10 |
7 | 4ms | 384kb | Cool! | 10 |
8 | 8ms | 384kb | Cool! | 10 |
9 | 36ms | 448kb | Cool! | 10 |
10 | 12ms | 444kb | Cool! | 10 |
Punctaj total | 100 |