street_lamps.c: In function 'main':
street_lamps.c:22:20: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
22 | cc[i] = (cc[i] - '0' ^ 1) + '0';
| ~~~~~~^~~~~
street_lamps.c:12:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf("%d%d%s", &n, &q, cc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
street_lamps.c:17:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%s", s);
| ^~~~~~~~~~~~~~
street_lamps.c:21:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%d", &i), i--;
| ^~~~~~~~~~~~~~~
street_lamps.c:26:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d%d", &l, &r), l--, r -= 2;
| ^~~~~~~~~~~~~~~~~~~~~
street_lamps.c:38:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
38 | scanf("%s", s);
| ^~~~~~~~~~~~~~
street_lamps.c:40:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf("%d", &i), i--;
| ^~~~~~~~~~~~~~~
street_lamps.c:48:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
48 | scanf("%d%d", &l, &r), l--, r -= 2;
| ^~~~~~~~~~~~~~~~~~~~~