0_0_19620258_18373.cpp: In function 'int main()':
0_0_19620258_18373.cpp:40:35: error: 'cc' was not declared in this scope
scanf("%d%d%d%d%d" , &cc[i].l,&cc[i].r , &cc[i].a, &cc[i].b , &cc[i].c);
^
0_0_19620258_18373.cpp:42:34: error: no matching function for call to 'std::priority_queue<knode>::push(<brace-enclosed initializer list>)'
ss.push({0,i,cc[i].l});
^
0_0_19620258_18373.cpp:42:34: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_19620258_18373.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = knode; _Sequence = std::vector<knode, std::allocator<knode> >; _Compare = std::less<knode>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = knode]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const knode&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = knode; _Sequence = std::vector<knode, std::allocator<knode> >; _Compare = std::less<knode>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = knode]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<knode>::value_type&& {aka knode&&}'
0_0_19620258_18373.cpp:43:44: error: no matching function for call to 'std::priority_queue<knode>::push(<brace-enclosed initializer list>)'
ss.push({1 , i , cc[i].r + 0.5});
^
0_0_19620258_18373.cpp:43:44: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_19620258_18373.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = knode; _Sequence = std::vector<knode, std::allocator<knode> >; _Compare = std::less<knode>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = knode]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const knode&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = knode; _Sequence = std::vector<knode, std::allocator<knode> >; _Compare = std::less<knode>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = knode]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<knode>::value_type&& {aka knode&&}'
0_0_19620258_18373.cpp:55:29: error: 'cc' was not declared in this scope
tall += cc[gg.n].a - cc[gg.n].c;
^
0_0_19620258_18373.cpp:59:29: error: 'cc' was not declared in this scope
tall += cc[gg.n].b - cc[gg.n].a;
^
|