foo.cc: In function '__int128 lllget()':
foo.cc:3:53: error: 'cin' was not declared in this scope
inline __int128 lllget() { __int128 x = 0; char c = cin.get(); bool f = false; while (c < '0' || c > '9') { f |= c == '-'; c = cin.get(); } while (c >= '0' && c <= '9') { x = (x << 3) + (x << 1) + (c ^ 48); c = cin.get(); } return f ? -x : x; }
^~~
foo.cc:3:53: note: suggested alternative:
In file included from foo.cc:1:0:
/usr/include/c++/7/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^~~
foo.cc: In function 'void lllpr(__int128)':
foo.cc:5:47: error: 'cout' was not declared in this scope
inline void lllpr(__int128 x) { if (x == 0) { cout.put('0'); return ; } if (x < 0) { cout.put('-'); x = -x; } static char stk[105], top = 0; while (x) { stk[top++] = x % 10 + 48; x /= 10; } while (top--) { cout.put(stk[top]); } }
^~~~
foo.cc:5:47: note: suggested alternative:
In file included from foo.cc:1:0:
/usr/include/c++/7/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^~~~
foo.cc:5:86: error: 'cout' was not declared in this scope
inline void lllpr(__int128 x) { if (x == 0) { cout.put('0'); return ; } if (x < 0) { cout.put('-'); x = -x; } static char stk[105], top = 0; while (x) { stk[top++] = x % 10 + 48; x /= 10; } while (top--) { cout.put(stk[top]); } }
^~~~
foo.cc:5:86: note: suggested alternative:
In file included from foo.cc:1:0:
/usr/include/c++/7/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^~~~
foo.cc:5:163: warning: array subscript has type 'char' [-Wchar-subscripts]
inline void lllpr(__int128 x) { if (x == 0) { cout.put('0'); return ; } if (x < 0) { cout.put('-'); x = -x; } static char stk[105], top = 0; while (x) { stk[top++] = x % 10 + 48; x /= 10; } while (top--) { cout.put(stk[top]); } }
^
foo.cc:5:207: error: 'cout' was not declared in this scope
inline void lllpr(__int128 x) { if (x == 0) { cout.put('0'); return ; } if (x < 0) { cout.put('-'); x = -x; } static char stk[105], top = 0; while (x) { stk[top++] = x % 10 + 48; x /= 10; } while (top--) { cout.put(stk[top]); } }
^~~~
foo.cc:5:207: note: suggested alternative:
In file included from foo.cc:1:0:
/usr/include/c++/7/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^~~~
foo.cc:5:223: warning: array subscript has type 'char' [-Wchar-subscripts]
inline void lllpr(__int128 x) { if (x == 0) { cout.put('0'); return ; } if (x < 0) { cout.put('-'); x = -x; } static char stk[105], top = 0; while (x) { stk[top++] = x % 10 + 48; x /= 10; } while (top--) { cout.put(stk[top]); } }
^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务