Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
83871 杜奕辰 函数求和 C Compile Error 0 MS 0 KB 266 2024-07-15 09:46:50

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int m(int a,int b) { int y=0; for(int i=a; i<=b; i++) { y+=i; } return y; } int main() { cout<<m(1,10)<<endl; cout<<m(20,30)<<endl; cout<<m(35,45)<<endl; return 0; }


Run Info:

Main.c:1:24: fatal error: bits/stdc++.h: No such file or directory
 #include
                        ^
compilation terminated.