Borderou de evaluare (job #1868900)

Utilizator ionandrei2001Ion Andrei Valentin ionandrei2001 Data 5 februarie 2017 13:50:51
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:9: error: expected ‘]’ before numeric constant int v[6 000 001],s[6 000 001]; ^ user.cpp: In function ‘int main()’: user.cpp:13:13: error: ‘v’ was not declared in this scope in>>v[i]; ^ user.cpp:15:9: error: ‘s’ was not declared in this scope s[i]+=s[i-1]+v[i]; ^ user.cpp:15:22: error: ‘v’ was not declared in this scope s[i]+=s[i-1]+v[i]; ^ user.cpp:18:19: error: ‘s’ was not declared in this scope sumCurent=s[i]-s[j]; ^ user.cpp:10:44: warning: unused variable ‘a’ [-Wunused-variable] int n,bestSum=0,sumMin=0,sumCurent,i,j,a,sfarsit,start; ^

Ceva nu functioneaza?