# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
16874 | 2015-10-24T01:58:19 Z | gs14004 | 통로 위의 개미 (kriii3_X) | C++14 | 컴파일 오류 |
0 ms | 0 KB |
v#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #include <stack> #include <queue> #include <map> #include <set> #include <algorithm> #include <string> #include <functional> #include <vector> #include <numeric> #include <deque> #include <utility> #include <bitset> #include <iostream> using namespace std; typedef long long lint; typedef long double llf; typedef pair<int, int> pi; static char _buffer[1024]; static int _currentChar = 0; static int _charsNumber = 0; static inline int _read() { if (_charsNumber < 0) { exit(1); } if (!_charsNumber || _currentChar == _charsNumber) { _charsNumber = (int)fread(_buffer, sizeof(_buffer[0]), sizeof(_buffer), stdin); _currentChar = 0; } if (_charsNumber <= 0) { return -1; } return _buffer[_currentChar++]; } static inline long long _readLong() { int c, s; lint x; c = _read(); while (c <= 32) c = _read(); x = 0; s = 1; if (c == '-') { s = -1; c = _read(); } while (c > 32) { x *= 10; x += c - '0'; c = _read(); } if (s < 0) x = -x; return x; } static inline int _readInt() { int c, x, s; c = _read(); while (c <= 32) c = _read(); x = 0; s = 1; if (c == '-') { s = -1; c = _read(); } while (c > 32) { x *= 10; x += c - '0'; c = _read(); } if (s < 0) x = -x; return x; } lint l; int q; int ants_kth[200005]; struct node{ int ls, rs, v; }; node tree[4000005]; int piv = 2; void add(int pos, int ps, int pe, int p){ tree[p].v++; if(ps == pe) return; int pm = ps + (pe - ps) / 2; if(pos <= pm){ if(!tree[p].ls) tree[p].ls = ++piv; add(pos, ps, pm, tree[p].ls); } else{ if(!tree[p].rs) tree[p].rs = ++piv; add(pos, pm + 1, pe, tree[p].rs); } } int sum(int s, int e, int ps, int pe, int p){ if(s <= ps && pe <= e) return tree[p].v; int pm = ps + (pe - ps) / 2; int ret = 0; if(pm >= s && tree[p].ls) ret += sum(s,e,ps,pm,tree[p].ls); if(e >= pm + 1 && tree[p].rs) ret += sum(s,e,pm+1,pe,tree[p].rs); return ret; } inline int get_sum(lint s, lint e, int r){ if(e >= 2 * l) return tree[r].v - sum(e - 2 * l + 1, s - 1, 0, 2*l-1, r); return sum(s, e, 0, 2*l-1, r); } inline lint norm(lint x){ x %= 2 * l; x += 2 * l; x %= 2 * l; return x; } int qiv = 1; int get_low(lint p, lint t){ if(p == l) return qiv-1; int ret = 0; ret += get_sum(norm(-t), norm(-t) + p, 1); ret += get_sum(norm(- p - t), norm(- p - t) + p - 1, 1); ret += get_sum(norm(t), norm(t) + p, 2); ret += get_sum(norm(- p + t), norm(- p + t) + p - 1, 2); return ret; } int v[705][705]; int sz[705]; int map_int[200005]; int main(){ v[0][sz[0]++] = -1; l = _readLong(); q = _readInt(); for(int i=0; i<q; i++){ lint t = _readLong(); lint p = _readLong(); if(p == 1){ lint pos = _readLong(); lint dx = _readLong(); int k = 1 + get_low(pos,t); map_int[qiv] = k / 300; v[k/300][sz[k/300]++] = -1; for(int i=sz[k/300] - 1; i > k % 300; i--){ v[k/300][i] = v[k/300][i-1]; } qiv++; /// if(sz[k/300] >= 700) update(); lint p = 1ll * pos - (1ll * dx * t % (2 * l)) + 2 * l; p %= (2 * l); p += 2 * l; p %= 2 * l; if(dx < 0) add(p,0,2*l-1,2); else add(p,0,2*l-1,1); } else{ int x = _readInt(); int pt = map_int[x]; for(int j=0; j<sz[pt]; j++){ if(v[pt][j] == x){ x = pt * 300 + j; break; } } int s = 0, e = l; while(s != e){ int m = (s+e)/2; if(get_low(m,t) < x) s = m+1; else e = m; } printf("%d\n",s); } } }
Compilation message
X.cpp:1:2: error: stray ‘#’ in program v#include <stdio.h> ^ X.cpp:1:1: error: ‘v’ does not name a type v#include <stdio.h> ^ In file included from X.cpp:2:0: /usr/include/stdlib.h:139:8: error: ‘size_t’ does not name a type extern size_t __ctype_get_mb_cur_max (void) __THROW __wur; ^ In file included from X.cpp:2:0: /usr/include/stdlib.h:331:4: error: ‘size_t’ has not been declared size_t __statelen) __THROW __nonnull ((2)); ^ /usr/include/stdlib.h:361:4: error: ‘size_t’ has not been declared size_t __statelen, ^ /usr/include/stdlib.h:466:22: error: ‘size_t’ was not declared in this scope extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/stdlib.h:466:37: error: expected ‘,’ or ‘;’ before ‘throw’ extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur; ^ In file included from X.cpp:2:0: /usr/include/stdlib.h:468:22: error: ‘size_t’ was not declared in this scope extern void *calloc (size_t __nmemb, size_t __size) ^ /usr/include/stdlib.h:468:38: error: ‘size_t’ was not declared in this scope extern void *calloc (size_t __nmemb, size_t __size) ^ /usr/include/stdlib.h:468:51: error: expression list treated as compound expression in initializer [-fpermissive] extern void *calloc (size_t __nmemb, size_t __size) ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/stdlib.h:469:6: error: expected ‘,’ or ‘;’ before ‘throw’ __THROW __attribute_malloc__ __wur; ^ In file included from X.cpp:2:0: /usr/include/stdlib.h:480:36: error: ‘size_t’ has not been declared extern void *realloc (void *__ptr, size_t __size) ^ In file included from /usr/include/stdlib.h:492:0, from X.cpp:2: /usr/include/alloca.h:32:22: error: ‘size_t’ was not declared in this scope extern void *alloca (size_t __size) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/alloca.h:32:37: error: expected ‘,’ or ‘;’ before ‘throw’ extern void *alloca (size_t __size) __THROW; ^ In file included from X.cpp:2:0: /usr/include/stdlib.h:498:22: error: ‘size_t’ was not declared in this scope extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/stdlib.h:498:37: error: expected ‘,’ or ‘;’ before ‘throw’ extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur; ^ In file included from X.cpp:2:0: /usr/include/stdlib.h:503:45: error: ‘size_t’ has not been declared extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) ^ /usr/include/stdlib.h:503:65: error: ‘size_t’ has not been declared extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) ^ /usr/include/stdlib.h:509:29: error: ‘size_t’ was not declared in this scope extern void *aligned_alloc (size_t __alignment, size_t __size) ^ /usr/include/stdlib.h:509:49: error: ‘size_t’ was not declared in this scope extern void *aligned_alloc (size_t __alignment, size_t __size) ^ /usr/include/stdlib.h:509:62: error: expression list treated as compound expression in initializer [-fpermissive] extern void *aligned_alloc (size_t __alignment, size_t __size) ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/stdlib.h:510:6: error: expected ‘,’ or ‘;’ before ‘throw’ __THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur; ^ In file included from X.cpp:2:0: /usr/include/stdlib.h:756:9: error: ‘size_t’ has not been declared size_t __nmemb, size_t __size, __compar_fn_t __compar) ^ /usr/include/stdlib.h:756:25: error: ‘size_t’ has not been declared size_t __nmemb, size_t __size, __compar_fn_t __compar) ^ In file included from /usr/include/stdlib.h:760:0, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:20:49: error: ‘size_t’ has not been declared bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, ^ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:20:65: error: ‘size_t’ has not been declared bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, ^ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: In function ‘void* bsearch(const void*, const void*, int, int, __compar_fn_t)’: /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:23:3: error: ‘size_t’ was not declared in this scope size_t __l, __u, __idx; ^ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:27:3: error: ‘__l’ was not declared in this scope __l = 0; ^ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:28:3: error: ‘__u’ was not declared in this scope __u = __nmemb; ^ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:31:7: error: ‘__idx’ was not declared in this scope __idx = (__l + __u) / 2; ^ In file included from X.cpp:2:0: /usr/include/stdlib.h: At global scope: /usr/include/stdlib.h:765:34: error: ‘size_t’ has not been declared extern void qsort (void *__base, size_t __nmemb, size_t __size, ^ /usr/include/stdlib.h:765:50: error: ‘size_t’ has not been declared extern void qsort (void *__base, size_t __nmemb, size_t __size, ^ /usr/include/stdlib.h:768:36: error: ‘size_t’ has not been declared extern void qsort_r (void *__base, size_t __nmemb, size_t __size, ^ /usr/include/stdlib.h:768:52: error: ‘size_t’ has not been declared extern void qsort_r (void *__base, size_t __nmemb, size_t __size, ^ /usr/include/stdlib.h:844:6: error: ‘size_t’ has not been declared size_t __len) __THROW __nonnull ((3, 4, 5)); ^ /usr/include/stdlib.h:847:6: error: ‘size_t’ has not been declared size_t __len) __THROW __nonnull ((3, 4, 5)); ^ /usr/include/stdlib.h:851:31: error: ‘size_t’ has not been declared char *__restrict __buf, size_t __len) ^ /usr/include/stdlib.h:855:31: error: ‘size_t’ has not been declared char *__restrict __buf, size_t __len) ^ /usr/include/stdlib.h:863:36: error: ‘size_t’ has not been declared extern int mblen (const char *__s, size_t __n) __THROW; ^ /usr/include/stdlib.h:867:34: error: ‘size_t’ has not been declared const char *__restrict __s, size_t __n) __THROW; ^ /usr/include/stdlib.h:874:8: error: ‘size_t’ does not name a type extern size_t mbstowcs (wchar_t *__restrict __pwcs, ^ /usr/include/stdlib.h:877:8: error: ‘size_t’ does not name a type extern size_t wcstombs (char *__restrict __s, ^ /usr/include/stdlib.h:940:46: error: ‘size_t’ has not been declared extern int ptsname_r (int __fd, char *__buf, size_t __buflen) ^ In file included from /usr/include/stdlib.h:959:0, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/stdlib.h:25:9: error: ‘size_t’ has not been declared size_t __resolvedlen) __THROW __wur; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/stdlib.h:29:14: error: ‘size_t’ has not been declared extern char *__REDIRECT_NTH (__realpath_chk_warn, ^ In file included from /usr/include/stdlib.h:959:0, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/stdlib.h: In function ‘char* realpath(const char*, char*)’: /usr/include/x86_64-linux-gnu/bits/stdlib.h:39:30: error: ‘size_t’ was not declared in this scope if (__bos (__resolved) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h: At global scope: /usr/include/x86_64-linux-gnu/bits/stdlib.h:52:52: error: ‘size_t’ has not been declared extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:53:8: error: ‘size_t’ has not been declared size_t __nreal) __THROW __nonnull ((2)); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/stdlib.h:54:12: error: ‘size_t’ has not been declared extern int __REDIRECT_NTH (__ptsname_r_alias, (int __fd, char *__buf, ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:57:12: error: ‘size_t’ has not been declared extern int __REDIRECT_NTH (__ptsname_r_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:57:12: error: ‘size_t’ has not been declared extern int __REDIRECT_NTH (__ptsname_r_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:64:1: error: ‘size_t’ has not been declared __NTH (ptsname_r (int __fd, char *__buf, size_t __buflen)) ^ In file included from /usr/include/stdlib.h:959:0, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/stdlib.h: In function ‘int ptsname_r(int, char*, int)’: /usr/include/x86_64-linux-gnu/bits/stdlib.h:66:25: error: ‘size_t’ was not declared in this scope if (__bos (__buf) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h: At global scope: /usr/include/x86_64-linux-gnu/bits/stdlib.h:77:54: error: ‘size_t’ has not been declared extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h: In function ‘int wctomb(char*, wchar_t)’: /usr/include/x86_64-linux-gnu/bits/stdlib.h:92:23: error: ‘size_t’ was not declared in this scope if (__bos (__s) != (size_t) -1 && __STDLIB_MB_LEN_MAX > __bos (__s)) ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h: At global scope: /usr/include/x86_64-linux-gnu/bits/stdlib.h:98:8: error: ‘size_t’ does not name a type extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:101:8: error: ‘size_t’ does not name a type extern size_t __REDIRECT_NTH (__mbstowcs_alias, ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:105:8: error: ‘size_t’ does not name a type extern size_t __REDIRECT_NTH (__mbstowcs_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:112:20: error: ‘size_t’ does not name a type __fortify_function size_t ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:130:8: error: ‘size_t’ does not name a type extern size_t __wcstombs_chk (char *__restrict __dst, ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:133:8: error: ‘size_t’ does not name a type extern size_t __REDIRECT_NTH (__wcstombs_alias, ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:137:8: error: ‘size_t’ does not name a type extern size_t __REDIRECT_NTH (__wcstombs_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/stdlib.h:143:20: error: ‘size_t’ does not name a type __fortify_function size_t ^ In file included from X.cpp:3:0: /usr/include/string.h:47:8: error: ‘size_t’ has not been declared size_t __n) __THROW __nonnull ((1, 2)); ^ /usr/include/string.h:50:56: error: ‘size_t’ has not been declared extern void *memmove (void *__dest, const void *__src, size_t __n) ^ /usr/include/string.h:59:18: error: ‘size_t’ has not been declared int __c, size_t __n) ^ /usr/include/string.h:66:42: error: ‘size_t’ has not been declared extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1)); ^ /usr/include/string.h:69:56: error: ‘size_t’ has not been declared extern int memcmp (const void *__s1, const void *__s2, size_t __n) ^ /usr/include/string.h:76:42: error: ‘size_t’ has not been declared extern void *memchr (void *__s, int __c, size_t __n) ^ /usr/include/string.h:78:54: error: ‘size_t’ has not been declared extern const void *memchr (const void *__s, int __c, size_t __n) ^ /usr/include/string.h:83:29: error: ‘size_t’ has not been declared memchr (void *__s, int __c, size_t __n) __THROW ^ /usr/include/string.h:89:35: error: ‘size_t’ has not been declared memchr (const void *__s, int __c, size_t __n) __THROW ^ /usr/include/string.h:116:49: error: ‘size_t’ has not been declared extern "C++" void *memrchr (void *__s, int __c, size_t __n) ^ /usr/include/string.h:118:61: error: ‘size_t’ has not been declared extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) ^ /usr/include/string.h:133:39: error: ‘size_t’ has not been declared const char *__restrict __src, size_t __n) ^ /usr/include/string.h:141:9: error: ‘size_t’ has not been declared size_t __n) __THROW __nonnull ((1, 2)); ^ /usr/include/string.h:147:57: error: ‘size_t’ has not been declared extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ /usr/include/string.h:154:8: error: ‘size_t’ does not name a type extern size_t strxfrm (char *__restrict __dest, ^ /usr/include/string.h:169:8: error: ‘size_t’ does not name a type extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, ^ /usr/include/string.h:184:45: error: ‘size_t’ has not been declared extern char *strndup (const char *__string, size_t __n) ^ /usr/include/string.h:285:8: error: ‘size_t’ does not name a type extern size_t strcspn (const char *__s, const char *__reject) ^ /usr/include/string.h:289:8: error: ‘size_t’ does not name a type extern size_t strspn (const char *__s, const char *__accept) ^ /usr/include/string.h:382:46: error: ‘size_t’ has not been declared extern void *memmem (const void *__haystack, size_t __haystacklen, ^ /usr/include/string.h:383:30: error: ‘size_t’ has not been declared const void *__needle, size_t __needlelen) ^ /usr/include/string.h:389:34: error: ‘size_t’ has not been declared const void *__restrict __src, size_t __n) ^ /usr/include/string.h:392:39: error: ‘size_t’ has not been declared const void *__restrict __src, size_t __n) ^ /usr/include/string.h:399:8: error: ‘size_t’ does not name a type extern size_t strlen (const char *__s) ^ /usr/include/string.h:406:8: error: ‘size_t’ does not name a type extern size_t strnlen (const char *__string, size_t __maxlen) ^ /usr/include/string.h:438:53: error: ‘size_t’ has not been declared extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) ^ /usr/include/string.h:451:33: error: ‘size_t’ has not been declared extern void __bzero (void *__s, size_t __n) __THROW __nonnull ((1)); ^ /usr/include/string.h:455:53: error: ‘size_t’ has not been declared extern void bcopy (const void *__src, void *__dest, size_t __n) ^ /usr/include/string.h:459:31: error: ‘size_t’ has not been declared extern void bzero (void *__s, size_t __n) __THROW __nonnull ((1)); ^ /usr/include/string.h:462:54: error: ‘size_t’ has not been declared extern int bcmp (const void *__s1, const void *__s2, size_t __n) ^ /usr/include/string.h:538:61: error: ‘size_t’ has not been declared extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ /usr/include/string.h:550:6: error: ‘size_t’ has not been declared size_t __n, __locale_t __loc) ^ /usr/include/string.h:575:34: error: ‘size_t’ has not been declared const char *__restrict __src, size_t __n) ^ /usr/include/string.h:578:39: error: ‘size_t’ has not been declared const char *__restrict __src, size_t __n) ^ /usr/include/string.h:591:34: error: ‘size_t’ has not been declared extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1)); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/string3.h:48:1: error: ‘size_t’ has not been declared __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, ^ /usr/include/x86_64-linux-gnu/bits/string3.h:55:1: error: ‘size_t’ has not been declared __NTH (memmove (void *__dest, const void *__src, size_t __len)) ^ /usr/include/x86_64-linux-gnu/bits/string3.h:62:1: error: ‘size_t’ has not been declared __NTH (mempcpy (void *__restrict __dest, const void *__restrict __src, ^ /usr/include/x86_64-linux-gnu/bits/string3.h:76:1: error: ‘size_t’ has not been declared __NTH (memset (void *__dest, int __ch, size_t __len)) ^ /usr/include/x86_64-linux-gnu/bits/string3.h:89:1: error: ‘size_t’ has not been declared __NTH (bcopy (const void *__src, void *__dest, size_t __len)) ^ /usr/include/x86_64-linux-gnu/bits/string3.h:95:1: error: ‘size_t’ has not been declared __NTH (bzero (void *__dest, size_t __len)) ^ /usr/include/x86_64-linux-gnu/bits/string3.h:117:1: error: ‘size_t’ has not been declared __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ In file included from /usr/include/string.h:640:0, from X.cpp:3: /usr/include/x86_64-linux-gnu/bits/string3.h:124:62: error: ‘size_t’ has not been declared extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n, ^ /usr/include/x86_64-linux-gnu/bits/string3.h:125:8: error: ‘size_t’ has not been declared size_t __destlen) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/string3.h:126:14: error: ‘size_t’ has not been declared extern char *__REDIRECT_NTH (__stpncpy_alias, (char *__dest, const char *__src, ^ /usr/include/x86_64-linux-gnu/bits/string3.h:130:1: error: ‘size_t’ has not been declared __NTH (stpncpy (char *__dest, const char *__src, size_t __n)) ^ In file included from /usr/include/string.h:640:0, from X.cpp:3: /usr/include/x86_64-linux-gnu/bits/string3.h: In function ‘char* stpncpy(char*, const char*, int)’: /usr/include/x86_64-linux-gnu/bits/string3.h:132:26: error: ‘size_t’ was not declared in this scope if (__bos (__dest) != (size_t) -1 ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/string3.h: At global scope: /usr/include/x86_64-linux-gnu/bits/string3.h:147:1: error: ‘size_t’ has not been declared __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from /usr/include/c++/4.9/cwchar:44:0, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/wchar.h:151:38: error: ‘size_t’ has not been declared const wchar_t *__restrict __src, size_t __n) ^ /usr/include/wchar.h:159:38: error: ‘size_t’ has not been declared const wchar_t *__restrict __src, size_t __n) ^ /usr/include/wchar.h:166:63: error: ‘size_t’ has not been declared extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) ^ /usr/include/wchar.h:176:4: error: ‘size_t’ has not been declared size_t __n) __THROW; ^ /usr/include/wchar.h:186:6: error: ‘size_t’ has not been declared size_t __n, __locale_t __loc) __THROW; ^ /usr/include/wchar.h:196:8: error: ‘size_t’ does not name a type extern size_t wcsxfrm (wchar_t *__restrict __s1, ^ /usr/include/wchar.h:212:8: error: ‘size_t’ does not name a type extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, ^ /usr/include/wchar.h:252:8: error: ‘size_t’ does not name a type extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) ^ /usr/include/wchar.h:256:8: error: ‘size_t’ does not name a type extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) ^ /usr/include/wchar.h:287:8: error: ‘size_t’ does not name a type extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__; ^ /usr/include/wchar.h:306:8: error: ‘size_t’ does not name a type extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) ^ /usr/include/wchar.h:314:59: error: ‘size_t’ has not been declared extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) ^ /usr/include/wchar.h:317:10: error: ‘size_t’ has not been declared size_t __n) ^ /usr/include/wchar.h:325:63: error: ‘size_t’ has not been declared extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) ^ /usr/include/wchar.h:330:37: error: ‘size_t’ has not been declared const wchar_t *__restrict __s2, size_t __n) __THROW; ^ /usr/include/wchar.h:334:63: error: ‘size_t’ has not been declared extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) ^ /usr/include/wchar.h:338:53: error: ‘size_t’ has not been declared extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW; ^ /usr/include/wchar.h:345:38: error: ‘size_t’ has not been declared const wchar_t *__restrict __s2, size_t __n) ^ /usr/include/wchar.h:365:8: error: ‘size_t’ does not name a type extern size_t mbrtowc (wchar_t *__restrict __pwc, ^ /usr/include/wchar.h:370:8: error: ‘size_t’ does not name a type extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, ^ /usr/include/wchar.h:374:8: error: ‘size_t’ does not name a type extern size_t __mbrlen (const char *__restrict __s, size_t __n, ^ /usr/include/wchar.h:376:8: error: ‘size_t’ does not name a type extern size_t mbrlen (const char *__restrict __s, size_t __n, ^ /usr/include/wchar.h:398:17: error: ‘size_t’ does not name a type __extern_inline size_t ^ /usr/include/wchar.h:408:8: error: ‘size_t’ does not name a type extern size_t mbsrtowcs (wchar_t *__restrict __dst, ^ /usr/include/wchar.h:414:8: error: ‘size_t’ does not name a type extern size_t wcsrtombs (char *__restrict __dst, ^ /usr/include/wchar.h:423:8: error: ‘size_t’ does not name a type extern size_t mbsnrtowcs (wchar_t *__restrict __dst, ^ /usr/include/wchar.h:429:8: error: ‘size_t’ does not name a type extern size_t wcsnrtombs (char *__restrict __dst, ^ /usr/include/wchar.h:443:42: error: ‘size_t’ has not been declared extern int wcswidth (const wchar_t *__s, size_t __n) __THROW; ^ /usr/include/wchar.h:572:38: error: ‘size_t’ has not been declared const wchar_t *__restrict __src, size_t __n) ^ /usr/include/wchar.h:580:53: error: ‘size_t’ has not been declared extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __THROW; ^ /usr/include/wchar.h:604:47: error: ‘size_t’ has not been declared extern int swprintf (wchar_t *__restrict __s, size_t __n, ^ /usr/include/wchar.h:625:48: error: ‘size_t’ has not been declared extern int vswprintf (wchar_t *__restrict __s, size_t __n, ^ /usr/include/wchar.h:855:8: error: ‘size_t’ does not name a type extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, ^ /usr/include/wchar.h:865:8: error: ‘size_t’ does not name a type extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h:25:43: error: ‘size_t’ has not been declared const wchar_t *__restrict __s2, size_t __n, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:26:11: error: ‘size_t’ has not been declared size_t __ns1) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:27:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmemcpy_alias, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:31:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmemcpy_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:31:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmemcpy_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:39:1: error: ‘size_t’ has not been declared __NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* wmemcpy(wchar_t*, const wchar_t*, int)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:42:25: error: ‘size_t’ was not declared in this scope if (__bos0 (__s1) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:42:25: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:57:5: error: ‘size_t’ has not been declared size_t __n, size_t __ns1) __THROW; ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:57:17: error: ‘size_t’ has not been declared size_t __n, size_t __ns1) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:58:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmemmove_alias, (wchar_t *__s1, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:61:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmemmove_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:61:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmemmove_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:68:1: error: ‘size_t’ has not been declared __NTH (wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n)) ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* wmemmove(wchar_t*, const wchar_t*, int)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:70:25: error: ‘size_t’ was not declared in this scope if (__bos0 (__s1) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:70:25: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:86:37: error: ‘size_t’ has not been declared const wchar_t *__restrict __s2, size_t __n, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:87:5: error: ‘size_t’ has not been declared size_t __ns1) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:88:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmempcpy_alias, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:92:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmempcpy_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:92:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmempcpy_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:100:1: error: ‘size_t’ has not been declared __NTH (wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* wmempcpy(wchar_t*, const wchar_t*, int)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:103:25: error: ‘size_t’ was not declared in this scope if (__bos0 (__s1) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:103:25: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:118:59: error: ‘size_t’ has not been declared extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:119:11: error: ‘size_t’ has not been declared size_t __ns) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:120:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmemset_alias, (wchar_t *__s, wchar_t __c, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:122:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmemset_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:122:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wmemset_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:129:1: error: ‘size_t’ has not been declared __NTH (wmemset (wchar_t *__s, wchar_t __c, size_t __n)) ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* wmemset(wchar_t*, wchar_t, int)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:131:24: error: ‘size_t’ was not declared in this scope if (__bos0 (__s) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:131:24: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:146:10: error: ‘size_t’ has not been declared size_t __n) __THROW; ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* wcscpy(wchar_t*, const wchar_t*)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:154:26: error: ‘size_t’ was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:154:26: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:162:10: error: ‘size_t’ has not been declared size_t __destlen) __THROW; ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* wcpcpy(wchar_t*, const wchar_t*)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:170:26: error: ‘size_t’ was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:170:26: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:177:44: error: ‘size_t’ has not been declared const wchar_t *__restrict __src, size_t __n, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:178:11: error: ‘size_t’ has not been declared size_t __destlen) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:179:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wcsncpy_alias, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:183:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wcsncpy_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:183:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wcsncpy_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:191:1: error: ‘size_t’ has not been declared __NTH (wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* wcsncpy(wchar_t*, const wchar_t*, int)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:194:26: error: ‘size_t’ was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:194:26: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:208:44: error: ‘size_t’ has not been declared const wchar_t *__restrict __src, size_t __n, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:209:11: error: ‘size_t’ has not been declared size_t __destlen) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:210:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wcpncpy_alias, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:214:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wcpncpy_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:214:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wcpncpy_chk_warn, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:222:1: error: ‘size_t’ has not been declared __NTH (wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* wcpncpy(wchar_t*, const wchar_t*, int)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:225:26: error: ‘size_t’ was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:225:26: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:240:10: error: ‘size_t’ has not been declared size_t __destlen) __THROW; ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* wcscat(wchar_t*, const wchar_t*)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:248:26: error: ‘size_t’ was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:248:26: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:256:11: error: ‘size_t’ has not been declared size_t __n, size_t __destlen) __THROW; ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:256:23: error: ‘size_t’ has not been declared size_t __n, size_t __destlen) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:257:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT_NTH (__wcsncat_alias, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:263:1: error: ‘size_t’ has not been declared __NTH (wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* wcsncat(wchar_t*, const wchar_t*, int)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:266:26: error: ‘size_t’ was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:266:26: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:273:53: error: ‘size_t’ has not been declared extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:274:19: error: ‘size_t’ has not been declared int __flag, size_t __s_len, ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:278:12: error: ‘size_t’ has not been declared extern int __REDIRECT_NTH_LDBL (__swprintf_alias, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:285:1: error: ‘size_t’ has not been declared __NTH (swprintf (wchar_t *__restrict __s, size_t __n, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘int swprintf(wchar_t*, int, const wchar_t*, ...)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:288:23: error: ‘size_t’ was not declared in this scope if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:288:23: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:303:54: error: ‘size_t’ has not been declared extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:304:20: error: ‘size_t’ has not been declared int __flag, size_t __s_len, ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:309:12: error: ‘size_t’ has not been declared extern int __REDIRECT_NTH_LDBL (__vswprintf_alias, ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:315:1: error: ‘size_t’ has not been declared __NTH (vswprintf (wchar_t *__restrict __s, size_t __n, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘int vswprintf(wchar_t*, int, const wchar_t*, __va_list_tag*)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:318:23: error: ‘size_t’ was not declared in this scope if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:318:23: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:372:56: error: ‘size_t’ has not been declared extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:377:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT (__fgetws_chk_warn, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* fgetws(wchar_t*, int, __FILE*)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:386:23: error: ‘size_t’ was not declared in this scope if (__bos (__s) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:386:23: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h:392:20: error: expected ‘)’ before ‘__n’ if ((size_t) __n > __bos (__s) / sizeof (wchar_t)) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope: /usr/include/x86_64-linux-gnu/bits/wchar2.h:400:65: error: ‘size_t’ has not been declared extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from X.cpp:2: /usr/include/x86_64-linux-gnu/bits/wchar2.h:407:17: error: ‘size_t’ has not been declared extern wchar_t *__REDIRECT (__fgetws_unlocked_chk_warn, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61, from X.cpp:8: /usr/include/x86_64-linux-gnu/bits/wchar2.h: In function ‘wchar_t* fgetws_unlocked(wchar_t*, int, __FILE*)’: /usr/include/x86_64-linux-gnu/bits/wchar2.h:417:23: error: ‘size_t’ was not declared in this scope if (__bos (__s) != (size_t) -1) ^ /usr/include/x86_64-linux-gnu/bits/wchar2.h:417:23: note: suggested alternatives: In file included from /usr/include/c++/4.9/bits/stl_algobase.h:59:0, from /usr/include/c++/4.9/deque:60, from /usr/include/c++/4.9/stack:60, from X.cpp:6: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ typedef __SIZE_TYPE__ size_t; ^ /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:188:26: note: ‘std::size_t’ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.9/cwchar:44, from /usr/include/c++/4.9/bits/postypes.h:40, from /usr/include/c++/4.9/bits/char_traits.h:40, from /usr/include/c++/4.9/string:40, from /usr/include/c++/4.9/stdexcept:39, from /usr/include/c++/4.9/array:38, from /usr/include/c++/4.9/tuple:39, from /usr/include/c++/4.9/bits/stl_map.h:63, from /usr/include/c++/4.9/map:61,