| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148060 | 于墨轩 | [在线测评解答教程] 求和 | C++ | Compile Error | 0 MS | 0 KB | 276 | 2026-02-09 16:20:25 |
#include<bits/stdc++.h> void sum(int x,int y){ int s; for(int i=x;i<=y;i++){ s+=i; } cout<<s<<<" "; } int main(){ sum(1,10); int sum(int x,int y){ int s; for(int i=x;i<=y;i++){ s+=i; } return x+y; }
Main.cc: In function 'void sum(int, int)':
Main.cc:7:5: error: 'cout' was not declared in this scope
cout<