Borderou de evaluare (job #2907966)

Utilizator cyg_TheoPruteanu Theodor cyg_Theo Data 31 mai 2022 23:28:27
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:22:11: error: 'dp' was not declared in this scope 22 | int bsum=dp[0], bfi=1, blen=0; | ^~ main.cpp:28:4: error: 'fi' was not declared in this scope; did you mean 'i'? 28 | fi = i+1; | ^~ | i main.cpp:29:4: error: 'len' was not declared in this scope 29 | len = 0; | ^~~ main.cpp:32:4: error: 'len' was not declared in this scope 32 | len++; | ^~~ main.cpp:36:4: error: 'bfi' was not declared in this scope 36 | bfi = fi; | ^~~ main.cpp:36:10: error: 'fi' was not declared in this scope; did you mean 'i'? 36 | bfi = fi; | ^~ | i main.cpp:37:4: error: 'blen' was not declared in this scope; did you mean 'mblen'? 37 | blen = len; | ^~~~ | mblen main.cpp:37:11: error: 'len' was not declared in this scope 37 | blen = len; | ^~~ main.cpp:41:31: error: 'bfi' was not declared in this scope 41 | printf("%lld %d %d\n", bsum, bfi, bfi + blen); | ^~~ main.cpp:41:42: error: 'blen' was not declared in this scope; did you mean 'mblen'? 41 | printf("%lld %d %d\n", bsum, bfi, bfi + blen); | ^~~~ | mblen Non zero exit status: 1

Ceva nu functioneaza?