Problem potatotree
User lHog
Submission Time 2024-03-11 17:25:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatotree.cpp: In function ‘int main()’:
potatotree.cpp:6:2: error: expected initializer before ‘cin’
6 | cin >> n >> q;
| ^~~
potatotree.cpp:11:3: error: ‘a’ was not declared in this scope
11 | a[i] = s.size()
| ^
potatotree.cpp:15:11: error: ‘a’ was not declared in this scope
15 | cout << a[x-1] << " ";
| ^