fork download
  1. void zamianaOdKonca(string a)
  2. {
  3. int dl_wyniku=a.length();
  4. for (int i=dl_wyniku-1; i>=0; i--)
  5. {
  6. odwrotna_str[dl_wyniku-i-1]=a[i];
  7. }
  8. cout<<"odwrotna [0]:"<<odwrotna_str[0]<<" [1] "<<odwrotna_str[1]<<" odwrotna: "<<odwrotna_str<<endl;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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
stdout
Standard output is empty