/in/foo.cc: In function 'int main()':
/in/foo.cc:51:21: error: could not convert 'read(m)' from 'void' to 'bool'
for (i = 1; read(m); i <= m; i++)
~~~~^~~
/in/foo.cc:51:28: warning: for increment expression has no effect [-Wunused-value]
for (i = 1; read(m); i <= m; i++)
~~^~~~
/in/foo.cc:51:32: error: expected ')' before ';' token
for (i = 1; read(m); i <= m; i++)
^
/in/foo.cc:51:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i = 1; read(m); i <= m; i++)
^~~
/in/foo.cc:51:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (i = 1; read(m); i <= m; i++)
^
/in/foo.cc:51:37: error: expected ';' before ')' token
for (i = 1; read(m); i <= m; i++)
^
/in/foo.cc:38:15: warning: unused variable 'l' [-Wunused-variable]
int n, m, l, r, p, i, j;
^
/in/foo.cc:38:18: warning: unused variable 'r' [-Wunused-variable]
int n, m, l, r, p, i, j;
^
/in/foo.cc:38:21: warning: unused variable 'p' [-Wunused-variable]
int n, m, l, r, p, i, j;
^