/in/foo.cc: In function 'int main()':
/in/foo.cc:8:7: error: 'i' was not declared in this scope
for (i=1;i<=t;i++) s[i]=false;
^
/in/foo.cc:9:7: error: 'i' was not declared in this scope
for (i=1;i<=n;i++){
^
/in/foo.cc:10:14: error: expected primary-expression before '%' token
scanf("%d",%x);
^
/in/foo.cc:10:15: error: 'x' was not declared in this scope
scanf("%d",%x);
^
/in/foo.cc:14:25: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'long long int*' [-Wformat=]
printf("%lld\n",&ans);
^