foo.cc: In function 'int main()':
foo.cc:10:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
10 | if (j == 'X' && check == 10 || check == j - '0') {
| ~~~~~~~~~^~~~~~~~~~~~~~
foo.cc:5:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
5 | scanf("%c-%c%c%c-%c%c%c%c%c-%c", &a, &b, &c, &d, &e, &f, &g, &h, &i, &j);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务