fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. if(GetKeyState('A')
  7. {
  8. cout << "Poznaj samego siebie, a stanie przed tobą otworem cały świat" \n;
  9. cout << "Sokrates z Aten"\n \n;
  10. cout << "Miły, uśmiechnięty, inteligentny, a przede wszystkim skromny";
  11. return 0;
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:8:76: error: stray ‘\’ in program
  cout << "Poznaj samego siebie, a stanie przed tobą otworem cały świat" \n;
                                                                            ^
prog.cpp:9:27: error: stray ‘\’ in program
  cout << "Sokrates z Aten"\n \n;
                           ^
prog.cpp:9:30: error: stray ‘\’ in program
  cout << "Sokrates z Aten"\n \n;
                              ^
prog.cpp: In function ‘int main()’:
prog.cpp:6:5: error: ‘GetKeyState’ was not declared in this scope
  if(GetKeyState('A')
     ^~~~~~~~~~~
prog.cpp:6:5: note: suggested alternative: ‘setstate’
  if(GetKeyState('A')
     ^~~~~~~~~~~
     setstate
prog.cpp:6:21: error: expected ‘)’ before ‘{’ token
  if(GetKeyState('A')
    ~                ^
                     )
  {
  ~                   
prog.cpp:13:1: error: expected primary-expression before ‘}’ token
 }
 ^
stdout
Standard output is empty