Borderou de evaluare (job #3343075)

Utilizator Anul2024Anul2024 Anul2024 Data 26 februarie 2026 14:12:14
Problema Poligon Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void calc(nr_mari&, int, int)': main.cpp:135:12: error: 'struct nr_mari' has no member named 'init' 135 | pm.init (0); | ^~~~ main.cpp:138:12: error: 'struct nr_mari' has no member named 'init' 138 | pm.init (1); | ^~~~ main.cpp:140:16: error: no match for 'operator*=' (operand types are 'nr_mari' and 'int') 140 | pm *= m; | ~~~^~~~ main.cpp:142:16: error: no match for 'operator*=' (operand types are 'nr_mari' and 'int') 142 | pm *= i; | ~~~^~~~ main.cpp: In function 'void init()': main.cpp:147:12: error: 'n' was not declared in this scope 147 | fin >> n >> m >> k; | ^ main.cpp:147:17: error: 'm' was not declared in this scope; did you mean 'tm'? 147 | fin >> n >> m >> k; | ^ | tm main.cpp:147:22: error: 'k' was not declared in this scope 147 | fin >> n >> m >> k; | ^ main.cpp:148:11: error: 'pm' was not declared in this scope; did you mean 'tm'? 148 | calc (pm, n, m); | ^~ | tm main.cpp:149:11: error: 'pm_1' was not declared in this scope 149 | calc (pm_1, n, m - 1); | ^~~~ main.cpp: In function 'void solve()': main.cpp:153:12: error: 'n' was not declared in this scope 153 | fin >> n >> m >> k; | ^ main.cpp:153:17: error: 'm' was not declared in this scope; did you mean 'tm'? 153 | fin >> n >> m >> k; | ^ | tm main.cpp:153:22: error: 'k' was not declared in this scope 153 | fin >> n >> m >> k; | ^ main.cpp:158:18: error: 'in_p' was not declared in this scope 158 | if (!in_p[j]) | ^~~~ main.cpp:160:17: error: 'valm' was not declared in this scope 160 | valm = calc_val (j); | ^~~~ main.cpp:160:24: error: 'calc_val' was not declared in this scope 160 | valm = calc_val (j); Non zero exit status: 1

Ceva nu functioneaza?