Borderou de evaluare (job #2852660)

Utilizator cadmium_Voicu Mihai Valeriu cadmium_ Data 19 februarie 2022 13:59:44
Problema Drum8 Status done
Runda Algoritmiada 2022 - Runda 2 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:7: error: 'nmax' was not declared in this scope; did you mean 'fmax'? 5 | int a[nmax]; | ^~~~ | fmax main.cpp:6:8: error: 'nmax' was not declared in this scope; did you mean 'fmax'? 6 | int sa[nmax]; | ^~~~ | fmax main.cpp:7:8: error: 'nmax' was not declared in this scope; did you mean 'fmax'? 7 | int ma[nmax]; | ^~~~ | fmax main.cpp:8:7: error: 'nmax' was not declared in this scope; did you mean 'fmax'? 8 | int b[nmax]; | ^~~~ | fmax main.cpp:9:8: error: 'nmax' was not declared in this scope; did you mean 'fmax'? 9 | int sb[nmax]; | ^~~~ | fmax main.cpp:10:8: error: 'nmax' was not declared in this scope; did you mean 'fmax'? 10 | int mb[nmax]; | ^~~~ | fmax main.cpp:11:11: error: 'nmax' was not declared in this scope; did you mean 'fmax'? 11 | int lastb[nmax]; | ^~~~ | fmax main.cpp:12:11: error: 'nmax' was not declared in this scope; did you mean 'fmax'? 12 | int lasta[nmax]; | ^~~~ | fmax main.cpp: In function 'void getsum(int, int)': main.cpp:15:13: error: 'ma' was not declared in this scope 15 | #define ma (ma + 1) | ^~ main.cpp:25:10: note: in expansion of macro 'ma' 25 | return ma[x] * sb[y] + mb[y] * sa[x] - | ^~ main.cpp:19:13: error: 'sb' was not declared in this scope 19 | #define sb (sb + 1) | ^~ main.cpp:25:18: note: in expansion of macro 'sb' 25 | return ma[x] * sb[y] + mb[y] * sa[x] - | ^~ main.cpp:16:13: error: 'mb' was not declared in this scope 16 | #define mb (mb + 1) | ^~ main.cpp:25:26: note: in expansion of macro 'mb' 25 | return ma[x] * sb[y] + mb[y] * sa[x] - Non zero exit status: 1

Ceva nu functioneaza?