| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160206 | 张蔚林 | 我家的门牌号 | C++ | Compile Error | 0 MS | 0 KB | 242 | 2026-09-13 10:04:26 |
#include<bits/stdc++.h> using namespace std; int main() { int s,i=0,sum=0; cin>>s; while(1){ i++; sum+=i;j for(int j=0;j<sum;j++){ if(sum-j*2==s){ cout<<j<<' '<<i<<endl; return 0; } } } return 0; }
Main.cc: In function 'int main()':
Main.cc:9:10: error: 'j' was not declared in this scope
sum+=i;j
^