Problem verticallychallenged_catoi
User MiloDino67
Submission Time 2026-11-15 21:06:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

verticallychallenged_catoi.cpp: In function ‘int main()’:
verticallychallenged_catoi.cpp:9:9: error: ‘ll’ was not declared in this scope
9 | vector<ll>freq(100005,0);
| ^~
verticallychallenged_catoi.cpp:9:11: error: template argument 1 is invalid
9 | vector<ll>freq(100005,0);
| ^
verticallychallenged_catoi.cpp:9:11: error: template argument 2 is invalid
verticallychallenged_catoi.cpp:9:25: error: expression list treated as compound expression in initializer [-fpermissive]
9 | vector<ll>freq(100005,0);
| ^
verticallychallenged_catoi.cpp:11:12: error: invalid types ‘int[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]’ for array subscript
11 | freq[a[i]]++;
| ^
verticallychallenged_catoi.cpp:13:28: error: request for member ‘begin’ in ‘freq’, which is of non-class type ‘int’
13 | cout <