/in/foo.cc: In function 'int Hash_Table::h(const Point&)':
/in/foo.cc:10:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(ans<0)ans+=HASH_SIZE; return ans; } Point ht[HASH_SIZE];bool state[HASH_SIZE];int TOT;
^~
/in/foo.cc:10:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(ans<0)ans+=HASH_SIZE; return ans; } Point ht[HASH_SIZE];bool state[HASH_SIZE];int TOT;
^~~~~~
/in/foo.cc: In function 'int Hash_Table::hash(const Point&)':
/in/foo.cc:12:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if((at+=step)>=HASH_SIZE) at-=HASH_SIZE; if(!state[at]){ ht[at]=p; state[at]=true; return 0; }
^~
/in/foo.cc:12:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if((at+=step)>=HASH_SIZE) at-=HASH_SIZE; if(!state[at]){ ht[at]=p; state[at]=true; return 0; }
^~
/in/foo.cc:11:40: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
int hash(const Point& p){ int at=h(p); for(;state[at]&&ht[at]!=p;TOT++)
^~~
/in/foo.cc:12:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if((at+=step)>=HASH_SIZE) at-=HASH_SIZE; if(!state[at]){ ht[at]=p; state[at]=true; return 0; }
^~