Main.cc: In function 'int main()':
Main.cc:20:20: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=cnt-1;i>=0,i--){
^
Main.cc:20:27: error: expected ';' before ')' token
for(int i=cnt-1;i>=0,i--){
^