Borderou de evaluare (job #1855389)

Utilizator alesalexandru chirila ales Data 23 ianuarie 2017 17:02: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:9:4: error: ‘sirul’ was not declared in this scope { sirul x este subsir al lui y ^ user.cpp:9:10: error: expected ‘;’ before ‘x’ { sirul x este subsir al lui y ^ user.cpp:13:9: error: ‘lx’ was not declared in this scope if( lx>ly) return false; ^ user.cpp:13:12: error: ‘ly’ was not declared in this scope if( lx>ly) return false; ^ user.cpp:14:5: error: ‘i’ was not declared in this scope i=j=0; ^ user.cpp:14:7: error: ‘j’ was not declared in this scope i=j=0; ^ user.cpp:15:14: error: ‘lx’ was not declared in this scope while( i<lx && j<ly ) ^ user.cpp:15:22: error: ‘ly’ was not declared in this scope while( i<lx && j<ly ) ^ user.cpp:20:15: error: ‘lx’ was not declared in this scope return i==lx; ^ user.cpp: In function ‘int main()’: user.cpp:38:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if( ls>mx || ls==mx && strcmp(s[i],s[ix]) < 0 ) ^ user.cpp:29:10: warning: unused variable ‘ok’ [-Wunused-variable] bool ok; ^ user.cpp: In function ‘bool subsir(char*, char*)’: user.cpp:22:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?