floppy.code:12:17: error: ‘l’ does not name a type
12 | auto range(auto l, auto r) { return views::iota(l,r); }
| ^
floppy.code:12:25: error: ‘r’ does not name a type
12 | auto range(auto l, auto r) { return views::iota(l,r); }
| ^
floppy.code:12:6: error: ISO C++ forbids declaration of ‘range’ with no type [-fpermissive]
12 | auto range(auto l, auto r) { return views::iota(l,r); }
| ^~~~~
floppy.code:12:1: error: top-level declaration of ‘range’ specifies ‘auto’
12 | auto range(auto l, auto r) { return views::iota(l,r); }
| ^~~~
floppy.code:12:1: error: storage class ‘auto’ invalid for function ‘range’
floppy.code: In function ‘int range(int, int)’:
floppy.code:12:37: error: ‘views’ has not been declared
12 | auto range(auto l, auto r) { return views::iota(l,r); }
| ^~~~~
floppy.code:12:49: error: ‘l’ was not declared in this scope
12 | auto range(auto l, auto r) { return views::iota(l,r); }
| ^
floppy.code:12:51: error: ‘r’ was not declared in this scope
12 | auto range(auto l, auto r) { return views::iota(l,r); }
| ^
floppy.code: At global scope:
floppy.code:13:6: error: ‘rev’ does not name a type
13 | auto rev=views::reverse;
| ^~~
floppy.code:15:41: error: ISO C++ forbids declaration of ‘a’ with no type [-fpermissive]
15 | _GLIBCXX_ALWAYS_INLINE void chmax(auto &a, auto b) { a=max(a,b); }
| ^
floppy.code:15:49: error: ‘b’ does not name a type
15 | _GLIBCXX_ALWAYS_INLINE void chmax(auto &a, auto b) { a=max(a,b); }
| ^
floppy.code: In function ‘void chmax(int&, int)’:
floppy.code:15:62: error: ‘b’ was not declared in this scope
15 | _GLIBCXX_ALWAYS_INLINE void chmax(auto &a, auto b) { a=max(a,b); }
| ^
floppy.code: At global scope:
floppy.code:16:41: error: ISO C++ forbids declaration of ‘a’ with no type [-fpermissive]
16 | _GLIBCXX_ALWAYS_INLINE void chmin(auto &a, auto b) { a=min(a,b); }
| ^
floppy.code:16:49: error: ‘b’ does not name a type
16 | _GLIBCXX_ALWAYS_INLINE void chmin(auto &a, auto b) { a=min(a,b); }
| ^
floppy.code: In function ‘void chmin(int&, int)’:
floppy.code:16:62: error: ‘b’ was not declared in this scope
16 | _GLIBCXX_ALWAYS_INLINE void chmin(auto &a, auto b) { a=min(a,b); }
| ^
floppy.code: In function ‘void read_array(int, const std::vector<int>&)’:
floppy.code:22:15: error: ‘i’ does not name a type
22 | for (auto i: range(0u,size(v))) {
| ^
floppy.code:25:6: error: expected ‘;’ before ‘save_to_floppy’
25 | }
| ^
| ;
26 | save_to_floppy(bits);
| ~~~~~~~~~~~~~~
floppy.code:26:19: error: could not convert ‘save_to_floppy(bits)’ from ‘void’ to ‘bool’
26 | save_to_floppy(bits);
| ~~~~~~~~~~~~~~^~~~~~
| |
| void
floppy.code:27:1: error: expected primary-expression before ‘}’ token
27 | }
| ^
floppy.code:26:26: error: expected ‘)’ before ‘}’ token
26 | save_to_floppy(bits);
| ^
| )
27 | }
| ~
floppy.code:22:9: note: to match this ‘(’
22 | for (auto i: range(0u,size(v))) {
| ^
floppy.code:27:1: error: expected primary-expression before ‘}’ token
27 | }
| ^
floppy.code: At global scope:
floppy.code:29:1: error: ‘constexpr’ does not name a type
29 | constexpr int MAXN=1e5+10;
| ^~~~~~~~~
floppy.code:29:1: note: C++11 ‘constexpr’ only available with ‘-std=c++11’ or ‘-std=gnu++11’
floppy.code:30:9: error: ‘MAXN’ was not declared in this scope
30 | int stk[MAXN], top, ls[MAXN], rs[MAXN], vis[MAXN];
| ^~~~
floppy.code:30:24: error: ‘MAXN’ was not declared in this scope
30 | int stk[MAXN], top, ls[MAXN], rs[MAXN], vis[MAXN];
| ^~~~
floppy.code:30:34: error: ‘MAXN’ was not declared in this scope
30 | int stk[MAXN], top, ls[MAXN], rs[MAXN], vis[MAXN];
| ^~~~
floppy.code:30:45: error: ‘MAXN’ was not declared in this scope
30 | int stk[MAXN], top, ls[MAXN], rs[MAXN], vis[MAXN];
| ^~~~
floppy.code:31:15: error: ‘MAXN’ was not declared in this scope
31 | vector<int> g[MAXN]; int f[MAXN][19], dep[MAXN];
| ^~~~
floppy.code:31:28: error: ‘MAXN’ was not declared in this scope
31 | vector<int> g[MAXN]; int f[MAXN][19], dep[MAXN];
| ...