Borderou de evaluare (job #1958267)

Utilizator ioanavasilescuIoana Vasilescu ioanavasilescu Data 8 aprilie 2017 11:06:07
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:9:25: error: ‘INT_MIN’ was not declared in this scope int i,s=-1,l=0,smax=INT_MIN,imax,lmax; ^ user.cpp:10:17: error: variable ‘std::ifstream fin’ has initializer but incomplete type ifstream fin("ssm.in"); ^ user.cpp:11:18: error: variable ‘std::ofstream fout’ has initializer but incomplete type ofstream fout("ssm.out"); ^ user.cpp:12:10: error: ‘n’ was not declared in this scope fin>>n; ^ user.cpp:19:24: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive] if(s>smax){smax=a;imax=i;lmax=l;} ^ user.cpp:19:27: error: ‘imax’ was not declared in this scope if(s>smax){smax=a;imax=i;lmax=l;} ^ user.cpp:19:34: error: ‘lmax’ was not declared in this scope if(s>smax){smax=a;imax=i;lmax=l;} ^ user.cpp:21:22: error: ‘imax’ was not declared in this scope fout<<smax<<" "<<imax-lmax+1<<" "<<imax; ^ user.cpp:21:27: error: ‘lmax’ was not declared in this scope fout<<smax<<" "<<imax-lmax+1<<" "<<imax; ^

Ceva nu functioneaza?