Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C

Compiler

clang 9.0.0

Options
Warnings
C11(GNU)
no pedantic
Raw compiler options
-Werror

Author

anonymous

about 6 years ago

$ clang prog.c -Wall -Wextra -std=gnu11 -Werror
prog.c:9:16: error: format specifies type 'int *' but the argument has type 'unsigned char *' [-Werror,-Wformat]
    scanf("%d",&x);
           ~~  ^~
           %s
prog.c:11:16: error: format specifies type 'int *' but the argument has type 'unsigned char *' [-Werror,-Wformat]
    scanf("%d",&y);
           ~~  ^~
           %s
2 errors generated.
Exit Code:
1