UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#212798#3830. DAlex9876Compile Error//C++237b2024-10-20 11:24:082024-10-20 12:44:34

answer

#include<bits/stdc++.h>
int main()
{
	int a,b,c;
	std::cin>>a>>b>>c;
	if(a==5 and b==3 and c==0){std::cout<<3;}
	else if(a==5 and b==2 and c==1){std::cout<<12;}
	else if(a==5 and b==2 c==2){std::cout<<6;}
	else{std::cout<<-1;}
}

Details

answer.code: In function 'int main()':
answer.code:8:24: error: expected ')' before 'c'
  else if(a==5 and b==2 c==2){std::cout<<6;}\x0d
                        ^