/in/foo.c:3:1: error: unknown type name 'class'
class Complex
^~~~~
/in/foo.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
/in/foo.c:23:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
void Complex::Output()
^
/in/foo.c: In function 'main':
/in/foo.c:42:2: error: unknown type name 'Complex'
Complex c1(r,i);
^~~~~~~
/in/foo.c:42:2: warning: parameter names (without types) in function declaration
/in/foo.c:44:2: error: unknown type name 'Complex'
Complex c2(r,i);
^~~~~~~
/in/foo.c:44:2: warning: parameter names (without types) in function declaration
/in/foo.c:46:2: error: unknown type name 'Complex'
Complex c3(r,i);
^~~~~~~
/in/foo.c:46:2: warning: parameter names (without types) in function declaration
/in/foo.c:49:6: error: request for member 'Output' in something not a structure or union
c1.Output(),c2.Output(),c3.Output();
^
/in/foo.c:49:18: error: request for member 'Output' in something not a structure or union
c1.Output(),c2.Output(),c3.Output();
^
/in/foo.c:49:15: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c1.Output(),c2.Output(),c3.Output();
^
/in/foo.c:49:30: error: request for member 'Output' in something not a structure or union
c1.Output(),c2.Output(),c3.Output();
^
/in/foo.c:49:27: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c1.Output(),c2.Output(),c3.Output();
^
/in/foo.c:52:7: error: request for member 'Output' in something not a structure or union
c1.Output(),c3.Output(),c2.Output();
^
/in/foo.c:52:19: error: request for member 'Output' in something not a structure or union
c1.Output(),c3.Output(),c2.Output();
^
/in/foo.c:52:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c1.Output(),c3.Output(),c2.Output();
^
/in/foo.c:52:31: error: request for member 'Output' in something not a structure or union
c1.Output(),c3.Output(),c2.Output();
^
/in/foo.c:52:28: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c1.Output(),c3.Output(),c2.Output();
^
/in/foo.c:54:7: error: request for member 'Output' in something not a structure or union
c3.Output(),c1.Output(),c2.Output();
^
/in/foo.c:54:19: error: request for member 'Output' in something not a structure or union
c3.Output(),c1.Output(),c2.Output();
^
/in/foo.c:54:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c3.Output(),c1.Output(),c2.Output();
^
/in/foo.c:54:31: error: request for member 'Output' in something not a structure or union
c3.Output(),c1.Output(),c2.Output();
^
/in/foo.c:54:28: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c3.Output(),c1.Output(),c2.Output();
^
/in/foo.c:57:6: error: request for member 'Output' in something not a structure or union
c3.Output(),c2.Output(),c1.Output();
^
/in/foo.c:57:18: error: request for member 'Output' in something not a structure or union
c3.Output(),c2.Output(),c1.Output();
^
/in/foo.c:57:15: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c3.Output(),c2.Output(),c1.Output();
^
/in/foo.c:57:30: error: request for member 'Output' in something not a structure or union
c3.Output(),c2.Output(),c1.Output();
^
/in/foo.c:57:27: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c3.Output(),c2.Output(),c1.Output();
^
/in/foo.c:60:7: error: request for member 'Output' in something not a structure or union
c2.Output(),c1.Output(),c3.Output();
^
/in/foo.c:60:19: error: request for member 'Output' in something not a structure or union
c2.Output(),c1.Output(),c3.Output();
^
/in/foo.c:60:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c2.Output(),c1.Output(),c3.Output();
^
/in/foo.c:60:31: error: request for member 'Output' in something not a structure or union
c2.Output(),c1.Output(),c3.Output();
^
/in/foo.c:60:28: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c2.Output(),c1.Output(),c3.Output();
^
/in/foo.c:62:7: error: request for member 'Output' in something not a structure or union
c2.Output(),c3.Output(),c1.Output();
^
/in/foo.c:62:19: error: request for member 'Output' in something not a structure or union
c2.Output(),c3.Output(),c1.Output();
^
/in/foo.c:62:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c2.Output(),c3.Output(),c1.Output();
^
/in/foo.c:62:31: error: request for member 'Output' in something not a structure or union
c2.Output(),c3.Output(),c1.Output();
^
/in/foo.c:62:28: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c2.Output(),c3.Output(),c1.Output();
^