Pagini recente » Borderou de evaluare (job #312687) | Borderou de evaluare (job #82842) | Borderou de evaluare (job #1989328) | Borderou de evaluare (job #308242) | Borderou de evaluare (job #1250244)
Borderou de evaluare (job #1250244)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:24:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(!cont[s[i]]) k--;
^
user.cpp:25:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cont[s[i]]++;
^
user.cpp:34:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(!cont[s[i]]){
^
user.cpp:37:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cont[c]--;
^
user.cpp:38:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(!cont[c]) break;
^
user.cpp:41:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cont[s[i]]++;
^
user.cpp:44:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(ans < Q.size()){
^
user.cpp:15:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("teatru.in","r",stdin);
^
user.cpp:16:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("teatru.out","w",stdout);
^
user.cpp:18:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&n,&k);
^
user.cpp:19:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",s+1);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 432kb | OK | 10 |
2 | 0ms | 432kb | OK | 10 |
3 | 0ms | 488kb | OK | 10 |
4 | 0ms | 480kb | OK | 10 |
5 | 0ms | 480kb | OK | 10 |
6 | 0ms | 472kb | OK | 10 |
7 | 4ms | 492kb | OK | 10 |
8 | 0ms | 480kb | OK | 10 |
9 | 4ms | 524kb | OK | 10 |
10 | 8ms | 536kb | OK | 10 |
Punctaj total | 100 |