0_0_38118025_13012.cpp:2:9: error: 'pair' does not name a type
typedef pair<int, int> pii;
^
0_0_38118025_13012.cpp: In function 'void read(T&)':
0_0_38118025_13012.cpp:4:40: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
int f = 1; x = 0; char s = getchar();
^
0_0_38118025_13012.cpp:4:40: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_38118025_13012.cpp:5:68: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while (s < '0' || s > '9') { if (s == '-') f = -1; s = getchar(); }
^
0_0_38118025_13012.cpp:6:69: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while (s <= '9' && s >= '0') x = x * 10 + (s ^ 48), s = getchar();
^
0_0_38118025_13012.cpp: In function 'void pr(T)':
0_0_38118025_13012.cpp:10:29: error: there are no arguments to 'putchar' that depend on a template parameter, so a declaration of 'putchar' must be available [-fpermissive]
if (x < 0) { putchar('-'); pr(-x); return ; }
^
0_0_38118025_13012.cpp: In function 'bool check(int)':
0_0_38118025_13012.cpp:43:26: error: 'memset' was not declared in this scope
memset(R, 0, sizeof R);
^
0_0_38118025_13012.cpp: In function 'void solve()':
0_0_38118025_13012.cpp:64:38: error: 'swap' was not declared in this scope
if(a == c && b > d) swap(b, d);
^
0_0_38118025_13012.cpp:65:38: error: 'swap' was not declared in this scope
if(b == d && a > c) swap(a, c);
^
0_0_38118025_13012.cpp:75:49: error: 'min' was not declared in this scope
ans = min(ans, __builtin_popcount(i));
^
0_0_38118025_13012.cpp:81:5: error: 'cout' was not declared in this scope
cout << ans << '\n';
^
0_0_38118025_13012.cpp: In instantiation of 'void read(T&) [with T = int]':
0_0_38118025_13012.cpp:60:11: required from here
0_0_38118025_13012.cpp:4:40: error: 'getchar' was not declared in this scope
int f = 1; x = 0; char s = getchar();
^
|