foo.cc: In function 'int main()':
foo.cc:9:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
9 | scanf("%d", &n);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
foo.cc:10:45: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
10 | for(int i = 1; i <= n; i++) scanf("%d", &p[i]);
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
foo.cc:23:54: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
23 | for(int j = 1; j <= n; j++) printf("%d ", ans[i][j]);
| ~^ ~~~~~~~~~
| | |
| int long long int
| %lld
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务