Borderou de evaluare (job #991420)
Utilizator | Data | 30 august 2013 15:16:51 | |
---|---|---|---|
Problema | Ordine | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:21: error: ‘strlen’ was not declared in this scope
f>>s; n=strlen(s);
^
user.cpp:9:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(i=0;i<n;i++) fr[s[i]]++;
^
user.cpp:12:11: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(fr[j]==(n-i+1)/2+1) c=j, w=0;
^
user.cpp:14:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(fr[j] && j!=cv) c=j, w=0;
^
user.cpp:15:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
g<<c; fr[c]--; cv=c;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !