Language
C++
Compiler
gcc 11.1.0
Options
Warnings
Optimization
Boost 1.78.0
C++14
-pedantic
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.78.0-gcc-11.1.0/include -std=c++14 -pedantic
Signal:
Segmentation fault
Author
anonymous
about 3 years ago
C++
gcc 11.1.0
Author
anonymous
about 3 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.78.0-gcc-11.1.0/include -std=c++14 -pedantic
prog.cc: In function 'int main()':
prog.cc:6:18: warning: 'arr' is used uninitialized [-Wuninitialized]
6 | cout << arr[0] << "\n" ;
| ^