Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
121591 周辰彦 校门外的树 C++ Compile Error 0 MS 0 KB 275 2025-06-07 17:12:21

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a[10001]={0},l,m,st,en,s=0; cin>>l>>m; for(iont i=0;i<m;i++) { cin>>st>>en; for(int j=st;j<=en;j++) a[j]=1; } for(int i=0;i<m;i++) { if(a[i]==0) s++; } cout<<s; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:6: error: 'iont' was not declared in this scope
  for(iont i=0;i