/in/foo.cc: In function 'void resolve(int)':
/in/foo.cc:15:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(a%i==0)
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:30:19: warning: iteration 1000009 invokes undefined behavior [-Waggressive-loop-optimizations]
rep(i,1,L) pre[i]=pre[i-1]*base;
~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:2:35: note: within this loop
#define rep(i,l,r) for(int i=(l);i<=(r);i++)
^
/in/foo.cc:30:2: note: in expansion of macro 'rep'
rep(i,1,L) pre[i]=pre[i-1]*base;
^~~