Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C

Compiler

gcc 8.3.0

Options
Warnings
C99
no pedantic

Author

anonymous

about 6 years ago

$ gcc prog.c -Wall -Wextra -std=c99
prog.c:1:20: warning: return type defaults to 'int' [-Wimplicit-int]
 char     O,o[  20];L(O){
                    ^
prog.c: In function 'L':
prog.c:1:20: warning: type of 'O' defaults to 'int' [-Wimplicit-int]
prog.c:2:1: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
 putchar  ( O+  48+39  *(9<
 ^~~~~~~
prog.c: At top level:
prog.c:3:10: warning: return type defaults to 'int' [-Wimplicit-int]
 O));}    I(O)  {L(~     15);
          ^
prog.c: In function 'I':
prog.c:3:10: warning: type of 'O' defaults to 'int' [-Wimplicit-int]
prog.c:4:5: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
 O|| puts(o);}  main     (l){
     ^~~~
prog.c:4:2: warning: value computed is not used [-Wunused-value]
 O|| puts(o);}  main     (l){
  ^~
prog.c: At top level:
prog.c:4:16: warning: return type defaults to 'int' [-Wimplicit-int]
 O|| puts(o);}  main     (l){
                ^~~~
prog.c: In function 'main':
prog.c:4:16: warning: type of 'l' defaults to 'int' [-Wimplicit-int]
prog.c:5:10: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
 for(;~(l=getchar())     ;I(O
          ^~~~~~~
prog.c:5:10: note: 'getchar' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
prog.c:1:1:
+#include <stdio.h>
 char     O,o[  20];L(O){
prog.c:5:10:
 for(;~(l=getchar())     ;I(O
          ^~~~~~~
prog.c:6:13: warning: array subscript has type 'char' [-Wchar-subscripts]
 &=15     ))o[  O++      ]=4<
             ^
prog.c:9:4: warning: array subscript has type 'char' [-Wchar-subscripts]
 I(o[     O]=0  );}//157c
    ^
prog.c:8:24: warning: value computed is not used [-Wunused-value]
 (l>>     4),L  (l&15);O&&
                        ^~
prog.c: In function 'L':
prog.c:3:1: warning: control reaches end of non-void function [-Wreturn-type]
 O));}    I(O)  {L(~     15);
 ^
prog.c: In function 'I':
prog.c:4:1: warning: control reaches end of non-void function [-Wreturn-type]
 O|| puts(o);}  main     (l){
 ^
61 62 63  abc
Exit Code:
0