Help me why this below code shows error !!
This code belongs to use of friend function : This is the code : #include <iostream> using namespace std; class bike; class cycle; class car{ int score; public : car (int a){ score=a; } friend void max(car,bike,cycle); }; class bike{ int score; public : bike (int b){ score=b; } friend void max(bike,cycle,car); }; class cycle{ int score; public : cycle (int c){ score=c; } friend void max(cycle,bike,car); }; void max(car c,bike b,cycle cy){ if(c.score>b.score && c.score>cy.score) { cout<<"Car wins"<<endl; } } int main() { bike b(10); cycle c(5); car cr(15); return 0; } https://code.sololearn.com/cAQNO4NVo7hl/?ref=app