prog.cpp: In function ‘int main()’:
prog.cpp:10:9: error: ‘no’ was not declared in this scope
int ma=no=0;
^~
prog.cpp:10:9: note: suggested alternative: ‘n’
int ma=no=0;
^~
n
prog.cpp:13:9: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘std::__cxx11::string’ {aka ‘std::__cxx11::basic_string<char>’} [-Wformat=]
scanf("%s %s",m,n);
^~~~~~~
prog.cpp:13:9: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘std::__cxx11::string’ {aka ‘std::__cxx11::basic_string<char>’} [-Wformat=]
prog.cpp:16:14: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
if(ma==0)m++;
~^~
prog.cpp:22:14: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
if(no==0)n++;
~^~
prog.cpp:11:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&d);
~~~~~^~~~~~~~~
prog.cpp:13:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %s",m,n);
~~~~~^~~~~~~~~~~~~