Borderou de evaluare (job #1880986)
Utilizator | Data | 16 februarie 2017 08:22:31 | |
---|---|---|---|
Problema | Interesant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int subsir(char*, char*)’:
user.cpp:12:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < strlen(x); j++){
^
user.cpp:18:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(k == strlen(y)){
^
user.cpp: In function ‘int main()’:
user.cpp:39:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(strlen(S[i]) > lmax){
^
user.cpp:43:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
}else if((strlen(S[i]) == lmax)){
^
user.cpp:36:9: warning: variable ‘imax’ set but not used [-Wunused-but-set-variable]
int imax, lmax = 0;
^
user.cpp:59:26: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
if(strlen(j) > strlen(i)){
^
In file included from user.cpp:2:0:
/usr/include/string.h:399:15: error: initializing argument 1 of ‘size_t strlen(const char*)’ [-fpermissive]
extern size_t strlen (__const char *__s)
^
user.cpp:59:38: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
if(strlen(j) > strlen(i)){
^
In file included from user.cpp:2:0:
/usr/include/string.h:399:15: error: initializing argument 1 of ‘size_t strlen(const char*)’ [-fpermissive]
extern size_t strlen (__const char *__s)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !