Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2546 | 张宸瑜 | 校门外的树 | C++ | Compile Error | 0 MS | 0 KB | 331 | 2024-01-13 15:37:42 |
# include<iostream> # include<cstdio> # include<iomanip> using namespace std; int main(){ int L,M,a,b,c=0; cin>>L>>M; for(int i=1;i<=m;i++) { cin>>a>>b; if(a<b){ c=a; a=b; b=c; } L=L-(a-b); } cout>>l; return 0; }
Main.cc: In function 'int main()': Main.cc:8:20: error: 'm' was not declared in this scope for(int i=1;i<=m;i++) ^ Main.cc:18:11: error: 'l' was not declared in this scope cout>>l; ^