+ 1

help me to find error

#include <iostream> #include<conio.h> using namespace std; int main(int) { int vote,max,v1,v2,v3,v4,v5; cout ("enter any no. :"); cin<<v1<<v2<<v3<<v4<<v5; vote=v1+v2+v3+v4+v5; max=500; if (vote => max) { cout << "Yes"; } return 0; getch(); }

14th Dec 2018, 7:02 PM
Aryan Verma
Aryan Verma - avatar
2 Antworten
+ 3
There are errors in lines 5,8,9,12 and 20. https://code.sololearn.com/chw6QQAjU4sb/?ref=app P.S. Always try to insert code.
14th Dec 2018, 7:15 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
0
#include <iostream> //#include<conio.h> see here using namespace std; int main(int) { int vote,max,v1,v2,v3,v4,v5; cout<<"enter any no. :";//see here cin>>v1>>v2>>v3>>v4>>v5;//see here vote=v1+v2+v3+v4+v5; max=500; if (vote >= max) {//see here cout << "Yes"; } return 0; //getch(); see here }
14th Dec 2018, 7:24 PM
Rishi Anand
Rishi Anand - avatar