ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#212798 | #3830. D | Alex9876 | Compile Error | / | / | C++ | 237b | 2024-10-20 11:24:08 | 2024-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 ^