fork(3) download
  1. CodeChef submission 19424932 (C++14) plaintext list. Status: AC, problem PROBLEMS, contest AUG18TST. By mgch (mgch), 2018-08-02 20:50:38.
  2. #include <bits/stdc++.h>
  3.  
  4. using namespace std;
  5.  
  6. const int MOD = 1000000007;
  7. const int MaxN = (int)1e5 + 10;
  8. const int INF = (int)1e9;
  9.  
  10.  
  11. long long readInt(long long l,long long r,char endd){
  12. long long x=0;
  13. int cnt=0;
  14. int fi=-1;
  15. bool is_neg=false;
  16. while(true){
  17. char g=getchar();
  18. if(g=='-'){
  19. assert(fi==-1);
  20. is_neg=true;
  21. continue;
  22. }
  23. if('0'<=g && g<='9'){
  24. x*=10;
  25. x+=g-'0';
  26. if(cnt==0){
  27. fi=g-'0';
  28. }
  29. cnt++;
  30. assert(fi!=0 || cnt==1);
  31. assert(fi!=0 || is_neg==false);
  32.  
  33. assert(!(cnt>19 || ( cnt==19 && fi>1) ));
  34. } else if(g==endd){
  35. if(is_neg){
  36. x= -x;
  37. }
  38. assert(l<=x && x<=r);
  39. return x;
  40. } else {
  41. assert(false);
  42. }
  43. }
  44. }
  45. string readString(int l,int r,char endd){
  46. string ret="";
  47. int cnt=0;
  48. while(true){
  49. char g=getchar();
  50. assert(g!=-1);
  51. if(g==endd){
  52. break;
  53. }
  54. cnt++;
  55. ret+=g;
  56. }
  57. assert(l<=cnt && cnt<=r);
  58. return ret;
  59. }
  60. long long readIntSp(long long l,long long r){
  61. return readInt(l,r,' ');
  62. }
  63. long long readIntLn(long long l,long long r){
  64. return readInt(l,r,'\n');
  65. }
  66. string readStringLn(int l,int r){
  67. return readString(l,r,'\n');
  68. }
  69. string readStringSp(int l,int r){
  70. return readString(l,r,' ');
  71. }
  72.  
  73. int a[100002][32];
  74. int b[100002][32];
  75. vector < int > f[32];
  76.  
  77. void solve() {
  78. int p = readIntSp(1, 100000);
  79. int s = readIntLn(2, 30);
  80. for (int i = 1; i <= p; ++i) {
  81. for (int j = 1; j <= s; ++j) {
  82. if (j < s) {
  83. a[i][j] = readIntSp(1, 100);
  84. } else {
  85. a[i][j] = readIntLn(1, 100);
  86. }
  87. }
  88. for (int j = 1; j <= s; ++j) {
  89. if (j < s) {
  90. b[i][j] = readIntSp(1, 1000);
  91. } else {
  92. b[i][j] = readIntLn(1, 1000);
  93. }
  94. }
  95. for (int j = 1; j <= s; ++j) {
  96. for (int k = 1; k + 1 <= s; ++k) {
  97. if (a[i][k] < a[i][k + 1]) {
  98. swap(a[i][k], a[i][k + 1]);
  99. swap(b[i][k], b[i][k + 1]);
  100. }
  101. }
  102. }
  103. int cnt = 0;
  104. for (int k = 1; k + 1 <= s; ++k) {
  105. assert (a[i][k] != a[i][k + 1]);
  106. if (b[i][k] < b[i][k + 1]) {
  107. ++cnt;
  108. }
  109. }
  110. f[cnt].push_back(i);
  111. }
  112. vector < int > res;
  113. for (int i = 0; i <= 30; ++i) {
  114. for (auto &it : f[i]) {
  115. res.push_back(it);
  116. }
  117. }
  118. for (auto it : res) {
  119. cout << it << "\n";
  120. }
  121. }
  122.  
  123. int main() {
  124. // freopen("input.txt", "r", stdin);
  125. solve();
  126. assert (getchar() == EOF);
  127. return 0;
  128. }
  129.  
  130.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
3 3
16 24 60
498 861 589
14 24 62
72 557 819
16 15 69
435 779 232
compilation info
prog.cpp:1:123: error: invalid digit "8" in octal constant
 CodeChef submission 19424932 (C++14) plaintext list. Status: AC, problem PROBLEMS, contest AUG18TST. By mgch (mgch), 2018-08-02 20:50:38.
                                                                                                                           ^~
prog.cpp:1:1: error: ‘CodeChef’ does not name a type
 CodeChef submission 19424932 (C++14) plaintext list. Status: AC, problem PROBLEMS, contest AUG18TST. By mgch (mgch), 2018-08-02 20:50:38.
 ^~~~~~~~
In file included from /usr/include/c++/6/cmath:43:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:41,
                 from prog.cpp:2:
/usr/include/c++/6/ext/type_traits.h:162:35: error: ‘__gnu_cxx::__is_null_pointer’ declared as an ‘inline’ variable
   __is_null_pointer(std::nullptr_t)
                                   ^
/usr/include/c++/6/ext/type_traits.h:162:35: error: ‘bool __gnu_cxx::__is_null_pointer’ redeclared as different kind of symbol
/usr/include/c++/6/ext/type_traits.h:157:5: note: previous declaration ‘template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)’
     __is_null_pointer(_Type)
     ^~~~~~~~~~~~~~~~~
/usr/include/c++/6/ext/type_traits.h:162:21: error: ‘nullptr_t’ is not a member of ‘std’
   __is_null_pointer(std::nullptr_t)
                     ^~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:359:31: error: ‘std::size_t’ has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^~~~~~
/usr/include/c++/6/type_traits:360:25: error: ‘_Size’ was not declared in this scope
     struct is_array<_Tp[_Size]>
                         ^~~~~
/usr/include/c++/6/type_traits:360:31: error: template argument 1 is invalid
     struct is_array<_Tp[_Size]>
                               ^
/usr/include/c++/6/type_traits:558:37: error: ‘nullptr_t’ is not a member of ‘std’
     struct __is_null_pointer_helper<std::nullptr_t>
                                     ^~~
/usr/include/c++/6/type_traits:558:37: note: suggested alternative:
In file included from /usr/include/c++/6/cstddef:50:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:45,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:436:29: note:   ‘nullptr_t’
   typedef decltype(nullptr) nullptr_t;
                             ^~~~~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:558:37: error: ‘nullptr_t’ is not a member of ‘std’
     struct __is_null_pointer_helper<std::nullptr_t>
                                     ^~~
/usr/include/c++/6/type_traits:558:37: note: suggested alternative:
In file included from /usr/include/c++/6/cstddef:50:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:45,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:436:29: note:   ‘nullptr_t’
   typedef decltype(nullptr) nullptr_t;
                             ^~~~~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:558:51: error: template argument 1 is invalid
     struct __is_null_pointer_helper<std::nullptr_t>
                                                   ^
/usr/include/c++/6/type_traits:1478:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t, __alignof__(_Tp)> { };
                                ^~~
/usr/include/c++/6/type_traits:1478:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1478:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t, __alignof__(_Tp)> { };
                                ^~~
/usr/include/c++/6/type_traits:1478:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1478:61: error: template argument 1 is invalid
     : public integral_constant<std::size_t, __alignof__(_Tp)> { };
                                                             ^
/usr/include/c++/6/type_traits:1478:61: note: invalid template non-type parameter
/usr/include/c++/6/type_traits:1483:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t, 0> { };
                                ^~~
/usr/include/c++/6/type_traits:1483:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1483:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t, 0> { };
                                ^~~
/usr/include/c++/6/type_traits:1483:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1483:46: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 0> { };
                                              ^
/usr/include/c++/6/type_traits:1483:46: note: invalid template non-type parameter
/usr/include/c++/6/type_traits:1485:31: error: ‘std::size_t’ has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^~~~~~
/usr/include/c++/6/type_traits:1486:21: error: ‘_Size’ was not declared in this scope
     struct rank<_Tp[_Size]>
                     ^~~~~
/usr/include/c++/6/type_traits:1486:27: error: template argument 1 is invalid
     struct rank<_Tp[_Size]>
                           ^
/usr/include/c++/6/type_traits:1487:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                ^~~
/usr/include/c++/6/type_traits:1487:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1487:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                ^~~
/usr/include/c++/6/type_traits:1487:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1487:65: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                                                 ^
/usr/include/c++/6/type_traits:1487:65: note: invalid template non-type parameter
/usr/include/c++/6/type_traits:1491:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                ^~~
/usr/include/c++/6/type_traits:1491:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1491:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                ^~~
/usr/include/c++/6/type_traits:1491:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1491:65: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                                                 ^
/usr/include/c++/6/type_traits:1491:65: note: invalid template non-type parameter
/usr/include/c++/6/type_traits:1496:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t, 0> { };
                                ^~~
/usr/include/c++/6/type_traits:1496:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1496:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t, 0> { };
                                ^~~
/usr/include/c++/6/type_traits:1496:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1496:46: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 0> { };
                                              ^
/usr/include/c++/6/type_traits:1496:46: note: invalid template non-type parameter
/usr/include/c++/6/type_traits:1498:47: error: ‘std::size_t’ has not been declared
   template<typename _Tp, unsigned _Uint, std::size_t _Size>
                                               ^~~~~~
/usr/include/c++/6/type_traits:1499:23: error: ‘_Size’ was not declared in this scope
     struct extent<_Tp[_Size], _Uint>
                       ^~~~~
/usr/include/c++/6/type_traits:1499:36: error: template argument 1 is invalid
     struct extent<_Tp[_Size], _Uint>
                                    ^
/usr/include/c++/6/type_traits:1500:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t,
                                ^~~
/usr/include/c++/6/type_traits:1500:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1500:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t,
                                ^~~
/usr/include/c++/6/type_traits:1500:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1501:24: error: ‘_Size’ was not declared in this scope
           _Uint == 0 ? _Size : extent<_Tp,
                        ^~~~~
/usr/include/c++/6/type_traits:1502:28: error: template argument 1 is invalid
           _Uint - 1>::value>
                            ^
/usr/include/c++/6/type_traits:1502:28: note: invalid template non-type parameter
/usr/include/c++/6/type_traits:1507:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t,
                                ^~~
/usr/include/c++/6/type_traits:1507:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1507:32: error: ‘size_t’ is not a member of ‘std’
     : public integral_constant<std::size_t,
                                ^~~
/usr/include/c++/6/type_traits:1507:32: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/type_traits:1509:31: error: template argument 1 is invalid
              _Uint - 1>::value>
                               ^
/usr/include/c++/6/type_traits:1509:31: note: invalid template non-type parameter
/usr/include/c++/6/type_traits:1958:31: error: ‘std::size_t’ has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^~~~~~
/usr/include/c++/6/type_traits:1959:30: error: ‘_Size’ was not declared in this scope
     struct remove_extent<_Tp[_Size]>
                              ^~~~~
/usr/include/c++/6/type_traits:1959:36: error: template argument 1 is invalid
     struct remove_extent<_Tp[_Size]>
                                    ^
/usr/include/c++/6/type_traits:1971:31: error: ‘std::size_t’ has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^~~~~~
/usr/include/c++/6/type_traits:1972:35: error: ‘_Size’ was not declared in this scope
     struct remove_all_extents<_Tp[_Size]>
                                   ^~~~~
/usr/include/c++/6/type_traits:1972:41: error: template argument 1 is invalid
     struct remove_all_extents<_Tp[_Size]>
                                         ^
/usr/include/c++/6/type_traits:2030:17: error: ‘std::size_t’ has not been declared
   template<std::size_t _Len>
                 ^~~~~~
/usr/include/c++/6/type_traits:2035:23: error: ‘_Len’ was not declared in this scope
  unsigned char __data[_Len];
                       ^~~~
/usr/include/c++/6/type_traits:2050:17: error: ‘std::size_t’ has not been declared
   template<std::size_t _Len, std::size_t _Align =
                 ^~~~~~
/usr/include/c++/6/type_traits:2050:35: error: ‘std::size_t’ has not been declared
   template<std::size_t _Len, std::size_t _Align =
                                   ^~~~~~
/usr/include/c++/6/type_traits:2051:48: error: ‘_Len’ was not declared in this scope
     __alignof__(typename __aligned_storage_msa<_Len>::__type)>
                                                ^~~~
/usr/include/c++/6/type_traits:2051:52: error: template argument 1 is invalid
     __alignof__(typename __aligned_storage_msa<_Len>::__type)>
                                                    ^
/usr/include/c++/6/type_traits:2056:23: error: ‘_Len’ was not declared in this scope
  unsigned char __data[_Len];
                       ^~~~
/usr/include/c++/6/type_traits:2057:37: error: ‘_Align’ was not declared in this scope
  struct __attribute__((__aligned__((_Align)))) { } __align;
                                     ^~~~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/stl_pair.h:85:17: error: ‘std::size_t’ has not been declared
   template<std::size_t...>
                 ^~~~~~
/usr/include/c++/6/bits/stl_pair.h:421:41: error: ‘std::size_t’ has not been declared
       template<typename... _Args1, std::size_t... _Indexes1,
                                         ^~~~~~
/usr/include/c++/6/bits/stl_pair.h:422:41: error: ‘std::size_t’ has not been declared
                typename... _Args2, std::size_t... _Indexes2>
                                         ^~~~~~
/usr/include/c++/6/bits/stl_pair.h:424:27: error: ‘_Indexes1’ was not declared in this scope
              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
                           ^~~~~~~~~
/usr/include/c++/6/bits/stl_pair.h:424:36: error: expected parameter pack before ‘...’
              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
                                    ^~~
/usr/include/c++/6/bits/stl_pair.h:424:39: error: template argument 1 is invalid
              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
                                       ^
/usr/include/c++/6/bits/stl_pair.h:424:55: error: ‘_Indexes2’ was not declared in this scope
              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
                                                       ^~~~~~~~~
/usr/include/c++/6/bits/stl_pair.h:424:64: error: expected parameter pack before ‘...’
              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
                                                                ^~~
/usr/include/c++/6/bits/stl_pair.h:424:67: error: template argument 1 is invalid
              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
                                                                   ^
In file included from /usr/include/c++/6/ios:40:0,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/char_traits.h:104:66: error: ‘std::size_t’ has not been declared
       compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
                                                                  ^~~~~~
/usr/include/c++/6/bits/char_traits.h:106:19: error: ‘size_t’ in namespace ‘std’ does not name a type
       static std::size_t
                   ^~~~~~
/usr/include/c++/6/bits/char_traits.h:110:39: error: ‘std::size_t’ has not been declared
       find(const char_type* __s, std::size_t __n, const char_type& __a);
                                       ^~~~~~
/usr/include/c++/6/bits/char_traits.h:113:57: error: ‘std::size_t’ has not been declared
       move(char_type* __s1, const char_type* __s2, std::size_t __n);
                                                         ^~~~~~
/usr/include/c++/6/bits/char_traits.h:116:57: error: ‘std::size_t’ has not been declared
       copy(char_type* __s1, const char_type* __s2, std::size_t __n);
                                                         ^~~~~~
/usr/include/c++/6/bits/char_traits.h:119:35: error: ‘std::size_t’ has not been declared
       assign(char_type* __s, std::size_t __n, char_type __a);
                                   ^~~~~~
/usr/include/c++/6/bits/char_traits.h:145:64: error: ‘std::size_t’ has not been declared
     compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
                                                                ^~~~~~
/usr/include/c++/6/bits/char_traits.h: In static member function ‘static int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)’:
/usr/include/c++/6/bits/char_traits.h:147:12: error: ‘size_t’ is not a member of ‘std’
       for (std::size_t __i = 0; __i < __n; ++__i)
            ^~~
/usr/include/c++/6/bits/char_traits.h:147:12: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/ios:40:0,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/char_traits.h:147:33: error: ‘__i’ was not declared in this scope
       for (std::size_t __i = 0; __i < __n; ++__i)
                                 ^~~
/usr/include/c++/6/bits/char_traits.h: At global scope:
/usr/include/c++/6/bits/char_traits.h:156:10: error: ‘size_t’ in namespace ‘std’ does not name a type
     std::size_t
          ^~~~~~
/usr/include/c++/6/bits/char_traits.h:169:37: error: ‘std::size_t’ has not been declared
     find(const char_type* __s, std::size_t __n, const char_type& __a)
                                     ^~~~~~
/usr/include/c++/6/bits/char_traits.h: In static member function ‘static const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)’:
/usr/include/c++/6/bits/char_traits.h:171:12: error: ‘size_t’ is not a member of ‘std’
       for (std::size_t __i = 0; __i < __n; ++__i)
            ^~~
/usr/include/c++/6/bits/char_traits.h:171:12: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/ios:40:0,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/char_traits.h:171:33: error: ‘__i’ was not declared in this scope
       for (std::size_t __i = 0; __i < __n; ++__i)
                                 ^~~
/usr/include/c++/6/bits/char_traits.h: At global scope:
/usr/include/c++/6/bits/char_traits.h:180:55: error: ‘std::size_t’ has not been declared
     move(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                       ^~~~~~
/usr/include/c++/6/bits/char_traits.h:189:55: error: ‘std::size_t’ has not been declared
     copy(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                       ^~~~~~
/usr/include/c++/6/bits/char_traits.h:199:33: error: ‘std::size_t’ has not been declared
     assign(char_type* __s, std::size_t __n, char_type __a)
                                 ^~~~~~
In file included from /usr/include/c++/6/ext/new_allocator.h:33:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33,
                 from /usr/include/c++/6/bits/allocator.h:46,
                 from /usr/include/c++/6/string:41,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/new:116:31: error: declaration of ‘operator new’ as non-function
 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                               ^
/usr/include/c++/6/new:116:20: error: ‘size_t’ is not a member of ‘std’
 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                    ^~~
/usr/include/c++/6/new:116:20: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/ext/new_allocator.h:33:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33,
                 from /usr/include/c++/6/bits/allocator.h:46,
                 from /usr/include/c++/6/string:41,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/new:118:33: error: declaration of ‘operator new []’ as non-function
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                                 ^
/usr/include/c++/6/new:118:22: error: ‘size_t’ is not a member of ‘std’
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                      ^~~
/usr/include/c++/6/new:118:22: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/ext/new_allocator.h:33:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33,
                 from /usr/include/c++/6/bits/allocator.h:46,
                 from /usr/include/c++/6/string:41,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/new:125:34: error: ‘std::size_t’ has not been declared
 void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
                                  ^~~~~~
/usr/include/c++/6/new:127:36: error: ‘std::size_t’ has not been declared
 void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
                                    ^~~~~~
/usr/include/c++/6/new:130:25: error: declaration of ‘operator new’ as non-function
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                         ^~~~~~
/usr/include/c++/6/new:130:20: error: ‘size_t’ is not a member of ‘std’
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                    ^~~
/usr/include/c++/6/new:130:20: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/ext/new_allocator.h:33:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33,
                 from /usr/include/c++/6/bits/allocator.h:46,
                 from /usr/include/c++/6/string:41,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/new:130:33: error: expected primary-expression before ‘const’
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                                 ^~~~~
/usr/include/c++/6/new:132:27: error: declaration of ‘operator new []’ as non-function
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                           ^~~~~~
/usr/include/c++/6/new:132:22: error: ‘size_t’ is not a member of ‘std’
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                      ^~~
/usr/include/c++/6/new:132:22: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/ext/new_allocator.h:33:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33,
                 from /usr/include/c++/6/bits/allocator.h:46,
                 from /usr/include/c++/6/string:41,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/new:132:35: error: expected primary-expression before ‘const’
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                                   ^~~~~
/usr/include/c++/6/new:139:34: error: ‘std::size_t’ has not been declared
 void operator delete(void*, std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                                  ^~~~~~
/usr/include/c++/6/new:141:36: error: ‘std::size_t’ has not been declared
 void operator delete[](void*, std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                                    ^~~~~~
/usr/include/c++/6/new:146:32: error: declaration of ‘operator new’ as non-function
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                ^~~~~~
/usr/include/c++/6/new:146:27: error: ‘size_t’ is not a member of ‘std’
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                           ^~~
/usr/include/c++/6/new:146:27: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/ext/new_allocator.h:33:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33,
                 from /usr/include/c++/6/bits/allocator.h:46,
                 from /usr/include/c++/6/string:41,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/new:146:40: error: expected primary-expression before ‘void’
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                        ^~~~
/usr/include/c++/6/new:148:34: error: declaration of ‘operator new []’ as non-function
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                  ^~~~~~
/usr/include/c++/6/new:148:29: error: ‘size_t’ is not a member of ‘std’
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                             ^~~
/usr/include/c++/6/new:148:29: note: suggested alternative:
In file included from /usr/include/signal.h:316:0,
                 from /usr/include/c++/6/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
                 from prog.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/include/c++/6/ext/new_allocator.h:33:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33,
                 from /usr/include/c++/6/bits/allocator.h:46,
                 from /usr/include/c++/6/string:41,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/new:148:42: error: expected primary-expression before ‘void’
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                          ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33:0,
                 from /usr/include/c++/6/bits/allocator.h:46,
                 from /usr/include/c++/6/string:41,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/ext/new_allocator.h:44:14: error: ‘std::size_t’ has not been declared
   using std::size_t;
              ^~~~~~
/usr/include/c++/6/ext/new_allocator.h:45:14: error: ‘std::ptrdiff_t’ has not been declared
   using std::ptrdiff_t;
              ^~~~~~~~~
In file included from /usr/include/c++/6/ext/alloc_traits.h:36:0,
                 from /usr/include/c++/6/bits/basic_string.h:40,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/alloc_traits.h:384:36: error: ‘ptrdiff_t’ in namespace ‘std’ does not name a type
       using difference_type = std::ptrdiff_t;
                                    ^~~~~~~~~
/usr/include/c++/6/bits/alloc_traits.h:387:30: error: ‘size_t’ in namespace ‘std’ does not name a type
       using size_type = std::size_t;
                              ^~~~~~
/usr/include/c++/6/bits/alloc_traits.h:415:37: error: ‘size_type’ has not been declared
       allocate(allocator_type& __a, size_type __n)
                                     ^~~~~~~~~
/usr/include/c++/6/bits/alloc_traits.h:429:37: error: ‘size_type’ has not been declared
       allocate(allocator_type& __a, size_type __n, const_void_pointer __hint)
                                     ^~~~~~~~~
/usr/include/c++/6/bits/alloc_traits.h:441:52: error: ‘size_type’ has not been declared
       deallocate(allocator_type& __a, pointer __p, size_type __n)
                                                    ^~~~~~~~~
/usr/include/c++/6/bits/alloc_traits.h:474:14: error: ‘size_type’ does not name a type
       static size_type
              ^~~~~~~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5417:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/ext/string_conversions.h:55:51: error: ‘std::size_t’ has not been declared
     const char* __name, const _CharT* __str, std::size_t* __idx,
                                                   ^~~~~~
/usr/include/c++/6/ext/string_conversions.h:89:48: error: ‘std::size_t’ has not been declared
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
                                                ^~~~~~
/usr/include/c++/6/ext/string_conversions.h:90:31: error: ‘std::size_t’ has not been declared
      __builtin_va_list), std::size_t __n,
                               ^~~~~~
In file included from /usr/include/c++/6/bits/basic_string.h:40:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<char> >’:
/usr/include/c++/6/bits/basic_string.h:75:24:   required from ‘class std::__cxx11::basic_string<char>’
/usr/include/c++/6/bits/basic_string.h:5428:68:   required from here
/usr/include/c++/6/ext/alloc_traits.h:61:53: error: no type named ‘size_type’ in ‘struct std::allocator_traits<std::allocator<char> >’
     typedef typename _Base_type::size_type          size_type;
                                                     ^~~~~~~~~
/usr/include/c++/6/ext/alloc_traits.h:62:53: error: no type named ‘difference_type’ in ‘struct std::allocator_traits<std::allocator<char> >’
     typedef typename _Base_type::difference_type    difference_type;
                                                     ^~~~~~~~~~~~~~~
/usr/include/c++/6/ext/alloc_traits.h:70:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocator<char> >::_Base_type {aka std::allocator_traits<std::allocator<char> >}::max_size’ in ‘__gnu_cxx::__alloc_traits<std::allocator<char> >::_Base_type {aka struct std::allocator_traits<std::allocator<char> >}’
     using _Base_type::max_size;
                       ^~~~~~~~
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/basic_string.h: In function ‘int std::__cxx11::stoi(const string&, size_t*, int)’:
/usr/include/c++/6/bits/basic_string.h:5429:19: error: no matching function for call to ‘__stoa(long int (*)(const char*, char**, int) throw (), const char [5], const char*, size_t*&, int&)’
      __idx, __base); }
                   ^
In file included from /usr/include/c++/6/bits/basic_string.h:5417:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)
     __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
     ^~~~~~
/usr/include/c++/6/ext/string_conversions.h:54:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/basic_string.h:5429:19: note:   cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’
      __idx, __base); }
                   ^
/usr/include/c++/6/bits/basic_string.h: In function ‘long int std::__cxx11::stol(const string&, size_t*, int)’:
/usr/include/c++/6/bits/basic_string.h:5434:22: error: no matching function for call to ‘__stoa(long int (*)(const char*, char**, int) throw (), const char [5], const char*, size_t*&, int&)’
         __idx, __base); }
                      ^
In file included from /usr/include/c++/6/bits/basic_string.h:5417:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)
     __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
     ^~~~~~
/usr/include/c++/6/ext/string_conversions.h:54:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/basic_string.h:5434:22: note:   cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’
         __idx, __base); }
                      ^
/usr/include/c++/6/bits/basic_string.h: In function ‘long unsigned int std::__cxx11::stoul(const string&, size_t*, int)’:
/usr/include/c++/6/bits/basic_string.h:5439:22: error: no matching function for call to ‘__stoa(long unsigned int (*)(const char*, char**, int) throw (), const char [6], const char*, size_t*&, int&)’
         __idx, __base); }
                      ^
In file included from /usr/include/c++/6/bits/basic_string.h:5417:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)
     __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
     ^~~~~~
/usr/include/c++/6/ext/string_conversions.h:54:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/basic_string.h:5439:22: note:   cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’
         __idx, __base); }
                      ^
/usr/include/c++/6/bits/basic_string.h: In function ‘long long int std::__cxx11::stoll(const string&, size_t*, int)’:
/usr/include/c++/6/bits/basic_string.h:5444:22: error: no matching function for call to ‘__stoa(long long int (*)(const char*, char**, int) throw (), const char [6], const char*, size_t*&, int&)’
         __idx, __base); }
                      ^
In file included from /usr/include/c++/6/bits/basic_string.h:5417:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)
     __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
     ^~~~~~
/usr/include/c++/6/ext/string_conversions.h:54:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/basic_string.h:5444:22: note:   cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’
         __idx, __base); }
                      ^
/usr/include/c++/6/bits/basic_string.h: In function ‘long long unsigned int std::__cxx11::stoull(const string&, size_t*, int)’:
/usr/include/c++/6/bits/basic_string.h:5449:22: error: no matching function for call to ‘__stoa(long long unsigned int (*)(const char*, char**, int) throw (), const char [7], const char*, size_t*&, int&)’
         __idx, __base); }
                      ^
In file included from /usr/include/c++/6/bits/basic_string.h:5417:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)
     __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
     ^~~~~~
/usr/include/c++/6/ext/string_conversions.h:54:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/bits/basic_string.h:5449:22: note:   cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’
         __idx, __base); }
                      ^
/usr/include/c++/6/bits/basic_string.h: In function ‘float std::__cxx11::stof(const string&, size_t*)’:
/usr/include/c++/6/bits/basic_string.h:5454:72: error: no matching function for call to ‘__stoa(float (*)(const char*, char**) throw (), const char [5], const char*, size_t*&)’
   { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
                                                                        ^
In file included from /usr/include/c++/6/bits/basic_string.h:5417:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++/6/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)
     __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
     ^~~~~~
/usr/include/c++/6/ext/string_conversions.h:54:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from prog.cpp:2:
/usr/include/c++
stdout
Standard output is empty