Problem motest3
User AlphanumericUsername
Submission Time 2024-03-27 08:45:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

motest3.cpp: In function ‘int32_t main()’:
motest3.cpp:155:20: error: wrong number of template arguments (1, should be at least 2)
155 | gp_hash_table<int> s;
| ^
In file included from motest3.cpp:85:
/usr/include/c++/9/ext/pb_ds/assoc_container.hpp:368:9: note: provided for ‘template<class Key, class Mapped, class Hash_Fn, class Eq_Fn, class Comb_Probe_Fn, class Probe_Fn, class Resize_Policy, bool Store_Hash, class _Alloc> class __gnu_pbds::gp_hash_table’
368 | class gp_hash_table : public PB_DS_GP_HASH_BASE
| ^~~~~~~~~~~~~
motest3.cpp:158:6: error: request for member ‘insert’ in ‘s’, which is of non-class type ‘int’
158 | s.insert(r);
| ^~~~~~
motest3.cpp:161:8: error: request for member ‘size’ in ‘s’, which is of non-class type ‘int’
161 | if(s.size()==b-1 || a==b){
| ^~~~