Borderou de evaluare (job #687984)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Codificare (clasa a 6-a) | Compilator | cpp-32 |
Rundă | lasm_18_01_2023_cl10 | Status | evaluat |
Dată | 18 ian. 2023 14:42:34 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:11:9: error: 'freeopen' was not declared in this scope; did you mean 'freopen'?
11 | freeopen("codificare.in", "r", stdin);
| ^~~~~~~~
| freopen
main.cpp:22:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
22 | while(i <= mesajenc.length()){
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp:31:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
31 | for (int i = 0; i < mesaje.size(); i++){
| ~~^~~~~~~~~~~~~~~
main.cpp:33:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
33 | for (int j = 0; j < mesaje.at(i).length(); j++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:37:43: 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 = 0; j < mesaje.at(i).length(); j++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:45:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
45 | for (int j = 0; j < mesajenc.size()/n; j++){
| ~~^~~~~~~~~~~~~~~~~~~