Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125739 | 王金檐 | 方程求解 | C++ | Compile Error | 0 MS | 0 KB | 237 | 2025-07-15 14:41:06 |
#include<iostream> using namespace std; int main(){ int n,m; cin>>m>>n; int x,y; for( x=1;x<=m+n;x++){ for( y=1;y<=m+ny++){ if(x+y==m&&x*y==n){ cout<<"Yes"; return 0; } } } cout<<"No"; return 0; }
Main.cc: In function 'int main()': Main.cc:8:17: error: 'ny' was not declared in this scope for( y=1;y<=m+ny++){ ^ Main.cc:8:21: error: expected ';' before ')' token for( y=1;y<=m+ny++){ ^