Borderou de evaluare (job #2859811)

Utilizator cyg_dragos10Ivan Dragos cyg_dragos10 Data 1 martie 2022 23:04:51
Problema Expresie3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'std::map<char, int> solve(int)': main.cpp:20:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 20 | for(int i = poz; i < s.size(); i ++) | ~~^~~~~~~~~~ main.cpp:23:18: warning: unused variable 'petreEsteGay' [-Wunused-variable] 23 | bool petreEsteGay = true; | ^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:67:5: error: 'cin' was not declared in this scope 67 | cin>>s; | ^~~ main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 2 | #include <map> +++ |+#include <iostream> 3 | main.cpp:68:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 68 | for(int i = 0;i < s.size();i++) | ~~^~~~~~~~~~ main.cpp:72:18: warning: unused variable 'petreEsteGay' [-Wunused-variable] 72 | bool petreEsteGay = true; | ^~~~~~~~~~~~ main.cpp:105:25: warning: unused variable 'rn' [-Wunused-variable] 105 | int rn = mp[x.first]; | ^~ main.cpp:110:25: warning: unused variable 'rn' [-Wunused-variable] 110 | int rn = mp[x.first]; | ^~ main.cpp:111:25: warning: unused variable 'bulan' [-Wunused-variable] 111 | int bulan = 0; | ^~~~~ main.cpp:120:9: error: 'cout' was not declared in this scope 120 | cout << x.first << " " << x.second << '\n'; | ^~~~ main.cpp:120:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp: In function 'std::map<char, int> solve(int)': main.cpp:64:1: warning: control reaches end of non-void function [-Wreturn-type] 64 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?