| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68900 | 张智博 | 函数求和 | C++ | Compile Error | 0 MS | 0 KB | 166 | 2024-03-27 21:49:12 |
def sum_3(a,b): c = 0 for x in range(a,b+1): c = c + x return c a = sum(1,10) b = sum(20,30) c = sum(35,45) print(a) print(b) print(c)
Main.cc:1:1: error: 'def' does not name a type def sum_3(a,b): ^