foo.cc: In function 'int main()':
foo.cc:6:18: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
6 | for(int i=1;i<=n;i++)
| ~^~~
foo.cc:15:29: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
15 | if(a==x||(a>x&&a>0)){
| ~^~~
foo.cc:15:36: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
15 | if(a==x||(a>x&&a>0)){
| ~^~
foo.cc:5:20: warning: unused variable 'cnt' [-Wunused-variable]
5 | unsigned int a,cnt=0,n;cin>>n;
| ^~~
[Hydro](https://hydro.ac)提供评测服务