Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114256 | 何松羽 | 14小鱼游泳 | C++ | Compile Error | 0 MS | 0 KB | 771 | 2025-03-22 11:40:43 |
#include<bits/stdc++.h> using namespace std; int main() { int x,n; cin>>x>>n; int count1 =0; int count2=0; for(int i=0;i<=n-1;i++){ if((x+i)%7==6||(x+i)%7==0){ count2++; }else{ count1++; } } cout<<count1*250; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int x,n; cin>>x>>n; int count1 =0; int count2=0; for(int i=0;i<=n-1;i++){ if((x+i)%7==6||(x+i)%7==0){ count2++; }else{ count1++; } } cout<<count1*250; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int x,n; cin>>x>>n; int count1 =0; int count2=0; for(int i=0;i<=n-1;i++){ if((x+i)%7==6||(x+i)%7==0){ count2++; }else{ count1++; } } cout<<count1*250; return 0; }
Main.cc:17:2: error: stray '#' in program }#include ^ Main.cc:33:2: error: stray '#' in program }#include ^ Main.cc:17:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:19: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:33:3: error: 'include' does not name a type }#include ^ Main.cc: In function 'int main()': Main.cc:35:5: error: redefinition of 'int main()' int main() { ^ Main.cc:3:5: note: 'int main()' previously defined here int main() { ^