fishing.cpp: In function 'void solve_test()':
fishing.cpp:10:22: error: 'n' was not declared in this scope
10 | for(int i=1;i<=2*n;i++)
| ^
fishing.cpp:14:13: error: 'p' was not declared in this scope
14 | if(!p[x].first)
| ^
fishing.cpp:23:22: error: 'n' was not declared in this scope
23 | for(int i=1;i<=2*n;i++)
| ^
fishing.cpp:27:13: error: 'p' was not declared in this scope
27 | if(!p[x].first)
| ^
fishing.cpp:36:22: error: 'n' was not declared in this scope
36 | for(int i=1;i<=2*n;i++)
| ^
fishing.cpp:40:13: error: 'p' was not declared in this scope
40 | if(!p[x].first)
| ^
fishing.cpp:49:22: error: 'n' was not declared in this scope; did you mean 'yn'?
49 | int nr_tot = 3 * n;
| ^
| yn
fishing.cpp:52:12: error: 'p' was not declared in this scope
52 | if(p[i].first==p[i].second)
| ^
fishing.cpp:57:12: error: 'p' was not declared in this scope
57 | if(p[i].first==1 && p[i].second==2)
| ^
fishing.cpp:59:15: error: 'nrab' was not declared in this scope
59 | ++nrab;
| ^~~~
fishing.cpp:63:15: error: 'nrac' was not declared in this scope
63 | ++nrac;
| ^~~~
fishing.cpp:66:5: error: 'dp' was not declared in this scope
66 | dp[nr_tot][nrab][nrac] = 1;
| ^~
fishing.cpp:66:16: error: 'nrab' was not declared in this scope
66 | dp[nr_tot][nrab][nrac] = 1;
| ^~~~
fishing.cpp:66:22: error: 'nrac' was not declared in this scope
66 | dp[nr_tot][nrab][nrac] = 1;
| ^~~~
fishing.cpp:80:29: error: 'update' was not declared in this scope
80 | update(nr,ab,ac,a,b,c);
| ^~~~~~
fishing.cpp:73:21: warning: unused variable 'bc' [-Wunused-variable]
73 | int bc = nr - ab - ac;
| ^~
fishing.cpp: In function 'int main()':
fishing.cpp:97:10: error: 'n' was not declared in this scope; did you mean 'yn'?
97 | cin>>n>>t;
| ^
| yn
fishing.cpp:97:13: error: 't' was not declared in this scope; did you mean 'tm'?
97 | cin>>n>>t;
| ^
| tm