| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66123 | vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 方程求解 | C++ | Compile Error | 0 MS | 0 KB | 274 | 2024-03-02 15:46:07 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n; cin>>m>>n; for(int i=1;i<=m;i++){ for(int j=1;j<=m;j++){ if(x+y==m&&x*y==n){ cout<<"Yes"; return 0; } else{ cout<<"No"; return 0; } } } return 0; }
Main.cc: In function 'int main()':
Main.cc:9:7: error: 'x' was not declared in this scope
if(x+y==m&&x*y==n){
^
Main.cc:9:9: error: 'y' was not declared in this scope
if(x+y==m&&x*y==n){
^