Borderou de evaluare (job #2784791)

Utilizator Langa_bLanga Radu Langa_b Data 17 octombrie 2021 13:24:24
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: expected ',' or ';' before 'long' 5 | long long best = -2e9, sum = 0, st = -1 , dr=-1; | ^~~~ main.cpp: In function 'int main()': main.cpp:12:7: error: 'sum' was not declared in this scope 12 | if (sum < 0) { | ^~~ main.cpp:14:4: error: 'st' was not declared in this scope; did you mean 'std'? 14 | st = i; | ^~ | std main.cpp:16:3: error: 'sum' was not declared in this scope 16 | sum += x; | ^~~ main.cpp:17:7: error: 'best' was not declared in this scope 17 | if (best < sum) { | ^~~~ main.cpp:19:4: error: 'dr' was not declared in this scope 19 | dr = i; | ^~ main.cpp:22:10: error: 'best' was not declared in this scope 22 | cout << best <<' ' << st<<' ' << dr; | ^~~~ main.cpp:22:24: error: 'st' was not declared in this scope; did you mean 'std'? 22 | cout << best <<' ' << st<<' ' << dr; | ^~ | std main.cpp:22:35: error: 'dr' was not declared in this scope 22 | cout << best <<' ' << st<<' ' << dr; | ^~ Non zero exit status: 1

Ceva nu functioneaza?