void zamianaOdKonca(string a){ int dl_wyniku=a.length(); for (int i=dl_wyniku-1; i>=0; i--) { odwrotna_str[dl_wyniku-i-1]=a[i]; } cout<<"odwrotna [0]:"<<odwrotna_str[0]<<" [1] "<<odwrotna_str[1]<<" odwrotna: "<<odwrotna_str<<endl;}
Standard input is empty
prog.cpp:1:21: error: variable or field ‘zamianaOdKonca’ declared void void zamianaOdKonca(string a) ^~~~~~ prog.cpp:1:21: error: ‘string’ was not declared in this scope
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!