Main.cc: In function ‘int main()’:
Main.cc:10:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[N]’ [-Wformat=]
scanf("\n%s",&a);
~~^
Main.cc:12:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(a[i]='?'){
~~~~^~~~
Main.cc:13:18: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
a[i]="a"
^~~
Main.cc:14:9: error: expected ‘;’ before ‘}’ token
}
^
Main.cc:7:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int N,dem=0;scanf("%d\n",&N);
~~~~~^~~~~~~~~~~
Main.cc:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n%s",&a);
~~~~~^~~~~~~~~~~