Borderou de evaluare (job #2939325)

Utilizator deerMohanu Dominic deer Data 13 noiembrie 2022 14:56:55
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:8:16: error: expected initializer before 'st' 8 | int n, a, s st, smax, st_max, dr_max; | ^~ main.cpp:10:4: error: 'smax' was not declared in this scope 10 | smax = -1; | ^~~~ main.cpp:13:11: error: 's' was not declared in this scope 13 | if (s < 0) { | ^ main.cpp:15:10: error: 'st' was not declared in this scope; did you mean 'std'? 15 | st = i; | ^~ | std main.cpp:17:7: error: 's' was not declared in this scope 17 | s += a; | ^ main.cpp:20:10: error: 'st_max' was not declared in this scope 20 | st_max = st; | ^~~~~~ main.cpp:20:19: error: 'st' was not declared in this scope; did you mean 'std'? 20 | st_max = st; | ^~ | std main.cpp:21:10: error: 'dr_max' was not declared in this scope 21 | dr_max = i; | ^~~~~~ main.cpp:24:27: error: 'st_max' was not declared in this scope 24 | cout << smax << " " << st_max << " " << dr_max; | ^~~~~~ main.cpp:24:44: error: 'dr_max' was not declared in this scope 24 | cout << smax << " " << st_max << " " << dr_max; | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?