foo.cc: In function 'int main()':
foo.cc:10:18: warning: array subscript is above array bounds [-Warray-bounds]
a[1]=n/10%10;a[2]=n%10;
~~~^
foo.cc:11:6: warning: array subscript is above array bounds [-Warray-bounds]
sort(a,a+3);
~~~~^~~~~~~
foo.cc:11:6: warning: array subscript is above array bounds [-Warray-bounds]
foo.cc:11:6: warning: array subscript is above array bounds [-Warray-bounds]
foo.cc:12:23: warning: array subscript is above array bounds [-Warray-bounds]
cout<<a[0]<<a[1]<<a[2];
^
[Hydro](https://hydro.ac)提供评测服务