Problem | lol |
---|---|
User | Dolphy |
Submission Time | 2023-09-06 16:00:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lol.cpp: In function ‘int main()’:
lol.cpp:7:38: error: expected ‘;’ before ‘>’ token
7 | for (int i=0; i<n-2; i++) for (int j>i; j<n-1; j++) for (int k>j; k<n; k++) if (((lol[i] == 'l') && (lol[j] == 'o')) & (lol[k] == 'l')) count++;
| ^
| ;
lol.cpp:7:38: error: expected primary-expression before ‘>’ token
lol.cpp:7:47: error: expected ‘)’ before ‘;’ token
7 | for (int i=0; i<n-2; i++) for (int j>i; j<n-1; j++) for (int k>j; k<n; k++) if (((lol[i] == 'l') && (lol[j] == 'o')) & (lol[k] == 'l')) count++;
| ~ ^
| )
lol.cpp:7:49: error: ‘j’ was not declared in this scope
7 | for (int i=0; i<n-2; i++) for (int j>i; j<n-1; j++) for (int k>j; k<n; k++) if (((lol[i] == 'l') && (lol[j] == 'o')) & (lol[k] == 'l')