Problem fatty
User Pranav12
Submission Time 2026-06-24 10:47:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fatty.cpp: In function ‘int main()’:
fatty.cpp:7:1: error: ‘cin’ was not declared in this scope
7 | cin >> n >> x;
| ^~~
fatty.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
fatty.cpp:8:1: error: ‘vector’ was not declared in this scope
8 | vector<int> C(n); // Cost of the food
| ^~~~~~
fatty.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
fatty.cpp:2:13: error: expected primary-expression before ‘long’
2 | #define int long long
| ^~~~
fatty.cpp:8:8: note: in expansion of macro ‘int’
8 | vector<int> C(n); // Cost of the food
| ^~~
fatty.cpp:2:13: error: expected primary-expression before ‘long’