/in/foo.cc:22:11: error: expected unqualified-id before 'else'
22 | } else {
| ^~~~
/in/foo.cc:35:9: error: expected unqualified-id before 'return'
35 | return os;
| ^~~~~~
/in/foo.cc:36:6: error: expected ';' after class definition
36 | }
| ^
| ;
/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const Complex&)':
/in/foo.cc:22:9: warning: no return statement in function returning non-void [-Wreturn-type]
22 | } else {
| ^
/in/foo.cc: At global scope:
/in/foo.cc:37:25: error: non-member function 'double getModulus()' cannot have cv-qualifier
37 | double getModulus() const {
| ^~~~~
/in/foo.cc: In function 'double getModulus()':
/in/foo.cc:38:23: error: missing template arguments before '(' token
38 | return modulus();
| ^
/in/foo.cc: At global scope:
/in/foo.cc:40:1: error: expected declaration before '}' token
40 | };
| ^
/in/foo.cc: In member function 'void ComplexArray::bubbleSort()':
/in/foo.cc:60:28: error: 'class Complex' has no member named 'getModulus'; did you mean 'modulus'?
60 | if (arr[j].getModulus() > arr[j + 1].getModulus()) {
| ^~~~~~~~~~
| modulus
/in/foo.cc:60:54: error: 'class Complex' has no member named 'getModulus'; did you mean 'modulus'?
60 | if (arr[j].getModulus() > arr[j + 1].getModulus()) {
| ^~~~~~~~~~
| modulus