Alice.cpp:3:2: error: invalid preprocessing directive #includ; did you mean #include?
3 | #includ<Alicelib.h>
| ^~~~~~
| include
Alice.cpp:72:1: error: invalid use of template-name 'std::vector' without an argument list
72 | vector g[12];
| ^~~~~~
Alice.cpp:72:1: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17'
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/queue:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from Alice.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:386:11: note: 'template<class _Tp, class _Alloc> class std::vector' declared here
386 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
Alice.cpp:79:7: error: expected constructor, destructor, or type conversion before '(' token
79 | InitG(n,M+m+11);
| ^
Alice.cpp:20:19: error: expected unqualified-id before 'for'
20 | #define Fl(i,l,n) for(int i=l;i<n;i++)
| ^~~
Alice.cpp:19:17: note: in expansion of macro 'Fl'
19 | #define Fi(i,n) Fl(i,0,n)
| ^~
Alice.cpp:18:14: note: in expansion of macro 'Fi'
18 | #define F(n) Fi(i,n)
| ^~
Alice.cpp:80:2: note: in expansion of macro 'F'
80 | F(M)MakeG(a[i],b[i]);
| ^
Alice.cpp:18:17: error: 'i' does not name a type
18 | #define F(n) Fi(i,n)
| ^
Alice.cpp:20:31: note: in definition of macro 'Fl'
20 | #define Fl(i,l,n) for(int i=l;i<n;i++)
| ^
Alice.cpp:18:14: note: in expansion of macro 'Fi'
18 | #define F(n) Fi(i,n)
| ^~
Alice.cpp:80:2: note: in expansion of macro 'F'
80 | F(M)MakeG(a[i],b[i]);
| ^
Alice.cpp:18:17: error: 'i' does not name a type
18 | #define F(n) Fi(i,n)
| ^
Alice.cpp:20:35: note: in definition of macro 'Fl'
20 | #define Fl(i,l,n) for(int i=l;i<n;i++)
| ^
Alice.cpp:18:14: note: in expansion of macro 'Fi'
18 | #define F(n) Fi(i,n)
| ^~
Alice.cpp:80:2: note: in expansion of macro 'F'
80 | F(M)MakeG(a[i],b[i]);
| ^
Alice.cpp:20:19: error: expected unqualified-id before 'for'
20 | #define Fl(i,l,n) for(int i=l;i<n;i++)
| ^~~
Alice.cpp:19:17: note: in expansion of macro 'Fl'
19 | #define Fi(i,n) Fl(i,0,n)
| ^~
Alice.cpp:18:14: note: in expansion of macro 'Fi'
18 | #define F(n) Fi(i,n)
| ^~
Alice.cpp:81:2: note: in expansion of macro 'F'
81 | F(m)MakeG(c[i],d[i]);
| ^
Alice.cpp:18:17: error: 'i' does not name a type
18 | #define F(n) Fi(i,n)
| ^
Alice.cpp:20:31: note: in definition of macro 'Fl'
20 | #define Fl(i,l,n) for(int i=l;i<n;i++)
| ^
Alice.cpp:18:14: note: in expansion of macro 'Fi'
18 | #define F(n) Fi(i,n)
| ^~
Alice.cpp:81:2: note: in expansion of macro 'F'
81 | F(m)MakeG(c[i],d[i]);
| ^
Alice.cpp:18:17: error: 'i' does not name a type
18 | #define F(n) Fi(i,n)
| ^
Alice.cpp:20:35: note: in definition of macro 'Fl'
20 | #define Fl(i,l,n) for(int i=l;i<n;i++)
| ^
Alice.cpp:18:14: note: in expansion of macro 'Fi'
18 | #define F(n) Fi(i,n)
| ^~
Alice.cpp:81:2: note: in expansion of macro 'F'
81 | F(m)MakeG(c[i],d[i]);
| ^
Alice.cpp:20:19: error: expected unqualified-id before 'for'
20 | #define Fl(i,l,n) for(int i=l;i<n;i++)
| ^~~
Alice.cpp:19:17: note: in expansion of macro 'Fl'
19 | #define Fi(i,n) Fl(i,0,n)
| ^~
Alice.cpp:18:14: note: in expansion of macro 'Fi'
18 | #define F(n) Fi(i,n)
| ^~
Alice.cpp:82:2: note: in expansion of macro 'F'
82 | F(11)MakeG(n+i,n+i+1);
| ^
Alice.cpp:18:17: error: 'i' does not name a type
18 | #define F(n) Fi(i,n)
| ^
Alice.cpp:20:31: note: in definition of macro 'Fl'
20 | #define Fl(i,l,n) for(int i=l;i<n;i++)
| ^
Alice.cpp:18:14: note: in expansion of macro 'Fi'
18 | #define F(n) Fi(i,n)
| ^~
Alice.cpp:82:2: note: in expansion of macro 'F'
82 | F(11)MakeG(n+i,n+i+1);
| ^
Alice.cpp:18:17: error: 'i' does not name a type
18 | #define F(n) Fi(i,n)
| ^
Alice.cpp:20:35: note: in definition of macro 'Fl'
20 | #define Fl(i,l,n) for(int i=l;i<n;i++)
| ^
Alice.cpp:18:14: note: in expansion of macro 'Fi'
18 | #define F(n) Fi(i,n)
| ^~
Alice.cpp:82:2: note: in expansion of macro 'F'
82 | F(11)MakeG(n+i,n+i+1);
| ^
Alice.cpp:83:1: error: expected declaration before '}' token
83 | }
| ^
Bob.cpp: In function 'void Bob(long long int, long long int, long long int*, long long int*)':
Bob.cpp:82:17: error: 'i' was not declared in this scope
82 | int s=v[0],t=v[i];
| ^
Bob.cpp:23:23: error: request for member 'size' in 's', which is of non-class type 'long long int'
23 | #define sz(a) ((int)a.size())
| ^~~~
Bob.cpp:85:5: note: in expansion of macro 'sz'
85 | if(sz(s)<sz(t))swap(s,t);
| ^~
Bob.cpp:23:23: error: request for member 'size' in 't', which is of non-class type 'long long int'
23 | #define sz(a) ((int)a.size())
| ^~~~
Bob.cpp:85:11: note: in expansion of macro 'sz'
85 | if(sz(s)<sz(t))swap(s,t);
| ^~
Bob.cpp:91:15: error: cannot convert 'const value_type' {aka 'const std::pair<long long int, long long int>'} to 'long long int' in initialization
91 | int p=pq.top();pq.pop();
| ~~~~~~^~
| |
| const value_type {aka const std::pair<long long int, long long int>}
Bob.cpp:13:11: error: request for member 'second' in 'p', which is of non-class type 'long long int'
13 | #define Y second
| ^~~~~~
Bob.cpp:92:17: note: in expansion of macro 'Y'
92 | for(int u:g[p.Y]){
| ^
Bob.cpp:12:11: error: request for member 'first' in 'p', which is of non-class type 'long long int'
12 | #define X first
| ^~~~~
Bob.cpp:95:15: note: in expansion of macro 'X'
95 | pq.push({p.X+1,u});
| ^
Bob.cpp:95:21: error: no matching function for call to 'std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)'
95 | pq.push({p.X+1,u});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from Bob.cpp:2:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::greater<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long long int, long long int>]'
627 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:627:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<long long int, long long int>&'}
627 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_queue.h:635:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::greater<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long long int, long long int>]'
635 | push(value_type&& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:635:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::value_type&&' {aka 'std::pair<long long int, long long int>&&'}
635 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~