#include <iostream> struct A {operator int() {return 1;}operator double() {return 1.0;}}; int main() {A a;int i = a;}
Standard input is empty
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!