Borderou de evaluare (job #2713944)

Utilizator AlexZeuVasile Alexandru AlexZeu Data 28 februarie 2021 22:35:19
Problema Secventa 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:24: error: 'INT_MIN' was not declared in this scope int n, sum, best_sum = INT_MIN, index, beg, fina, x, k, total_sum; ^~~~~~~ main.cpp: In function 'int main()': main.cpp:10:17: error: 'k' was not declared in this scope fin >> n >> k; ^ main.cpp:12:16: error: 'x' was not declared in this scope fin >> x; ^ main.cpp:13:9: error: 'total_sum' was not declared in this scope total_sum += x; ^~~~~~~~~ main.cpp:15:13: error: 'index' was not declared in this scope index = i; ^~~~~ main.cpp:19:36: error: 'index' was not declared in this scope if (sum >= best_sum && i - index >= k) { ^~~~~ main.cpp:20:13: error: 'beg' was not declared in this scope beg = index; ^~~ main.cpp:21:13: error: 'fina' was not declared in this scope fina = i; ^~~~ main.cpp:25:21: error: 'INT_MIN' was not declared in this scope if (best_sum == INT_MIN) { ^~~~~~~ main.cpp:26:41: error: 'total_sum' was not declared in this scope fout << 1 << " " << n << " " << total_sum; ^~~~~~~~~ main.cpp:29:17: error: 'beg' was not declared in this scope fout << beg << " " << fina << " " << best_sum; ^~~ main.cpp:29:31: error: 'fina' was not declared in this scope fout << beg << " " << fina << " " << best_sum; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?