Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151451 黄睿杰 我家的门牌号 C++ Compile Error 0 MS 0 KB 260 2026-04-12 14:22:25

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int x,i=0,n,s=0; cin>>n; while(1){ i++; s+=i; for(x=1;x<=100000000;x++){ if(s-2x==n){ cout<<x<<" "<<i; return 0; } } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:12: error: unable to find numeric literal operator 'operator""x'
       if(s-2x==n){
            ^
Main.cc:10:12: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes