Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132927 郑喆哲 方程求解 C++ Compile Error 0 MS 0 KB 305 2025-10-12 16:52:37

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int n; int m; int a; int b=0; int c=0; cin>>n>>m; for(int i=1;i<n,i++) { a=n-i if(a*i==m) { cout<<"Yes"; c=c+1 break; } else { b=b+1 } } if(b!=0 && c==0) { cout<<"No" } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:15: warning: left operand of comma operator has no effect [-Wunused-value]
  for(int i=1;i