street_lamps.c: In function 'main':
street_lamps.c:56:20: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
56 | cc[i] = (cc[i] - '0' ^ 1) + '0';
| ~~~~~~^~~~~
street_lamps.c:46:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
46 | scanf("%d%d%s", &n, &q, cc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
street_lamps.c:51:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
51 | scanf("%s", s);
| ^~~~~~~~~~~~~~
street_lamps.c:55:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
55 | scanf("%d", &i), i--;
| ^~~~~~~~~~~~~~~
street_lamps.c:60:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
60 | scanf("%d%d", &l, &r), l--, r -= 2;
| ^~~~~~~~~~~~~~~~~~~~~
street_lamps.c:73:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
73 | scanf("%s", s);
| ^~~~~~~~~~~~~~
street_lamps.c:75:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
75 | scanf("%d", &i), i--;
| ^~~~~~~~~~~~~~~
street_lamps.c:84:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
84 | scanf("%d%d", &l, &r), l--, r -= 2;
| ^~~~~~~~~~~~~~~~~~~~~