Borderou de evaluare (job #3359103)

Utilizator TeogaloiuTeodor Galoiu Teogaloiu Data 24 iunie 2026 15:00:57
Problema TwoSets Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void hasher(std::string, int, std::vector<int>&)': main.cpp:17:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 17 | for(int i=0;i<s.size();i++){ | ~^~~~~~~~~ main.cpp:26:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 26 | for(int i=0;i<v.size();i++){ | ~^~~~~~~~~ main.cpp: In function 'int main()': main.cpp:40:5: error: 'cin' was not declared in this scope 40 | cin>>t; | ^~~ main.cpp:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 3 | #include <cstring> +++ |+#include <iostream> 4 | main.cpp:49:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 49 | for(int i=0;i<hb.size();i++) | ~^~~~~~~~~~ main.cpp:56:13: error: 'cout' was not declared in this scope 56 | cout<<1<<'\n'; | ^~~~ main.cpp:56:13: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:58:13: error: 'cout' was not declared in this scope 58 | cout<<0<<'\n'; | ^~~~ main.cpp:58:13: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?