Pagini recente » Borderou de evaluare (job #3258003) | Borderou de evaluare (job #401663) | Borderou de evaluare (job #943320) | Borderou de evaluare (job #1342764) | Borderou de evaluare (job #2366515)
Borderou de evaluare (job #2366515)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:29:46: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d %d %d",&n,&s,&k[1],&k[2]);
^
main.cpp:34:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&a[i]);
^
main.cpp:37:19: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"\n");
^
main.cpp:39:28: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(b + 1,NMAX + 5,f);
^
main.cpp:40:28: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(c + 1,NMAX + 5,f);
^
In file included from /usr/include/stdio.h:936:0,
from /usr/include/c++/6/cstdio:42,
from main.cpp:1:
In function 'char* fgets(char*, int, FILE*)',
inlined from 'int main()' at main.cpp:39:28:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^
In function 'char* fgets(char*, int, FILE*)',
inlined from 'int main()' at main.cpp:40:28:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 3ms | 131kb | Incorect | 0 |
5 | 3ms | 131kb | OK | 10 |
6 | 21ms | 655kb | Incorect | 0 |
7 | 34ms | 917kb | Incorect | 0 |
8 | 49ms | 1306kb | Incorect | 0 |
9 | 64ms | 1699kb | Killed by Signal 11 | 0 |
10 | 61ms | 1613kb | Killed by Signal 11 | 0 |
Punctaj total | 20 |