mouse.cpp: In function 'void fill(int)':
mouse.cpp:19:9: error: reference to 'left' is ambiguous
19 | left[i]=i+1;
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
mouse.cpp:13:5: note: 'int left [256]'
13 | int left[MAXN];
| ^~~~
mouse.cpp:22:9: error: reference to 'left' is ambiguous
22 | left[x-1]=0;
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
mouse.cpp:13:5: note: 'int left [256]'
13 | int left[MAXN];
| ^~~~
mouse.cpp:25:12: error: reference to 'left' is ambiguous
25 | if(left[i]==0){
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
mouse.cpp:13:5: note: 'int left [256]'
13 | int left[MAXN];
| ^~~~
mouse.cpp:27:17: error: reference to 'left' is ambiguous
27 | left[j-1]=left[j];
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
mouse.cpp:13:5: note: 'int left [256]'
13 | int left[MAXN];
| ^~~~
mouse.cpp:27:27: error: reference to 'left' is ambiguous
27 | left[j-1]=left[j];
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
mouse.cpp:13:5: note: 'int left [256]'
13 | int left[MAXN];
| ^~~~
mouse.cpp:35:18: error: reference to 'left' is ambiguous
35 | q[j]=left[j];
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
mouse.cpp:13:5: note: 'int left [256]'
13 | int left[MAXN];
| ^~~~
mouse.cpp:37:17: error: reference to 'left' is ambiguous
37 | left[j-1]=left[j];
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
mouse.cpp:13:5: note: 'int left [256]'
13 | int left[MAXN];
| ^~~~
mouse.cpp:37:27: error: reference to 'left' is ambiguous
37 | left[j-1]=left[j];
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from grader.h:5,
from mouse.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
mouse.cpp:13:5: note: 'int left [256]'
13 | int left[MAXN];
| ^~~~
mouse.cpp: At global scope:
mouse.cpp:44:5: error: ambiguating new declaration of 'int solve(int)'
44 | int solve(int n)
| ^~~~~
In file included from mouse.cpp:1:
grader.h:8:6: note: old declaration 'void solve(int)'
8 | void solve(int N);
| ^~~~~