Borderou de evaluare (job #2195190)
Utilizator | Data | 15 aprilie 2018 16:07:23 | |
---|---|---|---|
Problema | Texttrim | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0; i < strlen(a); i++ )
~~^~~~~~~~~~~
user.cpp:22:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
sum = sum + l[a[i]];
^
user.cpp:29:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while( w >= l[a[i]] && i < strlen(a) )
^
user.cpp:29:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while( w >= l[a[i]] && i < strlen(a) )
~~^~~~~~~~~~~
user.cpp:32:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
w = w - l[a[i]];
^
user.cpp:35:7: error: ‘c’ was not declared in this scope
g <<c"...";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !