Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

clang 7.0.0

Options
Warnings
Optimization
Don't Use Boost
C++17
-pedantic

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.
Signal:
Floating point exception