preokret.cpp: In function 'int main()':
preokret.cpp:27:19: error: expected ';' before ':' token
27 | b[m + 1] = INF:
| ^
| ;
preokret.cpp:28:21: error: 'i' was not declared in this scope
28 | for (int i = 1; i <= n;) {
| ^
preokret.cpp:28:28: error: expected primary-expression before ')' token
28 | for (int i = 1; i <= n;) {
| ^
preokret.cpp:20:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
20 | scanf ("%d", &n);
| ~~~~~~^~~~~~~~~~
preokret.cpp:21:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | for (int i = 1; i <= n; ++i) scanf ("%d", a + i);
| ~~~~~~^~~~~~~~~~~~~
preokret.cpp:22:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf ("%d", &m);
| ~~~~~~^~~~~~~~~~
preokret.cpp:23:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | for (int i = 1; i <= m; ++i) scanf ("%d", b + i);
| ~~~~~~^~~~~~~~~~~~~