Language
C++
Compiler
gcc 9.2.0
Options
Warnings
Boost 1.72.0
C++17
no pedantic
Raw compiler options
-masm=intel
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-9.2.0/include -std=c++17 -masm=intel
C++: 9
Signal:
Segmentation fault
Author
anonymous
about 5 years ago
C++
gcc 9.2.0
Author
anonymous
about 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-9.2.0/include -std=c++17 -masm=intel
prog.cc: In function 'int fun2(int, int)':
prog.cc:15:14: warning: unused parameter 'a' [-Wunused-parameter]
15 | int fun2(int a, int b)
| ~~~~^
prog.cc:15:21: warning: unused parameter 'b' [-Wunused-parameter]
15 | int fun2(int a, int b)
| ~~~~^
prog.cc:26:12: warning: 'suma' is used uninitialized in this function [-Wuninitialized]
26 | return suma;
| ^~~~
C++: 9