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