Borderou de evaluare (job #1938977)

Utilizator al-ghabaghbi_anisAl Ghabaghbi Anis al-ghabaghbi_anis Data 25 martie 2017 13:02:50
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:31:1: error: stray ‘`’ in program fout<<max1<<" "<<x<<" "<<y`; ^ user.cpp:5:1: error: expected ‘,’ or ‘;’ before ‘ofstream’ ofstream fout("secvmax.out") ^ user.cpp: In function ‘int main()’: user.cpp:14:1: error: ‘s’ was not declared in this scope s[i]=s[i-1]+a; ^ user.cpp:20:13: error: ‘s’ was not declared in this scope if(min1>s[i-1]) ^ user.cpp:25:8: error: ‘s’ was not declared in this scope if(s[i]-min1>max1 && i!=1) ^ user.cpp:31:1: error: ‘fout’ was not declared in this scope fout<<max1<<" "<<x<<" "<<y`; ^

Ceva nu functioneaza?