| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149879 | 赖泓宇 | 15求n!>m | C++ | Compile Error | 0 MS | 0 KB | 423 | 2026-03-20 18:31:19 |
#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,m; cin>>m; for(int i=1;i<m;i++){ s++; b=i*(i+1); if(n%b==0){ cout<<s; break; } } }
Main.cc: In function 'int main()':
Main.cc:10:9: error: 's' was not declared in this scope
s++;
^
Main.cc:11:9: error: 'b' was not declared in this scope
b=i*(i+1);
^