Main.cc: In function ‘int main()’:
Main.cc:11:17: warning: comparison with string literal results in unspecified behavior [-Waddress]
}elseif(a[i]==" "){
^~~
Main.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:11:4: error: ‘elseif’ was not declared in this scope
}elseif(a[i]==" "){
^~~~~~