Problem fatty
User calvinkulit
Submission Time 2026-06-24 11:14:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fatty.cpp: In function ‘int main()’:
fatty.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<vector<int>>food(N+1, vector<int>(2));
| ^~~~~~
fatty.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
fatty.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
fatty.cpp:7:16: note: in expansion of macro ‘int’
7 | vector<vector<int>>food(N+1, vector<int>(2));
| ^~~
fatty.cpp:11:3: error: ‘food’ was not declared in this scope
11 | food[i][0] = cost;
| ^~~~
fatty.cpp:16:3: error: ‘food’ was not declared in this scope
16 | food[i][1] = type;
| ^~~~
fatty.cpp:18:7: error: ‘food’ was not declared in this sco