Main.cc: In function ‘int main()’:
Main.cc:9:19: warning: comparison with string literal results in unspecified behavior [-Waddress]
9 | if(a[j]=="0"){
| ^~~
Main.cc:9:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:10:19: error: invalid conversion from ‘const char*’ to ‘__gnu_cxx::__alloc_traits, char>::value_type’ {aka ‘char’} [-fpermissive]
10 | a[j]="1";
| ^~~
| |
| const char*
Main.cc:12:19: error: invalid conversion from ‘const char*’ to ‘__gnu_cxx::__alloc_traits, char>::value_type’ {aka ‘char’} [-fpermissive]
12 | a[j]="01";
| ^~~~
| |
| const char*