Borderou de evaluare (job #1866934)
Utilizator | Data | 3 februarie 2017 16:59:10 | |
---|---|---|---|
Problema | Interesant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool subsir(char*, char*)’:
user.cpp:10:5: error: ‘lx’ was not declared in this scope
lx=strlen(x),ly=strlen(y);
^
user.cpp:10:18: error: ‘ly’ was not declared in this scope
lx=strlen(x),ly=strlen(y);
^
user.cpp: In function ‘int main()’:
user.cpp:54:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(strlen(nume[i])>lmax || strlen(nume[i])==lmax && strcmp(nume[poz],nume[i])>0)
^
user.cpp:54:57: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(strlen(nume[i])>lmax || strlen(nume[i])==lmax && strcmp(nume[poz],nume[i])>0)
^
user.cpp:54:62: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(strlen(nume[i])>lmax || strlen(nume[i])==lmax && strcmp(nume[poz],nume[i])>0)
^
user.cpp: In function ‘bool subsir(char*, char*)’:
user.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !