Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115412 | 李禹宸 | 函数求和 | C++ | Compile Error | 0 MS | 0 KB | 376 | 2025-03-30 13:32:18 |
#include<bits/stdc++h> using namespace std; void sum1(){ int a=1,b=10,c=0; for(int i=a;i<=b;i++){ c+=i; } cout<<c<<endl; } void sum2(){ int x=20,y=30,n=0; for(int i=x;i<=y;i++){ n+=i; } cout<<n<<endl; } void sum3(){ int f=35,g=45,h=0; for(int i=f;i<=g;i++){ h+=i; } cout<<h; } int main(){ sum1(); sum2(); sum3(); return ; }
Main.cc:1:23: fatal error: bits/stdc++h: No such file or directory #include ^ compilation terminated.