Language
C
Compiler
gcc 8.2.0
Options
Warnings
Optimization
C11(GNU)
-pedantic
$ gcc prog.c -Wall -Wextra -O2 -march=native -std=gnu11 -pedantic
0
Exit Code:
0
Author
anonymous
over 6 years ago
C
gcc 8.2.0
Author
anonymous
over 6 years ago
$ gcc prog.c -Wall -Wextra -O2 -march=native -std=gnu11 -pedantic
prog.c: In function 'main':
prog.c:4:21: warning: implicit declaration of function 'strtol' [-Wimplicit-function-declaration]
printf("%ld\n", strtol("99999999999999999999999"));
^~~~~~
prog.c:4:15: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
printf("%ld\n", strtol("99999999999999999999999"));
~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%d
0