Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Compiler

Options

Author

anonymous

over 8 years ago

$
prog.c:2:1: warning: return type defaults to 'int' [enabled by default]
 b(n,c){n&&b(n-1,32)^printf("%d%c",n,c);}r(n){n&&r(n-1)^b(n,10);}
 ^
prog.c: In function 'b':
prog.c:2:1: warning: type of 'n' defaults to 'int' [enabled by default]
prog.c:2:1: warning: type of 'c' defaults to 'int' [enabled by default]
prog.c:2:9: warning: value computed is not used [-Wunused-value]
 b(n,c){n&&b(n-1,32)^printf("%d%c",n,c);}r(n){n&&r(n-1)^b(n,10);}
         ^
prog.c: At top level:
prog.c:2:41: warning: return type defaults to 'int' [enabled by default]
 b(n,c){n&&b(n-1,32)^printf("%d%c",n,c);}r(n){n&&r(n-1)^b(n,10);}
                                         ^
prog.c: In function 'r':
prog.c:2:41: warning: type of 'n' defaults to 'int' [enabled by default]
prog.c:2:47: warning: value computed is not used [-Wunused-value]
 b(n,c){n&&b(n-1,32)^printf("%d%c",n,c);}r(n){n&&r(n-1)^b(n,10);}
                                               ^
prog.c: At top level:
prog.c:4:1: warning: return type defaults to 'int' [enabled by default]
 main(i)
 ^
prog.c: In function 'main':
prog.c:4:1: warning: type of 'i' defaults to 'int' [enabled by default]
prog.c: In function 'b':
prog.c:2:1: warning: control reaches end of non-void function [-Wreturn-type]
 b(n,c){n&&b(n-1,32)^printf("%d%c",n,c);}r(n){n&&r(n-1)^b(n,10);}
 ^
prog.c: In function 'r':
prog.c:2:1: warning: control reaches end of non-void function [-Wreturn-type]
 b(n,c){n&&b(n-1,32)^printf("%d%c",n,c);}r(n){n&&r(n-1)^b(n,10);}
 ^
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
1 2 3 4 5 6 7
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 10
Exit Code:
0