Borderou de evaluare (job #3193258)

Utilizator Minea_TheodorMinea Theodor Stefan Minea_Theodor Data 14 ianuarie 2024 13:25:40
Problema Monezi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:12: error: 'MAX_N' was not declared in this scope 7 | int moneda[MAX_N]; | ^~~~~ main.cpp:9:12: error: 'MAX_N' was not declared in this scope 9 | int subset[MAX_N]; | ^~~~~ main.cpp:10:8: error: 'MAX_S' was not declared in this scope 10 | bool d[MAX_S + 1]; | ^~~~~ main.cpp: In function 'void compute(int)': main.cpp:25:13: error: 'd' was not declared in this scope 25 | if (d[i]) | ^ main.cpp:29:19: error: 'd' was not declared in this scope 29 | result += d[i]; | ^ main.cpp: In function 'void bkt(int)': main.cpp:34:14: error: 'MAX_S' was not declared in this scope 34 | bool aux[MAX_S + 1]; | ^~~~~ main.cpp:35:10: error: 'd' was not declared in this scope 35 | copy(d, aux); | ^ main.cpp:35:13: error: 'aux' was not declared in this scope 35 | copy(d, aux); | ^~~ main.cpp:38:14: error: 'subset' was not declared in this scope 38 | for (i = subset[pos] + 1; i <= n; ++i) | ^~~~~~ main.cpp:41:17: error: 'moneda' was not declared in this scope 41 | compute(moneda[i - 1]); | ^~~~~~ main.cpp: In function 'int main()': main.cpp:50:14: error: 'moneda' was not declared in this scope 50 | fin >> moneda[i]; | ^~~~~~ main.cpp:52:5: error: 'd' was not declared in this scope 52 | d[0]=true; | ^ Non zero exit status: 1

Ceva nu functioneaza?