Language: C++

#include"stdio.h"
 
int main(void)
{
	int x;
  	[x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      getchar(%s ,x);
      if (x = 1)  
      printf('0');
      if (x = 0)  
      printf('1');
      
        return 0;
      }


Compiler output:
a.cc: In lambda function:
a.cc:6:13: error: expected '{' before '=' token
    6 |         [x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      |             ^
a.cc: In function 'int main()':
a.cc:6:15: error: no match for 'operator=' (operand types are 'main()::<lambda()>' and 'int')
    6 |         [x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      |               ^
a.cc:6:11: note: candidate: 'main()::<lambda()>& main()::<lambda()>::operator=(const main()::<lambda()>&)' (deleted)
    6 |         [x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      |           ^
a.cc:6:11: note:   no known conversion for argument 1 from 'int' to 'const main()::<lambda()>&'
a.cc: In lambda function:
a.cc:6:23: error: expected '{' before '>' token
    6 |         [x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      |                       ^
a.cc: In function 'int main()':
a.cc:6:23: error: no match for 'operator>' (operand types are 'main()::<lambda()>' and 'int')
    6 |         [x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      |                   ~~~ ^ ~
      |                   |     |
      |                   |     int
      |                   main()::<lambda()>
a.cc:6:35: error: expected identifier before numeric constant
    6 |         [x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      |                                   ^
a.cc:6:35: error: expected '>' before numeric constant
a.cc: In lambda function:
a.cc:6:37: error: expected '{' before ';' token
    6 |         [x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      |                                     ^
a.cc: In lambda function:
a.cc:6:43: error: expected '{' before '=' token
    6 |         [x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      |                                           ^
a.cc: In function 'int main()':
a.cc:6:45: error: no match for 'operator=' (operand types are 'main()::<lambda()>' and 'int')
    6 |         [x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      |                                             ^
a.cc:6:41: note: candidate: 'main()::<lambda()>& main()::<lambda()>::operator=(const main()::<lambda()>&)' (deleted)
    6 |         [x] = 0 ; [x] > 0 ; [x] < 1 ; [x] = 1;
      |                                         ^
a.cc:6:41: note:   no known conversion for argument 1 from 'int' to 'const main()::<lambda()>&'
a.cc:7:15: error: expected primary-expression before '%' token
    7 |       getchar(%s ,x);
      |               ^
a.cc:7:16: error: 's' was not declared in this scope
    7 |       getchar(%s ,x);
      |                ^
a.cc:9:14: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    9 |       printf('0');
      |              ^~~
      |              |
      |              char
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:11:14: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |       printf('1');
      |              ^~~
      |              |
      |              char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~