fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6. cout << "> ";
  7. cin >> dna;
  8. string dna;
  9. cout "< ";
  10. if (a == 'A') cout << 'U';
  11. else if (a == 'C') cout << 'G';
  12. else if (a == 'G') cout << 'C';
  13. else if (a == 'T') cout << 'A';
  14. cout << " " << endl;
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:7:8: error: 'dna' was not declared in this scope
 cin >> dna;
        ^
prog.cpp:9:6: error: expected ';' before string constant
 cout "< ";
      ^
prog.cpp:10:10: error: 'a' was not declared in this scope
      if (a == 'A') cout << 'U';
          ^
stdout
Standard output is empty