fork(1) download
  1. struct Yoba{};
  2.  
  3. int main() {
  4. auto f = int(-2) / unsigned(2);
  5. Yoba a = f;
  6.  
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:7: error: no viable conversion from 'unsigned int' to 'Yoba'
        Yoba a = f;
             ^   ~
prog.cpp:1:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'unsigned int' to 'const Yoba &' for 1st argument
struct Yoba{};
       ^
prog.cpp:1:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'unsigned int' to 'Yoba &&' for 1st argument
struct Yoba{};
       ^
1 error generated.
stdout
Standard output is empty