/in/foo.cc: In function 'void in()':
/in/foo.cc:7:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d",&n);
^
/in/foo.cc:9:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d",&val[i]);
^
/in/foo.cc: In function 'void print(int, int)':
/in/foo.cc:28:44: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
if (root[l][r]) printf("%I64d ",root[l][r]);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n",dp[1][n]);
^