Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

2 days ago

Language

C++

Compiler

gcc 13.2.0

Options
Warnings
Don't Use Boost
Compiler Default
no pedantic

Author

anonymous

2 days ago

$ g++ prog.cc -Wall -Wextra
prog.cc: In function 'int main()':
prog.cc:7:49: error: narrowing conversion of '5.0e+0' from 'double' to 'int' [-Wnarrowing]
    7 |     std::vector<int> container2 {1, 2, 3, 4, 5.0};
      |                                                 ^
Exit Code:
1