watching.cpp: In function 'int main()':
watching.cpp:30:38: error: expected primary-expression before ';' token
30 | for (int j = 0; j <= min(P, i);; j++){
| ^
watching.cpp:30:38: error: expected ')' before ';' token
30 | for (int j = 0; j <= min(P, i);; j++){
| ~ ^
| )
watching.cpp:30:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
30 | for (int j = 0; j <= min(P, i);; j++){
| ^~~
watching.cpp:30:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
30 | for (int j = 0; j <= min(P, i);; j++){
| ^
watching.cpp:30:40: error: 'j' was not declared in this scope