Borderou de evaluare (job #2762576)

Utilizator DariusMDarius Feher DariusM Data 8 iulie 2021 15:10:13
Problema Secventa 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:11:19: error: 'INT_MAX' was not declared in this scope int n, mini = INT_MAX, maxi = INT_MIN, st, end, stMin, x, k; ^~~~~~~ main.cpp:12:15: error: 'k' was not declared in this scope f >> n >> k; ^ main.cpp:13:5: error: 'st' was not declared in this scope st = end = 0; ^~ main.cpp:13:16: error: overloaded function with no contextual type information st = end = 0; ^ main.cpp:15:14: error: 'x' was not declared in this scope f >> x; ^ main.cpp:21:13: error: 'stMin' was not declared in this scope stMin = i - k; ^~~~~ main.cpp:23:31: error: 'maxi' was not declared in this scope if (pSums[i] - mini > maxi) { ^~~~ main.cpp:25:19: error: overloaded function with no contextual type information end = i; ^ main.cpp:26:18: error: 'stMin' was not declared in this scope st = stMin + 1; ^~~~~ main.cpp:29:37: error: 'maxi' was not declared in this scope g << st << " " << end << " " << maxi << "\n"; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?