Main.cc: In function 'int main()': Main.cc:11:14: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(a[i]=="\0"){ ^ Main.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cc:16:14: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(b[i]=="\0"){ ^ Main.cc:16:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]