Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96040 | 罗迎甲 | 满足Sn>k的最小n | C++ | Compile Error | 0 MS | 0 KB | 196 | 2024-11-02 17:32:20 |
#include<bits/stdc++.h> using namespace std; int main() { int k,n=1; double Sn=0.0; cin>>k; while(n){ Sn+=pou(n+1,-1); n++; } cout<<n<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:9:17: error: 'pou' was not declared in this scope Sn+=pou(n+1,-1); ^