Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150107 曾钰涵 满足条件的数II C++ Compile Error 0 MS 0 KB 399 2026-03-22 11:42:27

Tests(0/0):


Code:

#include<bits/stdc++.h> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double sn=0; int k,n=1; cin>>k; while(sn<=k){ sn+=pow(n+1,-1); n++; cout<<n<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:1: error: expected '}' at end of input
 }
 ^