Main.cc:24:31: error: expected ‘;’ at end of member declaration bool operator < (const List&c) > const ^ Main.cc:24:33: error: expected unqualified-id before ‘>’ token bool operator < (const List&c) > const ^ Main.cc: In function ‘int main()’: Main.cc:62:2: error: expected ‘;’ before ‘}’ token } ^ Main.cc:61:9: warning: statement has no effect [-Wunused-value] ls[idx] ~~~~~~^