Borderou de evaluare (job #3234109)

Utilizator iulia_morariuIulia Morariu iulia_morariu Data 6 iunie 2024 15:08:27
Problema Cntper Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool ePer(std::string)': main.cpp:14:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 14 | for(int d = 1; d < s.size(); d++){ | ~~^~~~~~~~~~ main.cpp:18:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 18 | for(int j = 0; j < s.size(); j++){ | ~~^~~~~~~~~~ main.cpp: In function 'void gen()': main.cpp:31:17: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 31 | if(s.size() == n){ | ~~~~~~~~~^~~~ main.cpp: In function 'int main()': main.cpp:57:29: error: 'sqrt' was not declared in this scope 57 | for(int j = 1; j <= sqrt(i); j++){ | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?