fork download
  1. struct A {
  2. operator int();
  3. operator char() const;
  4. } a;
  5. void foo(double);
  6. int main() {
  7. foo(a);
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/8iETfB/ccSboO0D.o: In function `main':
prog.cpp:(.text+0x11): undefined reference to `A::operator int()'
prog.cpp:(.text+0x21): undefined reference to `foo(double)'
collect2: ld returned 1 exit status
stdout

Standard output is empty