Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
96496 何思佳 方程求解 C++ Compile Error 0 MS 0 KB 232 2024-11-09 11:05:51

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int m,n; cin>>m>>n; for(int i=1;i<=m-1;i++){ for(int j=1;j<=m-1;j++){ if(i+j==m&&i*j==n){ cout<<"Yes"; } } } } cout<<"No"; return 0; }


Run Info:

Main.cc:15:2: error: 'cout' does not name a type
  cout<<"No";
  ^
Main.cc:16:2: error: expected unqualified-id before 'return'
  return 0;
  ^
Main.cc:17:1: error: expected declaration before '}' token
 }
 ^