Pagini recente » Borderou de evaluare (job #409249) | Borderou de evaluare (job #2532478) | Borderou de evaluare (job #660300) | Borderou de evaluare (job #1987049) | Borderou de evaluare (job #1808588)
Borderou de evaluare (job #1808588)
Raport evaluator
Compilare:
user.cpp: In function ‘long long int read_nr()’:
user.cpp:21:30: warning: NULL used in arithmetic [-Wpointer-arith]
for( j=0 , nr=0; sir[j]!=NULL ; j++){
^
user.cpp: In function ‘int main()’:
user.cpp:38:36: warning: NULL used in arithmetic [-Wpointer-arith]
for( j=0 , nr=0; sir[j] != NULL ; j++){
^
user.cpp: In function ‘long long int read_nr()’:
user.cpp:19:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir);
^
user.cpp: In function ‘int main()’:
user.cpp:31:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dtcsu.in","r",stdin);
^
user.cpp:32:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dtcsu.out","w",stdout);
^
user.cpp:36:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir);
^
/tmp/ccHI5Tj3.o: In function `read_nr()':
user.cpp:(.text+0x17): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2684ms | 868kb | OK | 20 |
2 | 3228ms | 860kb | OK | 20 |
3 | 3112ms | 868kb | OK | 20 |
4 | 1444ms | 864kb | OK | 20 |
5 | 2760ms | 868kb | OK | 20 |
Punctaj total | 100 |