Problem fatty
User Zubair
Submission Time 2026-06-24 11:15:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fatty.cpp:2:5: error: ‘ios_base’ does not name a type
2 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
fatty.cpp:3:5: error: ‘cin’ does not name a type
3 | cin.tie(0);
| ^~~
fatty.cpp:5:5: error: ‘cin’ does not name a type
5 | cin >> n >> x;
| ^~~
fatty.cpp:6:5: error: ‘vector’ does not name a type
6 | vector<long long> cost(n);
| ^~~~~~
fatty.cpp:7:5: error: expected unqualified-id before ‘for’
7 | for (int i = 0; i < n; ++i) {
| ^~~
fatty.cpp:7:21: error: ‘i’ does not name a type
7 | for (int i = 0; i < n; ++i) {
| ^
fatty.cpp:7:28: error: expected unqualified-id before ‘++’ token
7 | for (int i = 0; i < n; ++i) {
| ^~
fatty.cpp:10:5: error: ‘vector’ does not name a type
10 | vector<long long> min_cost(x + 1, 1e18);