Problem eating
User Hytoh
Submission Time 2023-07-19 15:48:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eating.cpp: In function ‘int main()’:
eating.cpp:9:17: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Key, class _Compare, class _Alloc> class std::set’
9 | vector <set<500000>> fed(n); //set stores 1 of an element;
| ^~~~~~
eating.cpp:9:17: note: expected a type, got ‘500000’
eating.cpp:9:17: error: template argument 2 is invalid
eating.cpp:9:17: error: template argument 3 is invalid
eating.cpp:9:23: error: template argument 1 is invalid
9 | vector <set<500000>> fed(n); //set stores 1 of an element;
| ^~
eating.cpp:9:23: error: template argument 2 is invalid
eating.cpp:13:23: error: invalid types ‘int[long long unsigned int]’ for array subscript
13 | if (fed[person].count(brand) > 0) { //if more that 1 brand for 1 person , cout << "NO"
| ^
eating.cpp:16:23: e