Run id: 79411
Main.cc:2:19: warning: extra tokens at end of #include directive
#include using namespace std;
^
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
cin>>N>>M; //输入N ,M int a[N+1];
^
Main.cc:5:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
Main.cc:7:29: error: 'a' was not declared in this scope
for(int i=1;i<=N;i++) { a[i]=-1; //初始状态为开 但至少有一个人 定义为-1全关闭状态 不进下面循环
^
Main.cc:10:66: error: 'a' was not declared in this scope
for(int j=1;j<=N;j++) { if(j%i==0) a[j]*=-1;//自己的倍数 翻转
^
Main.cc:12:60: error: 'a' was not declared in this scope
if(a[i]==-1) //输出关闭状态 { if(q==0) //第一个数前面不输出逗号
^
Main.cc:13:59: error: 'cout' was not declared in this scope
{ cout<