Problem change
User lulu1008
Submission Time 2024-06-20 10:36:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

change.cpp: In function ‘int main()’:
change.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin >> coin_5 >> coin_10 >> coin_20 >> coin_50 >> amount;
| ^~~
change.cpp:8:18: error: ‘floor’ was not declared in this scope
8 | int num_50 = floor(amount / 50);
| ^~~~~
change.cpp:24:9: error: ‘cout’ was not declared in this scope
24 | cout << "-1";
| ^~~~
change.cpp:27:9: error: ‘cout’ was not declared in this scope
27 | cout << num_5 << " " << num_10 << " " << num_20 << " " << num_50 << " " << total_coins << endl;
| ^~~~
change.cpp:27:99: error: ‘endl’ was not declared in this scope
27 | cout << num_5 << " " << num_10 << " " << num_20 << " " << num_50 << " " << total_coins << endl;