Pagini recente » Borderou de evaluare (job #677016) | Borderou de evaluare (job #3002039) | Borderou de evaluare (job #1735784) | Borderou de evaluare (job #52654) | Borderou de evaluare (job #1405075)
Borderou de evaluare (job #1405075)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:16:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
frecv[ch]++;
^
user.cpp:17:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(frecv[ch]==1)
^
user.cpp:27:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(--frecv[x[begin++]]);
^
user.cpp:8:41: warning: unused variable ‘d’ [-Wunused-variable]
int i,S=0,max=0,Z,C,begin=1,start=1,d,distincte=0;
^
user.cpp:6: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:7: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:10:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&Z,&C);
^
user.cpp:11:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&ch);
^
user.cpp:14:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&ch);x[i]=ch;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 248kb | OK | 10 |
2 | 0ms | 248kb | OK | 10 |
3 | 4ms | 296kb | OK | 10 |
4 | 4ms | 300kb | OK | 10 |
5 | 4ms | 296kb | OK | 10 |
6 | 4ms | 268kb | OK | 10 |
7 | 4ms | 280kb | OK | 10 |
8 | 4ms | 272kb | OK | 10 |
9 | 8ms | 300kb | OK | 10 |
10 | 8ms | 300kb | OK | 10 |
Punctaj total | 100 |