grader.cpp: In function ‘int main(int, char**)’:
grader.cpp:65:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
tutorial5.cpp:3:44: error: conflicting declaration ‘int s’
int cnt[8],q[1<<8][100010],s[1<<8],e[1<<8],s,m;
^
tutorial5.cpp:3:28: note: previous declaration as ‘int s [256]’
int cnt[8],q[1<<8][100010],s[1<<8],e[1<<8],s,m;
^
tutorial5.cpp: In function ‘void Order(int, int*)’:
tutorial5.cpp:15:28: error: incompatible types in assignment of ‘int’ to ‘int [256]’
if(!cnt[a[i]])s-=(1<<a[i]);
^
tutorial5.cpp: In function ‘void Delivery(int)’:
tutorial5.cpp:23:10: error: incompatible types in assignment of ‘int’ to ‘int [256]’
s+=(1<<x);
^
tutorial5.cpp:25:21: error: invalid operands of types ‘int [256]’ and ‘bool’ to binary ‘operator&’
if(s&i!=i)continue;
^
tutorial5.cpp:25:17: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
if(s&i!=i)continue;
^
tutorial5.cpp:31:29: error: incompatible types in assignment of ‘int’ to ‘int [256]’
if(!cnt[i])s-=(1<<i);
^