Problem fatty
User neoaix
Submission Time 2026-06-24 10:00:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fatty.cpp: In function ‘int main()’:
fatty.cpp:14:25: error: ‘m’ was not declared in this scope
14 | for (int i = 0; i < m; i++) {
| ^
fatty.cpp:20:9: error: ‘min_cost’ was not declared in this scope; did you mean ‘min_costs’?
20 | min_cost[type] = min(min_cost[type];)
| ^~~~~~~~
| min_costs
fatty.cpp:20:45: error: expected primary-expression before ‘)’ token
20 | min_cost[type] = min(min_cost[type];)
| ^
fatty.cpp:24:27: error: ‘min_cost’ was not declared in this scope; did you mean ‘min_costs’?
24 | total_min_cost += min_cost;
| ^~~~~~~~
| min_costs
fatty.cpp:26:27: error: no match for ‘operator<’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘const char [2]’)