Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang 7.0.0

Options
Warnings
Boost 1.69.0
C++14
-pedantic-errors

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/clang-7.0.0/include -std=c++14 -pedantic-errors
prog.cc:16:25: warning: variable 'f' is uninitialized when used here [-Wuninitialized]
    std::printf("%f\n", f);
                        ^
prog.cc:12:12: note: initialize the variable 'f' to silence this warning
    float f;
           ^
            = 0.0
1 warning generated.
0.000000, 0.000000, 0.000000
0.000000
Exit Code:
0