Problem smallprimes_ex
User shoryu386
Submission Time 2024-01-02 00:39:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smallprimes_ex.cpp: In function ‘long long int query(long long int)’:
smallprimes_ex.cpp:45:43: error: invalid operands of types ‘void*’ and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} to binary ‘operator*’
45 | if ( (fv*set2[m])/set2[m] == fv) && fv * set2[m] <= (INT)lol)
smallprimes_ex.cpp:49:4: error: ‘else’ without a previous ‘if’
49 | else r = m-1;
| ^~~~
smallprimes_ex.cpp:49:13: error: ‘m’ was not declared in this scope
49 | else r = m-1;
| ^
smallprimes_ex.cpp:52:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
52 | ret += ans+1;
| ^~~
| abs
smallprimes_ex.cpp:45:40: error: label ‘fv’ used but not defined
45 | if ( (fv*set2[m])/set2[m] == fv) && fv * set2[m] <= (INT)lol)
| ^~
smallprimes_ex.cpp: At glo