Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72759 周梓易 我家的门牌号 C++ Compile Error 0 MS 0 KB 233 2024-05-12 17:42:52

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int y=1; int x=1; wile(5>0){ for(x=1;x<=y;x++){ if((1+y)*y/2-2*x==n){ cout<<x>>" "<<y; } } y++; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:10: error: 'wile' was not declared in this scope
  wile(5>0){
          ^
Main.cc:7:6: warning: unused variable 'y' [-Wunused-variable]
  int y=1;
      ^
Main.cc:8:6: warning: unused variable 'x' [-Wunused-variable]
  int x=1;
      ^