פשוט רושמים אחרת בשפה
והפונקציה MAIN היא זאת שמריצה את הקוד - חייבים להגדיר אותה... פתחת סוגריים אבל לא אליה
#include <iostream>
using namespace std;const int ROCK= 1;
const int SCISSORS= 2;
const int PAPER= 3;
int a,b;
int main()
{
cout <<"enter rock=1, scissors=2, paper=3/n";
cin>>a;
cout <<"enter rock=1, scissors=2, paper=3/n";
cin>>b;
if (a>>b)
{
cout <<"player 1 is the winner/n";
}
else if (a==b)
{
cout <<"Its a draw/n";
}
else if (b>>a)
{
cout <<"player 2 is the winner/n";
}
return 0;
}