Pagini recente » Borderou de evaluare (job #482890) | Borderou de evaluare (job #1196422) | Borderou de evaluare (job #914244) | Borderou de evaluare (job #256415) | Borderou de evaluare (job #2137538)
Borderou de evaluare (job #2137538)
Raport evaluator
Compilare:
user.cpp: In function ‘void frecventa()’:
user.cpp:16:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
++frsir[0][c[i]];
^
user.cpp: In function ‘int main()’:
user.cpp:122:12: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
c[lg+1]=NULL;
^
user.cpp:144:50: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fprintf(g," %d\n",frtot[ascii]+sp[poz]);
^
user.cpp:144:50: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:144:51: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘void (*)(char)’ [-Wformat=]
fprintf(g," %d\n",frtot[ascii]+sp[poz]);
^
user.cpp:115:19: warning: unused variable ‘p’ [-Wunused-variable]
long long poz,p;
^
user.cpp: In function ‘long long int rez(long long int)’:
user.cpp:110:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:119:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%lld %d",&lg,&q);
^
user.cpp:120:24: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(c+1,100012,f);
^
user.cpp:121:24: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(c+1,100012,f);
^
user.cpp:128:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%lld",&poz);
^
In file included from /usr/include/stdio.h:936:0,
from user.cpp:1:
In function ‘char* fgets(char*, int, FILE*)’,
inlined from ‘int main()’ at user.cpp:120:24:
/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 user.cpp:121:24:
/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 | 0ms | 876kb | Partial corect | 4 |
2 | 0ms | 844kb | Incorect | 0 |
3 | 0ms | 848kb | Incorect | 0 |
4 | 0ms | 844kb | Incorect | 0 |
5 | 200ms | 864kb | Incorect | 0 |
6 | 344ms | 860kb | Incorect | 0 |
7 | 472ms | 936kb | Incorect | 0 |
8 | 620ms | 932kb | Incorect | 0 |
9 | 4ms | 852kb | Incorect | 0 |
10 | 8ms | 860kb | Incorect | 0 |
11 | 4ms | 852kb | Incorect | 0 |
12 | 8ms | 856kb | Incorect | 0 |
13 | Depăşit | 940kb | Time limit exceeded. | 0 |
14 | Depăşit | 1016kb | Time limit exceeded. | 0 |
15 | Depăşit | 1180kb | Time limit exceeded. | 0 |
16 | Depăşit | 1260kb | Time limit exceeded. | 0 |
17 | Depăşit | 1284kb | Time limit exceeded. | 0 |
18 | Depăşit | 1300kb | Time limit exceeded. | 0 |
19 | Depăşit | 1320kb | Time limit exceeded. | 0 |
Punctaj total | 4 |