Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
719 | 贺思哲 | 函数求和 | C++ | Compile Error | 0 MS | 0 KB | 239 | 2023-03-04 14:47:41 |
#include<iostream> using namespace std; int sum1(int a,int b){ int c=0; for(int i=a;i<=b;i++){ c+=i; } return c; } } int main(){ output_name(1,10); output_name(20,30); output_name(35,45); }
Main.cc:10:1: error: expected declaration before '}' token } ^