Borderou de evaluare (job #1234143)

Utilizator japjappedulapPotra Vlad japjappedulap Data 26 septembrie 2014 19:52:03
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:15: error: ‘INT_MAX’ was not declared in this scope int result = -INT_MAX, I, J, aux, x; ^ user.cpp: In function ‘int main()’: user.cpp:14:15: error: ‘x’ was not declared in this scope is >> x, S[i] = S[i-1]+x; ^ user.cpp:15:5: error: ‘x’ was not declared in this scope x = 0; ^ user.cpp:18:49: error: ‘I’ was not declared in this scope if (result < S[i] - x) result = S[i]-x, I = aux+1, J = i; ^ user.cpp:18:53: error: ‘aux’ was not declared in this scope if (result < S[i] - x) result = S[i]-x, I = aux+1, J = i; ^ user.cpp:18:60: error: ‘J’ was not declared in this scope if (result < S[i] - x) result = S[i]-x, I = aux+1, J = i; ^ user.cpp:19:33: error: ‘aux’ was not declared in this scope if (S[i] < x) x = S[i], aux = i; ^ user.cpp:21:28: error: ‘I’ was not declared in this scope os << result << ' ' << I << ' ' << J; ^ user.cpp:21:40: error: ‘J’ was not declared in this scope os << result << ' ' << I << ' ' << J; ^

Ceva nu functioneaza?