| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149869 | 赖泓宇 | 15求n!>m | C++ | Compile Error | 0 MS | 0 KB | 543 | 2026-03-20 18:20:42 |
#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() #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() int n,m; cin>>m; for(int i=0;i<=m;i++){ if(n%i==0){ cout<<i; break; } } }
Main.cc:11:1: error: 'cin' does not name a type
cin>>m;
^
Main.cc:12:1: error: expected unqualified-id before 'for'
for(int i=0;i<=m;i++){
^
Main.cc:12:13: error: 'i' does not name a type
for(int i=0;i<=m;i++){
^
Main.cc:12:18: error: 'i' does not name a type
for(int i=0;i<=m;i++){
^
Main.cc:18:1: error: expected declaration before '}' token
}
^