Language
C++
Compiler
clang 7.0.0
Options
Warnings
Optimization
Don't Use Boost
C++17
-pedantic
$ clang++ prog.cc -Wall -Wextra -O2 -march=native -std=c++17 -pedantic
Signal:
Floating point exception
Author
anonymous
about 6 years ago
C++
clang 7.0.0
Author
anonymous
about 6 years ago
$ clang++ prog.cc -Wall -Wextra -O2 -march=native -std=c++17 -pedantic
prog.cc:34:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
prog.cc:49:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
prog.cc:61:13: warning: address of function 'palindrom' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (palindrom || divisible) {
^~~~~~~~~ ~~
prog.cc:61:13: note: prefix with the address-of operator to silence this warning
if (palindrom || divisible) {
^
&
prog.cc:61:26: warning: address of function 'divisible' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (palindrom || divisible) {
~~ ^~~~~~~~~
prog.cc:61:26: note: prefix with the address-of operator to silence this warning
if (palindrom || divisible) {
^
&
4 warnings generated.