Main.cc: In function ‘int main()’:
Main.cc:18:18: error: expected ‘;’ before ‘)’ token
for(j>=0){
^
Main.cc:18:15: warning: statement has no effect [-Wunused-value]
for(j>=0){
~^~~
Main.cc:28:6: error: expected primary-expression before ‘return’
return 0;
^~~~~~
Main.cc:28:6: error: expected ‘;’ before ‘return’
Main.cc:28:6: error: expected primary-expression before ‘return’
Main.cc:28:6: error: expected ‘)’ before ‘return’
Main.cc:29:2: error: expected ‘}’ at end of input
}
^