| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159803 | 陈鸣锐 | 07苹果和虫子 | C++ | Compile Error | 0 MS | 0 KB | 185 | 2026-09-06 16:21:26 |
#include<bits/stdc++.h> using namespace std; int main() { double n,x,y,a; cin>>n>>x>>y; if(a=(n-y)/x)){ cout<<int(a); } /*if(a+b<=c){ cout<<"No"; } */ return 0; }
Main.cc: In function 'int main()':
Main.cc:6:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(a=(n-y)/x)){
^
Main.cc:6:15: error: expected primary-expression before ')' token
if(a=(n-y)/x)){
^