foo.cc: In function 'void stepCal()':
foo.cc:84:23: warning: format '%d' expects argument of type 'int', but argument 2 has type 'numSer' {aka 'long long int'} [-Wformat=]
84 | printf("第二行 %d\n", g[N]);
| ~^ ~~~~
| | |
| int numSer {aka long long int}
| %lld
foo.cc: In function 'void init()':
foo.cc:23:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
foo.cc:26:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务