/in/foo.cc: In function 'int main()':
/in/foo.cc:5:36: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
int n,nn,x,cnt=0;scanf("%d,%d",n,x);
^
/in/foo.cc:5:36: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
/in/foo.cc:9:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(nn=x)
^
/in/foo.cc:5:37: warning: 'n' is used uninitialized in this function [-Wuninitialized]
int n,nn,x,cnt=0;scanf("%d,%d",n,x);
^
/in/foo.cc:5:37: warning: 'x' is used uninitialized in this function [-Wuninitialized]