Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7 | 刘家源 | 校门外的树 | C++ | Compile Error | 0 MS | 0 KB | 414 | 2022-07-13 01:33:48 |
#include<iostream> #include<cstdio> #include<string> #include<iomanip> #include<cmath> using namespace std; int main(){ int a[10000]={},L,M,cnt=0; cin>>L>>M; int qd[100]={},zd[100]={}; for(int i=0;i<M;i++) { cin>>qd[i]>>zd[i]; for(int j=qd[i];j<=zd[i];j++){ } } for(int i=0;i<=L;i++){ cnt=a[i]+ent; } cout<<L+1-cnt; return 0; }
Main.cc: In function 'int main()': Main.cc:19:18: error: 'ent' was not declared in this scope cnt=a[i]+ent; ^