Run id: 72330

Main.cc: In function 'int main()':
Main.cc:5:39: error: 'a' was not declared in this scope
     return 0; for(int i=1;i<=N;i++) { a[i]=-1; //初始状态为开 但至少有一个人 定义为-1全关闭状态 不进下面循环 } 
                                       ^
Main.cc:4:13: warning: unused variable 's' [-Wunused-variable]
     int N,M,s=0,q=0; cin>>N>>M; //输入N ,M int a[N+1]; //编号从1开始到N if(M==0) //没人的时候 默认全亮 无输出 
             ^
Main.cc:13:70: error: expected '}' at end of input
                                          cout<<","<