Borderou de evaluare (job #2865229)

Utilizator newagear2Dragan Iulian newagear2 Data 8 martie 2022 17:14:42
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:12:5: error: 'cin' was not declared in this scope 12 | cin>>a>>b; | ^~~ main.cpp:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 3 | #include <vector> +++ |+#include <iostream> 4 | using namespace std; main.cpp:13:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 13 | for(int i=0;i<b.length();i++){ | ~^~~~~~~~~~~ main.cpp:16:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 16 | if(depth == a.length()){ | ~~~~~~^~~~~~~~~~~~~ main.cpp:24:5: error: 'cout' was not declared in this scope 24 | cout<<match.size()<<endl; | ^~~~ main.cpp:24:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?