Language
C
Compiler
gcc 11.1.0
Options
Warnings
Optimization
C89
-pedantic
$ gcc prog.c -Wall -Wextra -O2 -march=native -std=c89 -pedantic
10
5
0
Exit Code:
0
Author
anonymous
almost 4 years ago
C
gcc 11.1.0
Author
anonymous
almost 4 years ago
$ gcc prog.c -Wall -Wextra -O2 -march=native -std=c89 -pedantic
prog.c: In function 'main':
prog.c:7:5: warning: array subscript 2 is above array bounds of 'int[2]' [-Warray-bounds]
7 | printf("%d\n", array[2]);
| ^~~~~~~~~~~~~~~~~~~~~~~~
prog.c:4:9: note: while referencing 'array'
4 | int array[]={10,5}; /* 必要最小限の文字数で解答 */
| ^~~~~
10
5
0