fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ; {
  5. float esta=14;
  6. float lot=1900;
  7. float nocleg=600;
  8. float wyzywienie=350;
  9. float koncert=75;
  10. float metro=30;
  11. float ubezpieczenie=200;
  12. float koszt=koszt;
  13. koszt=(lot+ubezpieczenie) /4.2916 + (esta+nocleg+wyzywienie+koncert+metro) /0.91;
  14.  
  15. cout << koszt;
  16. cout << koszt;
  17. return 0;
  18. }
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
 int main ; {
     ^~~~
prog.cpp:4:12: error: expected unqualified-id before ‘{’ token
 int main ; {
            ^
stdout
Standard output is empty