fork download
  1. #include <iostream>
  2.  
  3. struct Pod {
  4. int x;
  5. };
  6.  
  7. int main() {
  8. Pod foo{};
  9. Pod bar{};
  10.  
  11. std::cout << (foo == bar) << std::endl;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:11:20: error: no match for 'operator==' (operand types are 'Pod' and 'Pod')
  std::cout << (foo == bar) << std::endl;
                    ^
stdout
Standard output is empty