Borderou de evaluare (job #1090392)
Utilizator | Data | 22 ianuarie 2014 17:44:10 | |
---|---|---|---|
Problema | Text | 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:11:15: error: ‘strtok’ was not declared in this scope
p=strtok(s," ");
^
user.cpp:14:21: error: ‘strlen’ was not declared in this scope
for(i=0;i<=strlen(p);i++)
^
user.cpp:15:14: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{if('a'<=p[i] && p[i]>='z' || 'A'<=p[i] && p[i]>='Z')
^
user.cpp:15:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{if('a'<=p[i] && p[i]>='z' || 'A'<=p[i] && p[i]>='Z')
^
user.cpp:15:40: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{if('a'<=p[i] && p[i]>='z' || 'A'<=p[i] && p[i]>='Z')
^
user.cpp:15:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{if('a'<=p[i] && p[i]>='z' || 'A'<=p[i] && p[i]>='Z')
^
user.cpp:15:16: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
{if('a'<=p[i] && p[i]>='z' || 'A'<=p[i] && p[i]>='Z')
^
user.cpp:17:8: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(p[i]=='-' && p[i-1]!=' ' && p[i+1]==' ')
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !