foo.cc: In function 'int main()':
foo.cc:41:30: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=]
41 | sscanf(s,"%lld\n",&a[i]);
| ~~~^ ~~~~~
| | |
| | int*
| long long int*
| %d
foo.cc:31:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
31 | scanf("%s",s);
| ~~~~~^~~~~~~~
foo.cc:43:7: warning: array subscript 5 is outside array bounds of 'int [4]' [-Warray-bounds]
43 | sort(a+1,a+5); //保证遍历所有情况
| ~~~~^~~~~~~~~
foo.cc:26:5: note: while referencing 'a'
26 | int a[4];
| ^
foo.cc:43:7: warning: array subscript 5 is outside array bounds of 'int [4]' [-Warray-bounds]
43 | sort(a+1,a+5); //保证遍历所有情况
| ~~~~^~~~~~~~~
foo.cc:26:5: note: while referencing 'a'
26 | int a[4];
| ^
foo.cc:49:16: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
49 | if (F(F(F(a[1],i,a[2]),j,a[3]),k,a[4])==24) //((a?b)?c)?d
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:26:5: note: while referencing 'a'
26 | int a[4];
| ^
[Hydro](https://hydro.ac)提供评测服务