consul.cpp: In function 'void solve(int)':
consul.cpp:26:11: error: cannot convert 'std::_Bind_helper<false, std::uniform_int_distribution<int>, std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>&>::type' {aka 'std::_Bind<std::uniform_int_distribution<int>(std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>)>'} to 'long long int' in initialization
26 | ll nr=bind(uniform_int_distribution<int> (1, n),mt_rand);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::_Bind_helper<false, std::uniform_int_distribution<int>, std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>&>::type {aka std::_Bind<std::uniform_int_distribution<int>(std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>)>}
consul.cpp:29:12: error: 'nr' cannot be used as a function
29 | pos=nr();
| ^
consul.cpp:36:9: error: return-statement with a value, in function returning 'void' [-fpermissive]
36 | return -1;
| ^