Pagini recente » Borderou de evaluare (job #46677) | Borderou de evaluare (job #2619689) | Borderou de evaluare (job #2508614) | Borderou de evaluare (job #2744199) | Borderou de evaluare (job #2310321)
Borderou de evaluare (job #2310321)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:18:11: warning: array subscript has type 'char' [-Wchar-subscripts]
d[s[n]][n]=n;
^
main.cpp:22:15: warning: array subscript has type 'char' [-Wchar-subscripts]
d[s[i]][i]=i;
^
main.cpp:30:21: warning: array subscript has type 'char' [-Wchar-subscripts]
for(i=d[a[1]][1];i+l-1<=n && i;i=d[a[1]][i+1]){
^
main.cpp:30:48: warning: array subscript has type 'char' [-Wchar-subscripts]
for(i=d[a[1]][1];i+l-1<=n && i;i=d[a[1]][i+1]){
^
main.cpp:35:27: warning: array subscript has type 'char' [-Wchar-subscripts]
j=d[a[poz]][j+1];
^
main.cpp:16:25: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets (s+1,1005,fin);
^
main.cpp:24:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf (fin,"%d\n",&m);
^
main.cpp:27:29: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets (a+1,1005,fin);
^
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:16:25:
/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:27:29:
/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 | 3ms | 524kb | OK | 10 |
2 | 3ms | 524kb | OK | 10 |
3 | 4ms | 524kb | OK | 10 |
4 | 5ms | 524kb | OK | 10 |
5 | 18ms | 524kb | OK | 10 |
6 | 10ms | 524kb | OK | 10 |
7 | 53ms | 524kb | Time limit exceeded | 0 |
8 | 44ms | 524kb | OK | 10 |
9 | 55ms | 524kb | Time limit exceeded | 0 |
10 | 55ms | 524kb | Time limit exceeded | 0 |
Punctaj total | 70 |