Pagini recente » Borderou de evaluare (job #15530) | Borderou de evaluare (job #1962665) | Borderou de evaluare (job #1837550) | Borderou de evaluare (job #1944795) | Borderou de evaluare (job #2310311)
Borderou de evaluare (job #2310311)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:23:18: warning: array subscript has type 'char' [-Wchar-subscripts]
d[i][s[i]]=i;
^
main.cpp:31:24: warning: array subscript has type 'char' [-Wchar-subscripts]
for(i=d[1][a[1]];i<=n-l+1&&i!=0;i=d[i+1][a[1]]){
^
main.cpp:31:54: warning: array subscript has type 'char' [-Wchar-subscripts]
for(i=d[1][a[1]];i<=n-l+1&&i!=0;i=d[i+1][a[1]]){
^
main.cpp:36:32: warning: array subscript has type 'char' [-Wchar-subscripts]
j=d[j+1][a[poz]];
^
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:25: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:28: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:28: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 | 2ms | 393kb | OK | 10 |
2 | 3ms | 524kb | OK | 10 |
3 | 4ms | 1310kb | OK | 10 |
4 | 8ms | 2490kb | OK | 10 |
5 | 22ms | 3014kb | OK | 10 |
6 | 17ms | 3407kb | OK | 10 |
7 | 53ms | 4194kb | Time limit exceeded | 0 |
8 | 53ms | 4194kb | Time limit exceeded | 0 |
9 | 53ms | 4194kb | Time limit exceeded | 0 |
10 | 53ms | 4325kb | Time limit exceeded | 0 |
Punctaj total | 60 |