Pagini recente » Borderou de evaluare (job #2087157) | Borderou de evaluare (job #2367982) | Borderou de evaluare (job #1360399) | Borderou de evaluare (job #2972976) | Borderou de evaluare (job #1726022)
Borderou de evaluare (job #1726022)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:10: warning: array subscript has type ‘char’ [-Wchar-subscripts]
f[s[0]]++; nr++;
^
user.cpp:17:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(f[s[j]]==0) nr++;
^
user.cpp:18:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
f[s[j]]++;
^
user.cpp:23:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{ f[s[i]]--;
^
user.cpp:24:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr-=(!f[s[i]]);
^
user.cpp:5:36: 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:6:38: 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:7:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%s",&n,&k,s);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 260kb | OK | 10 |
2 | 0ms | 260kb | OK | 10 |
3 | 0ms | 312kb | OK | 10 |
4 | 0ms | 316kb | OK | 10 |
5 | 0ms | 308kb | OK | 10 |
6 | 0ms | 280kb | OK | 10 |
7 | 4ms | 292kb | OK | 10 |
8 | 0ms | 284kb | OK | 10 |
9 | 4ms | 304kb | OK | 10 |
10 | 4ms | 316kb | OK | 10 |
Punctaj total | 100 |