Problem foreveralone
User Hytoh
Submission Time 2023-05-17 17:39:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foreveralone.cpp: In function ‘int main()’:
foreveralone.cpp:8:36: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
8 | vector<abs unsigned long long int> friends(numofcats, 0);
| ^
foreveralone.cpp:8:36: note: expected a type, got ‘std::abs’
foreveralone.cpp:8:36: error: template argument 2 is invalid
foreveralone.cpp:8:58: error: expression list treated as compound expression in initializer [-fpermissive]
8 | vector<abs unsigned long long int> friends(numofcats, 0);
| ^
foreveralone.cpp:13:19: error: invalid types ‘int[long long int]’ for array subscript
13 | friends[cat1]++;
| ^
foreveralone.cpp:14:19: error: invalid types ‘int[long long int]’ for array subscript
14 | friends[cat2]++;