Borderou de evaluare (job #610815)

Utilizator avatar Gabrielaciornea Gabriela Ciornea Gabrielaciornea IP ascuns
Problemă Tcif (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 19 oct. 2021 11:58:17 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:18:5: error: 'fin' was not declared in this scope 18 | fin >> a >> b >> c >> cif1 >> cif2 >> cif3 >> s; | ^~~ main.cpp:22:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 22 | if( a + b + c > s.size() ) { | ~~~~~~~~~~^~~~~~~~~~ main.cpp:27:9: error: 'fout' was not declared in this scope 27 | fout << i; | ^~~~ main.cpp:35:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 35 | while( i < s.size() && f[s[i] - '0'] > 0 ) { | ~~^~~~~~~~~~ main.cpp:39:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 39 | if( i == s.size() ) { | ~~^~~~~~~~~~~ main.cpp:41:13: error: 'fout' was not declared in this scope 41 | fout << s; | ^~~~ main.cpp:56:17: error: 'fout' was not declared in this scope 56 | fout << s[ok]; | ^~~~ main.cpp:57:13: error: 'fout' was not declared in this scope 57 | fout << a; | ^~~~