Borderou de evaluare (job #2432404)

Utilizator StefanSanStanescu Stefan StefanSan Data 23 iunie 2019 15:59:30
Problema Secventa 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:29: error: 'INT_MIN' was not declared in this scope ll a[MAX], n, k, x, maxim = INT_MIN, st, d, s = INT_MAX, p; ^~~~~~~ main.cpp: In function 'int main()': main.cpp:21:18: error: 's' was not declared in this scope if (a[i - k] < s) s = a[i - k], p = i - k + 1; ^ main.cpp:21:35: error: 'p' was not declared in this scope if (a[i - k] < s) s = a[i - k], p = i - k + 1; ^ main.cpp:22:14: error: 's' was not declared in this scope if (a[i] - s > maxim)maxim = a[i] - s, st = p, d = i; ^ main.cpp:22:42: error: 'st' was not declared in this scope if (a[i] - s > maxim)maxim = a[i] - s, st = p, d = i; ^~ main.cpp:22:47: error: 'p' was not declared in this scope if (a[i] - s > maxim)maxim = a[i] - s, st = p, d = i; ^ main.cpp:22:50: error: 'd' was not declared in this scope if (a[i] - s > maxim)maxim = a[i] - s, st = p, d = i; ^ main.cpp:24:9: error: 'st' was not declared in this scope out << st << " " << d << " " << maxim; ^~ main.cpp:24:22: error: 'd' was not declared in this scope out << st << " " << d << " " << maxim; ^ Non zero exit status: 1

Ceva nu functioneaza?