hack.cpp: In function 'int hack()':
hack.cpp:29:23: error: could not convert 'tp' from 'vector<int>' to 'vector<long long int>'
29 | if(collisions(tp) > 0) e = md - 1 , v = md ;
| ^~
| |
| vector<int>
hack.cpp:39:13: error: expected unqualified-id before ':' token
39 | for(int : arr) {
| ^
hack.cpp:40:17: error: 'i' was not declared in this scope
40 | while(v%i == 0 && collisions({1 , v/ i + 1}) > 0) v/=i;
| ^
hack.cpp:40:37: error: could not convert '{1, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<long long int>'
40 | while(v%i == 0 && collisions({1 , v/ i + 1}) > 0) v/=i;
| ~~~~~~~~~~^~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>