Borderou de evaluare (job #658477)

Utilizator avatar stefdascalescu Stefan Dascalescu stefdascalescu IP ascuns
Problemă Accesibil (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 22 aug. 2022 11:49:17 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool accesibil(std::string)': main.cpp:14:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 14 | for (int i = 0; i < x.size(); i++) | ~~^~~~~~~~~~ main.cpp: In function 'bool accesibilfara1(std::string)': main.cpp:32:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 32 | for(int i = 0; i < x.size(); ++i) | ~~^~~~~~~~~~ main.cpp:36:30: error: 's' was not declared in this scope 36 | p += s[j]; | ^ main.cpp:37:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 37 | for(int j = i+1; j < x.size(); ++j) | ~~^~~~~~~~~~ main.cpp:38:30: error: 's' was not declared in this scope 38 | p += s[j]; | ^