Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119168 | 蒋骏逸 | 校门外的树 | C++ | Compile Error | 0 MS | 0 KB | 261 | 2025-05-17 09:44:49 |
#include<bits/stdc++.h> using namespace std; int main(){ int nz[10001],l,m,ks,js,count=0; cin>>l>>m; for(int i=0;i<m;i++) { cin>>ks>>js; for(int j=ks;j<=js;j++) nz[j]=1; } for(int i=0;i<=l;i++) if(nz[i]==0) count++; cout<<count;
Main.cc: In function 'int main()': Main.cc:15:13: error: expected '}' at end of input cout<