so I just started programming and I don't know why my code doesn't work, the error says that it has an error but I don't get it. I tried to look it up on here and Youtube but I can't seem to an answer. Here's the code :
#include <iostream>
using namespace std;
int main ()
{
int num1, num2 ,num3 , num4, num5;
//Assigning numbers
cout << "Give me 5 positive numbers, and then I'll add them up."<<endl;
cout << "Input first number: ";
cin >> num1;
cout << "Input second number: ";
cin >> num2;
cout << "Input third number: ";
cin >> num3;
cout << "Input fourth number: ";
cin >> num4;
cout << "Input fifth number: ";
cin >> num5;
int result;
//Adding the numbers
if ((num1, num2, num3, num4, num5 = - )){
cout << "Error";
}else{
result = num1 + num2 + num3 + num4 + num5;
cout << "The sum of the five numbers are " << result << ".";
}
return 0;
}