foo.cc: In member function 'bool data::scan()':
foo.cc:12:11: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[45]' [-Wformat=]
12 | scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
| ~^ ~~~~~
| | |
| char* char (*)[45]
foo.cc:12:15: warning: format '%c' expects argument of type 'char*', but argument 5 has type 'int*' [-Wformat=]
12 | scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
| ~^ ~~~~
| | |
| char* int*
| %d
foo.cc:12:17: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'char (*)[45]' [-Wformat=]
12 | scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
| ~^ ~~~~~~
| | |
| int* char (*)[45]
foo.cc:12:19: warning: format '%a' expects argument of type 'float*', but argument 7 has type 'char (*)[45]' [-Wformat=]
12 | scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
| ~^ ~~~~~~~~
| | |
| float* char (*)[45]
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务