Problem | iqtest2 |
---|---|
User | Kiameimon |
Submission Time | 2023-10-18 15:42:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
iqtest2.cpp: In function ‘int main()’:
iqtest2.cpp:18:14: error: expected ‘;’ before ‘cout’
18 | if((k == 0) cout << p-1 << "\n";
| ^~~~~
| ;
iqtest2.cpp:19:3: error: expected primary-expression before ‘else’
19 | else cout << 0 << "\n";
| ^~~~
iqtest2.cpp:18:35: error: expected ‘)’ before ‘else’
18 | if((k == 0) cout << p-1 << "\n";
| ~ ^
| )
19 | else cout << 0 << "\n";
| ~~~~