Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

compile c++ clang online

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.63 sec, absolute service time: 0.76 sec 
edit mode |  history
Error(s):
source_file.cpp:17:15: error: type 'float' cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing]
    Foo f{ x, y };
              ^
source_file.cpp:17:15: note: override this message by inserting an explicit cast
    Foo f{ x, y };
              ^
              static_cast<int>( )
1 error generated.

        

    
                
λ
.NET NoSQL database for rapid development