foo.cc: In function 'void work1()':
foo.cc:12:16: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
12 | printf("F %d %d\n",x,y);
| ~^ ~
| | |
| int long long int
| %lld
foo.cc:12:19: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
12 | printf("F %d %d\n",x,y);
| ~^ ~
| | |
| int long long int
| %lld
foo.cc: In function 'void work2()':
foo.cc:18:16: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
18 | printf("Q %d %d %d %d\n",x1,y1,x2,y2);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:18:19: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
18 | printf("Q %d %d %d %d\n",x1,y1,x2,y2);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:18:22: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
18 | printf("Q %d %d %d %d\n",x1,y1,x2,y2);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:18:25: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long long int' [-Wformat=]
18 | printf("Q %d %d %d %d\n",x1,y1,x2,y2);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc: In function 'void work3()':
foo.cc:25:16: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
25 | printf("A %d %d %d %d %d\n",x1,y1,x2,y2,d);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:25:19: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
25 | printf("A %d %d %d %d %d\n",x1,y1,x2,y2,d);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:25:22: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
25 | printf("A %d %d %d %d %d\n",x1,y1,x2,y2,d);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:25:25: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long long int' [-Wformat=]
25 | printf("A %d %d %d %d %d\n",x1,y1,x2,y2,d);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:25:28: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long long int' [-Wformat=]
25 | printf("A %d %d %d %d %d\n",x1,y1,x2,y2,d);
| ~^ ~
| | |
| int long long int
| %lld
foo.cc: In function 'void work4()':
foo.cc:32:16: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
32 | printf("D %d %d %d %d %d\n",x1,y1,x2,y2,d);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:32:19: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
32 | printf("D %d %d %d %d %d\n",x1,y1,x2,y2,d);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:32:22: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
32 | printf("D %d %d %d %d %d\n",x1,y1,x2,y2,d);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:32:25: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long long int' [-Wformat=]
32 | printf("D %d %d %d %d %d\n",x1,y1,x2,y2,d);
| ~^ ~~
| | |
| int long long int
| %lld
foo.cc:32:28: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long long int' [-Wformat=]
32 | printf("D %d %d %d %d %d\n",x1,y1,x2,y2,d);
| ~^ ~
| | |
| int long long int
| %lld
foo.cc: In function 'int main()':
foo.cc:37:29: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
37 | puts("宽长:"); scanf("%d%d",&n,&m);
| ~^ ~~
| | |
| int* long long int*
| %lld
foo.cc:37:31: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
37 | puts("宽长:"); scanf("%d%d",&n,&m);
| ~^ ~~
| | |
| int* long long int*
| %lld
foo.cc:39:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
39 | puts("输入操作个数:"); scanf("%d",&T);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
foo.cc:40:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
40 | puts("输入F操作的几率:");scanf("%d",&F);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
foo.cc:41:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
41 | puts("输入Q操作的几率:");scanf("%d",&Q);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
foo.cc:42:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
42 | puts("输入A操作的几率:");scanf("%d",&A);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
foo.cc:43:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
43 | puts("输入D操作的几率:");scanf("%d",&D);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
foo.cc:44:39: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
44 | puts("输入干扰操作个数:");scanf("%d",&R);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
foo.cc:46:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
46 | printf("%d %d\n",n,m);
| ~^ ~
| | |
| int long long int
| %lld
foo.cc:46:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
46 | printf("%d %d\n",n,m);
| ~^ ~
| | |
| int long long int
| %lld
foo.cc:49:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
49 | printf("%d ",random(2*TT+1)-TT);
| ~^ ~~~~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
foo.cc:48:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
48 | for (int j=1;j<=m;j++)
| ^~~
foo.cc:50:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
50 | puts("");
| ^~~~
[Hydro](https://hydro.ac)提供评测服务