Borderou de evaluare (job #1916014)

Utilizator zdavid112zIon David-Gabriel zdavid112z Data 8 martie 2017 23:39:35
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:2:90: error: ‘ios’ has not been declared int x,p,s[1<<22];std::string a,b="strmatch.";int main(){std::fstream f(b+"in"),g(b+"out",ios::out);f>>a>>b;while(p=b.find(a,p)+1)s[x++]=p-1;g<<x<<'\n';while(p<x&p<1000)g<<s[p++]<<' ';} ^ user.cpp:2:128: warning: suggest parentheses around assignment used as truth value [-Wparentheses] int x,p,s[1<<22];std::string a,b="strmatch.";int main(){std::fstream f(b+"in"),g(b+"out",ios::out);f>>a>>b;while(p=b.find(a,p)+1)s[x++]=p-1;g<<x<<'\n';while(p<x&p<1000)g<<s[p++]<<' ';} ^ user.cpp:2:159: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] int x,p,s[1<<22];std::string a,b="strmatch.";int main(){std::fstream f(b+"in"),g(b+"out",ios::out);f>>a>>b;while(p=b.find(a,p)+1)s[x++]=p-1;g<<x<<'\n';while(p<x&p<1000)g<<s[p++]<<' ';} ^

Ceva nu functioneaza?