Wrong Answer
/in/foo.cc: In function 'int main()':
/in/foo.cc:15:36: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'bool*' [-Wformat=]
scanf("%d%s",&sgje.a[i],sgje.b[i]);
^
/in/foo.cc:21:36: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'bool*' [-Wformat=]
scanf("%d%d",&distance,&amount);
^