Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100999 | 魏宏搏 | 满足Sn>k的最小n | C++ | Compile Error | 0 MS | 0 KB | 5901 | 2024-12-14 12:02:01 |
#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn+=1.0/n; n++; } cout<<n-1; return 0; }#include<iostream> using namespace std; int main(){ double sn=0; int
Main.cc:13:2: error: stray '#' in program }#include ^ Main.cc:25:2: error: stray '#' in program }#include ^ Main.cc:37:2: error: stray '#' in program }#include ^ Main.cc:49:2: error: stray '#' in program }#include ^ Main.cc:61:2: error: stray '#' in program }#include ^ Main.cc:73:2: error: stray '#' in program }#include ^ Main.cc:85:2: error: stray '#' in program }#include ^ Main.cc:97:2: error: stray '#' in program }#include ^ Main.cc:109:2: error: stray '#' in program }#include ^ Main.cc:121:2: error: stray '#' in program }#include ^ Main.cc:133:2: error: stray '#' in program }#include ^ Main.cc:145:2: error: stray '#' in program }#include ^ Main.cc:157:2: error: stray '#' in program }#include ^ Main.cc:169:2: error: stray '#' in program }#include ^ Main.cc:181:2: error: stray '#' in program }#include ^ Main.cc:193:2: error: stray '#' in program }#include ^ Main.cc:205:2: error: stray '#' in program }#include ^ Main.cc:217:2: error: stray '#' in program }#include ^ Main.cc:229:2: error: stray '#' in program }#include ^ Main.cc:241:2: error: stray '#' in program }#include ^ Main.cc:253:2: error: stray '#' in program }#include ^ Main.cc:265:2: error: stray '#' in program }#include ^ Main.cc:277:2: error: stray '#' in program }#include ^ Main.cc:289:2: error: stray '#' in program }#include ^ Main.cc:301:2: error: stray '#' in program }#include ^ Main.cc:313:2: error: stray '#' in program }#include ^ Main.cc:325:2: error: stray '#' in program }#include ^ Main.cc:337:2: error: stray '#' in program }#include ^ Main.cc:349:2: error: stray '#' in program }#include ^ Main.cc:361:2: error: stray '#' in program }#include ^ Main.cc:13:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:15:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:25:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:27:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:37:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:39:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:49:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:51:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:61:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:63:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:73:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:75:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:85:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:87:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:97:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:99:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:109:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:111:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:121:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:123:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:133:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:135:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:145:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:147:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:157:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:159:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:169:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:171:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:181:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:183:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:193:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:195:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:205:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:207:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:217:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:219:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:229:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:231:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:241:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:243:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:253:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:255:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:265:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:267:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:277:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:279:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:289:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:291:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:301:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:303:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:313:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:315:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:325:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:327:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:337:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:339:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:349:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:351:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:361:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:363:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:3:5: note: 'int main()' previously defined here int main(){ ^ Main.cc:365:5: error: expected unqualified-id at end of input int ^ Main.cc:364:12: warning: unused variable 'sn' [-Wunused-variable] double sn=0; ^ Main.cc:365:5: error: expected '}' at end of input int ^