Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6975 | 柯宇希 | 方程求解 | C++ | Compile Error | 0 MS | 0 KB | 527 | 2025-03-29 14:38:19 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int x,y,n,m; bool f=false; cin>>m>>n; for(x=1;x<=m;x++){ for(y=1;y<=m;y++){ if(x+y=m&&x*y=m){ f=ture; } } } if(f=ture) cout<<"Yes"; else cout<<"No"; return 0; }
Main.cc: In function 'int main()': Main.cc:13:26: error: lvalue required as left operand of assignment if(x+y=m&&x*y=m){ ^ Main.cc:14:19: error: 'ture' was not declared in this scope f=ture; ^ Main.cc:19:10: error: 'ture' was not declared in this scope if(f=ture) cout<"Yes"; ^