Main.cpp: In function 'bool ok(ll)':
Main.cpp:21:9: error: 'cur' was not declared in this scope
21 | cur += updiv(x, b[i]);
| ^~~
Main.cpp: In function 'int main()':
Main.cpp:39:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | scn("%lld %lld", &n, &m);
| ^
Main.cpp:40:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | for(int i=0; i<n; i++) scn("%lld", &a[i]);
| ^
Main.cpp:41:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | for(int i=0; i<n; i++) scn("%lld", &b[i]);
| ^