| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 73619 | 张之隽 | 09能否赴约 | C++ | Compile Error | 0 MS | 0 KB | 264 | 2024-05-19 14:19:05 |
#include <bits/stdc++.h> using namespace std; int main (){ int a; cin>>a; if (a==1 && a==7) { cout <<"NO"; }else if(a=3){ cout <<"NO"; }else if(a=5){ cout<<"NO"; }else { cout<<"YES"; }else{ cout<<"NO"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:8:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
}else if(a=3){
^
Main.cc:10:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
}else if(a=5){
^
Main.cc:14:3: error: 'else' without a previous 'if'
}else{
^