| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 164852 | 李泽曦 | n!大于k | C++ | Compile Error | 0 MS | 0 KB | 423 | 2026-11-07 15:55:36 |
#include<iostream> // 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(){ int n,k,cj=1; cin>>k; for(int i=1;i<=n,i++){ cj*=i; if(cj>k){ cout<<i; break; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:10:18: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=1;i<=n,i++){
^
Main.cc:10:25: error: expected ';' before ')' token
for(int i=1;i<=n,i++){
^