fork download
  1. #include <iostream>
  2. var a
  3. var b = [123, 07, 2019, 1488, 'h', 'I', "gaybar", "sos", "category", "PP"]
  4.  
  5. print("The code: ")
  6. if (a == null){
  7. print(true * 10 + false * 5 + false + false + true)
  8. if (0 == []){
  9. print("0" + 9)
  10. if (!'false' == 'true'){
  11. print(true*9 + true*5 + false*104 + true + true * 7)
  12. if (b*5 == NaN){
  13. print(('b' + 'a' + + 'a' + 'a').length)
  14. } else {
  15. print(b + 114)
  16. }
  17. } else {
  18. print((! + [] + [] + ![] + ! + ! + [] + ! + [] + ! + []).length - 2);
  19. }
  20. } else {
  21. print(a + b)
  22. }
  23. }
  24. if (1) {
  25. print(('0' + - + - - + - - + + - + - + - + - - - + - - - - - - - - + - - + + '-9'))
  26. }
  27. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:10:10: warning: character constant too long for its type
     if (!'false' == 'true'){
          ^~~~~~~
prog.cpp:10:21: warning: multi-character character constant [-Wmultichar]
     if (!'false' == 'true'){
                     ^~~~~~
prog.cpp:25:80: warning: multi-character character constant [-Wmultichar]
   print(('0' + - + - - + - - + + - + - + - + - - - + - - - - - - - - + - - + + '-9'))
                                                                                ^~~~
prog.cpp:2:1: error: ‘var’ does not name a type; did you mean ‘char’?
 var a
 ^~~
 char
prog.cpp:24:1: error: expected unqualified-id before ‘if’
 if (1) {
 ^~
prog.cpp:27:1: error: expected declaration before ‘}’ token
 }
 ^
stdout
Standard output is empty