Borderou de evaluare (job #3249914)

Utilizator BokorTitanillaBokor Titanilla BokorTitanilla Data 18 octombrie 2024 18:39:16
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:26:9: error: redeclaration of 'int beg_index' 26 | int beg_index=0, end_index=0, s_max=tomb[0], last_beg_index = 0; | ^~~~~~~~~ main.cpp:23:9: note: 'int beg_index' previously declared here 23 | int beg_index=0, end_index=0, s_max=0; | ^~~~~~~~~ main.cpp:26:22: error: redeclaration of 'int end_index' 26 | int beg_index=0, end_index=0, s_max=tomb[0], last_beg_index = 0; | ^~~~~~~~~ main.cpp:23:22: note: 'int end_index' previously declared here 23 | int beg_index=0, end_index=0, s_max=0; | ^~~~~~~~~ main.cpp:26:35: error: redeclaration of 'int s_max' 26 | int beg_index=0, end_index=0, s_max=tomb[0], last_beg_index = 0; | ^~~~~ main.cpp:23:35: note: 'int s_max' previously declared here 23 | int beg_index=0, end_index=0, s_max=0; | ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?