fork download
  1. #include <iostream>
  2.  
  3. using std::cout;
  4. using std::cin;
  5. using std::endl;
  6.  
  7. int main();{
  8.  
  9. const int Size = 1024;
  10. int Gb;
  11. int Mb;
  12. int Kb;
  13. int B;
  14.  
  15. Mb = Gb * Size;
  16. Kb = Mb * SIzeK;
  17. B = Kb * Size;
  18.  
  19. cout << "Enter: " << endl
  20. cin >> Gb;
  21.  
  22. cout << "Gb: \n" << Gb << endl;
  23. cout << "Mb: \n" << Gb << endl;
  24. cout << "Kb: \n" << Gb << endl;
  25. cout << "B: \n" << Gb << endl;
  26.  
  27. return 0;
  28.  
  29.  
  30.  
  31.  
  32.  
  33. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:7:12: error: expected unqualified-id before ‘{’ token
 int main();{
            ^
stdout
Standard output is empty