Problem topical
User Memeathon
Submission Time 2025-03-18 13:44:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

topical.cpp: In function ‘int main()’:
topical.cpp:10:16: error: ‘j’ was not declared in this scope
10 | vector<int> p(j, 0);
| ^
topical.cpp:32:10: error: expected ‘;’ before ‘for’
32 | ans++
| ^
| ;
33 | for (int j=0; j<k; j++) {
| ~~~