/in/foo.cc:62:1: error: stray '\345' in program
单调队列
^
/in/foo.cc:62:2: error: stray '\215' in program
单调队列
^
/in/foo.cc:62:3: error: stray '\225' in program
单调队列
^
/in/foo.cc:62:4: error: stray '\350' in program
单调队列
^
/in/foo.cc:62:5: error: stray '\260' in program
单调队列
^
/in/foo.cc:62:6: error: stray '\203' in program
单调队列
^
/in/foo.cc:62:7: error: stray '\351' in program
单调队列
^
/in/foo.cc:62:8: error: stray '\230' in program
单调队列
^
/in/foo.cc:62:9: error: stray '\237' in program
单调队列
^
/in/foo.cc:62:10: error: stray '\345' in program
单调队列
^
/in/foo.cc:62:11: error: stray '\210' in program
单调队列
^
/in/foo.cc:62:12: error: stray '\227' in program
单调队列
^
/in/foo.cc:64:1: error: 'C' does not name a type
C++
^
/in/foo.cc: In function 'int read()':
/in/foo.cc:82:5: error: redefinition of 'int read()'
int read()
^~~~
/in/foo.cc:17:5: note: 'int read()' previously defined here
int read()
^~~~
/in/foo.cc: At global scope:
/in/foo.cc:89:5: error: redefinition of 'int n'
int n,K;
^
/in/foo.cc:24:5: note: 'int n' previously declared here
int n,K;
^
/in/foo.cc:89:7: error: redefinition of 'int K'
int n,K;
^
/in/foo.cc:24:7: note: 'int K' previously declared here
int n,K;
^
/in/foo.cc:90:12: error: conflicting declaration 'long long int a [100005]'
ll a[100005],sum[100005],f[100005],g[100005];
^
/in/foo.cc:26:5: note: previous declaration as 'int a [100005]'
int a[100005],q[100005];
^
/in/foo.cc:90:24: error: redefinition of 'long long int sum [100005]'
ll a[100005],sum[100005],f[100005],g[100005];
^
/in/foo.cc:25:4: note: 'long long int sum [100005]' previously declared here
ll sum[100005],f[100005],g[100005];
^~~
/in/foo.cc:90:34: error: redefinition of 'long long int f [100005]'
ll a[100005],sum[100005],f[100005],g[100005];
^
/in/foo.cc:25:16: note: 'long long int f [100005]' previously declared here
ll sum[100005],f[100005],g[100005];
^
/in/foo.cc:90:44: error: redefinition of 'long long int g [100005]'
ll a[100005],sum[100005],f[100005],g[100005];
^
/in/foo.cc:25:26: note: 'long long int g [100005]' previously declared here
ll sum[100005],f[100005],g[100005];
^
/in/foo.cc:93:10: error: conflicting declaration 'data q [100005]'
}q[100005];
^
/in/foo.cc:26:15: note: previous declaration as 'int q [100005]'
int a[100005],q[100005];
^
/in/foo.cc: In function 'long long int cal(int, int)':
/in/foo.cc:94:4: error: ambiguating new declaration of 'long long int cal(int, int)'
ll cal(int i,int j)
^~~
/in/foo.cc:27:8: note: old declaration 'double cal(int, int)'
double cal(int j,int k)
^~~
/in/foo.cc: In function 'void tran(int)':
/in/foo.cc:109:6: error: redefinition of 'void tran(int)'
void tran(int x)
^~~~
/in/foo.cc:31:6: note: 'void tran(int)' previously defined here
void tran(int x)
^~~~
/in/foo.cc:112:29: error: cannot convert 'data' to 'int' in assignment
q[++tail]=(data){0,n,x-1};
^
/in/foo.cc:115:22: error: request for member 'r' in 'q[head]', which is of non-class type 'int'
if(i>q[head].r)head++;
^
/in/foo.cc:116:26: error: request for member 'p' in 'q[head]', which is of non-class type 'int'
f[i]=cal(q[head].p,i);
^
/in/foo.cc:117:44: error: request for member 'p' in 'q[tail]', which is of non-class type 'int'
if(tail<head||cal(i,n)>cal(q[tail].p,n))
^
/in/foo.cc:119:45: error: request for member 'l' in 'q[tail]', which is of non-class type 'int'
while(head<=tail&&cal(i,q[tail].l)>cal(q[tail].p,q[tail].l))
^
/in/foo.cc:119:60: error: request for member 'p' in 'q[tail]', which is of non-class type 'int'
while(head<=tail&&cal(i,q[tail].l)>cal(q[tail].p,q[tail].l))
^
/in/foo.cc:119:70: error: request for member 'l' in 'q[tail]', which is of non-class type 'int'
while(head<=tail&&cal(i,q[tail].l)>cal(q[tail].p,q[tail].l))
^
/in/foo.cc:123:37: error: no matching function for call to 'find(int&, int&)'
int t=find(q[tail],i);
^
/in/foo.cc:98:5: note: candidate: int find(data, int)
int find(data t,int q)
^~~~
/in/foo.cc:98:5: note: no known conversion for argument 1 from 'int' to 'data'
In file included from /usr/include/c++/6/algorithm:62:0,
from /in/foo.cc:11:
/usr/include/c++/6/bits/stl_algo.h:3784:5: note: candidate: template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)
find(_InputIterator __first, _InputIterator __last,
^~~~
/usr/include/c++/6/bits/stl_algo.h:3784:5: note: template argument deduction/substitution failed:
/in/foo.cc:123:37: note: candidate expects 3 arguments, 2 provided
int t=find(q[tail],i);
^
In file included from /usr/include/c++/6/bits/locale_facets.h:48:0,
from /usr/include/c++/6/bits/basic_ios.h:37,
from /usr/include/c++/6/ios:44,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:10:
/usr/include/c++/6/bits/streambuf_iterator.h:369:5: note: candidate: template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)
find(istreambuf_iterator<_CharT> __first,
^~~~
/usr/include/c++/6/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed:
/in/foo.cc:123:37: note: mismatched types 'std::istreambuf_iterator<_CharT>' and 'int'
int t=find(q[tail],i);
^
/in/foo.cc:124:25: error: request for member 'r' in 'q[tail]', which is of non-class type 'int'
q[tail].r=t-1;
^
/in/foo.cc:125:39: error: cannot convert 'data' to 'int' in assignment
q[++tail]=(data){t,n,i};
^
/in/foo.cc:127:40: error: cannot convert 'data' to 'int' in assignment
else q[++tail]=(data){i,n,i};
^
/in/foo.cc: In function 'void dp()':
/in/foo.cc:132:6: error: redefinition of 'void dp()'
void dp()
^~
/in/foo.cc:44:6: note: 'void dp()' previously defined here
void dp()
^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:138:5: error: redefinition of 'int main()'
int main()
^~~~
/in/foo.cc:50:5: note: 'int main()' previously defined here
int main()
^~~~
/in/foo.cc: At global scope:
/in/foo.cc:145:1: error: expected unqualified-id before numeric constant
1
^
/in/foo.cc: In function 'int read()':
/in/foo.cc:240:5: error: redefinition of 'int read()'
int read()
^~~~
/in/foo.cc:17:5: note: 'int read()' previously defined here
int read()
^~~~
/in/foo.cc: At global scope:
/in/foo.cc:247:5: error: redefinition of 'int n'
int n,K;
^
/in/foo.cc:24:5: note: 'int n' previously declared here
int n,K;
^
/in/foo.cc:247:7: error: redefinition of 'int K'
int n,K;
^
/in/foo.cc:24:7: note: 'int K' previously declared here
int n,K;
^
/in/foo.cc:248:12: error: conflicting declaration 'long long int a [100005]'
ll a[100005],sum[100005],f[100005],g[100005];
^
/in/foo.cc:26:5: note: previous declaration as 'int a [100005]'
int a[100005],q[100005];
^
/in/foo.cc:248:24: error: redefinition of 'long long int sum [100005]'
ll a[100005],sum[100005],