mouse.cpp: In function 'void solve(int)':
mouse.cpp:12:12: error: reference to 'right' is ambiguous
12 | wrong[i]=right[i]=0;
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mouse.cpp:8:6: note: 'bool right [500]'
8 | bool right[500],wrong[500];
| ^~~~~
mouse.cpp:22:7: error: reference to 'right' is ambiguous
22 | if(right[i]||right[j]||wrong[i]||wrong[j])
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mouse.cpp:8:6: note: 'bool right [500]'
8 | bool right[500],wrong[500];
| ^~~~~
mouse.cpp:22:17: error: reference to 'right' is ambiguous
22 | if(right[i]||right[j]||wrong[i]||wrong[j])
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mouse.cpp:8:6: note: 'bool right [500]'
8 | bool right[500],wrong[500];
| ^~~~~
mouse.cpp:29:5: error: reference to 'right' is ambiguous
29 | right[i]=right[j]=1;
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mouse.cpp:8:6: note: 'bool right [500]'
8 | bool right[500],wrong[500];
| ^~~~~
mouse.cpp:29:14: error: reference to 'right' is ambiguous
29 | right[i]=right[j]=1;
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mouse.cpp:8:6: note: 'bool right [500]'
8 | bool right[500],wrong[500];
| ^~~~~
mouse.cpp:40:3: error: reference to 'right' is ambiguous
40 | right[i]=0;
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mouse.cpp:8:6: note: 'bool right [500]'
8 | bool right[500],wrong[500];
| ^~~~~
mouse.cpp:43:7: error: reference to 'right' is ambiguous
43 | if(right[order[j]])
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mouse.cpp:8:6: note: 'bool right [500]'
8 | bool right[500],wrong[500];
| ^~~~~
mouse.cpp:51:5: error: reference to 'right' is ambiguous
51 | right[order[i]]=right[order[j]]=1;
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mouse.cpp:8:6: note: 'bool right [500]'
8 | bool right[500],wrong[500];
| ^~~~~
mouse.cpp:51:21: error: reference to 'right' is ambiguous
51 | right[order[i]]=right[order[j]]=1;
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mouse.cpp:8:6: note: 'bool right [500]'
8 | bool right[500],wrong[500];
| ^~~~~