Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang HEAD 10.0.0 (https://github.com/llvm-mirror/clang.git 65acf43270ea2894dffa0d0b292b92402f80c8cb) (https://github.com/llvm-mirror/llvm.git 2c4ca6832fa6b306ee6a7010bfb80a3f2596f824)

Options
Warnings
Boost 1.71.0
C++2a
no pedantic

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/clang-head/include -std=c++2a
prog.cc:40:13: error: redefinition of 'a1'
        int a1, b1, h1;
            ^
prog.cc:21:13: note: previous definition is here
        int a1, b1, h1;
            ^
prog.cc:40:17: error: redefinition of 'b1'
        int a1, b1, h1;
                ^
prog.cc:21:17: note: previous definition is here
        int a1, b1, h1;
                ^
prog.cc:40:21: error: redefinition of 'h1'
        int a1, b1, h1;
                    ^
prog.cc:21:21: note: previous definition is here
        int a1, b1, h1;
                    ^
prog.cc:74:15: error: redefinition of 'r1'
        float r1;
              ^
prog.cc:59:15: note: previous definition is here
        float r1;
              ^
4 errors generated.
Exit Code:
1