ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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;}
}
详细
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 ^