Author
anonymous
over 6 years ago
Language
C
Compiler
gcc 9.2.0
Options
Compiler Default
no pedantic
Raw compiler options
-ansi
Author
anonymous
over 6 years ago
$ gcc prog.c -ansiprog.c: In function 'main':
prog.c:9:17: error: lvalue required as left operand of assignment
9 | (short)val2 = val1;
| ^
prog.c:10:12: warning: missing terminating " character
10 | printf("hellow
| ^
prog.c:10:12: error: missing terminating " character
10 | printf("hellow
| ^~~~~~~
prog.c:11:6: error: 'World' undeclared (first use in this function)
11 | World!");
| ^~~~~
prog.c:11:6: note: each undeclared identifier is reported only once for each function it appears in
prog.c:11:11: error: expected ')' before '!' token
11 | World!");
| ^
| )
prog.c:11:12: warning: missing terminating " character
11 | World!");
| ^
prog.c:11:12: error: missing terminating " character
11 | World!");
| ^~~
prog.c:11:12: error: expected ';' before '}' token
11 | World!");
| ^
| ;
12 | }
| ~
Exit Code:
1