foo.c:1:3: error: stray '#' in program
1 | e #include <iostream>
| ^
foo.c:1:1: error: unknown type name 'e'
1 | e #include <iostream>
| ^
foo.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | e #include <iostream>
| ^
foo.c: In function 'main':
foo.c:6:5: error: 'cin' undeclared (first use in this function)
6 | cin>>a;
| ^~~
foo.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:10: error: expected ';' before 'if'
7 | num=0
| ^
| ;
8 | if(a>b)
| ~~
foo.c:22:5: error: 'else' without a previous 'if'
22 | else:
| ^~~~
foo.c:22:9: error: expected expression before ':' token
22 | else:
| ^
foo.c:5:13: warning: variable 'num' set but not used [-Wunused-but-set-variable]
5 | int a,b,num;
| ^~~
foo.c:5:11: warning: unused variable 'b' [-Wunused-variable]
5 | int a,b,num;
| ^