day5: fix pollution

master
Avril 4 years ago
parent 3ca3f3590c
commit 23f488a93b
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -119,8 +119,7 @@ int main()
{
seat_t prev = seats[i-1];
seat_t this = seats[i];
#define diff (this.id - prev.id)
if(diff == 2)
if( (this.id - prev.id) == 2)
{
printf("%d\n", prev.id+1);
return 0;

Loading…
Cancel
Save