foo.cc: In function 'int main()':
foo.cc:7:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d",a[i]);
^
foo.cc:12:17: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]
if(maxhigh>a[i]){
~~~^
foo.cc:10:15: note: within this loop
for(int i=0;i<=10;i++){
~^~~~
foo.cc:7:8: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]
scanf("%d",a[i]);
~~~~~^~~~~~~~~~~
foo.cc:6:15: note: within this loop
for(int i=0;i<=10;i++){
~^~~~
foo.cc:13:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans++;
^
自豪的采用jd5进行评测(github.com/masnn/jd5)
{"receive":"2020-02-25T14:47:49.696Z","handle":"2020-02-25T14:47:49.696Z","cache_start":"2020-02-25T14:47:49.696Z","read_cases":"2020-02-25T14:47:50.192Z","judge":"2020-02-25T14:47:50.195Z","done":"2020-02-25T14:47:53.129Z"}