Language: C++

Last login: Fri Jan 19 11:09:20 on ttys001
Cider:~ Cider$ cd AtCorder/
Cider:AtCorder Cider$ ls
03b.cpp		VirtuCon	deback.cpp
ABC		a.out		debag.cpp
Cider:AtCorder Cider$ cd ABC/
Cider:ABC Cider$ ls
82.cpp	84.c	84.cpp	84b.cpp	85.cpp
Cider:ABC Cider$ emacs 86a.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86a.cpp -nw
Cider:ABC Cider$ g++ 86a.cpp 
Cider:ABC Cider$ ./a.out
3 4
Even
Cider:ABC Cider$ ./a.out
1 21
Odd
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86a.cpp -nw
Cider:ABC Cider$ emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
Cider:ABC Cider$ ./a.out
1 21
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
Cider:ABC Cider$ ./a.out
1 21
147
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
Cider:ABC Cider$ ./a.out
1 21
99
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
Cider:ABC Cider$ ./a.out
1 21
99
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
Cider:ABC Cider$ ./a.out
1 21
121
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
86b.cpp:10:11: error: cannot convert 'string' (aka
      'basic_string<char, char_traits<char>, allocator<char>
      >') to 'int' without a conversion operator
  int x = (int)a;
          ^~~~~~
1 error generated.
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
86b.cpp:10:7: error: no viable conversion from
      'std::__1::basic_string<char>' to 'int'
  int x = (a + '0');
      ^   ~~~~~~~~~
1 error generated.
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
86b.cpp:11:7: error: cannot convert 'string' (aka
      'basic_string<char, char_traits<char>, allocator<char>
      >') to 'int' without a conversion operator
  x = (int)a;
      ^~~~~~
1 error generated.
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ cd ..
Cider:AtCorder Cider$ cd AOJ
-bash: cd: AOJ: No such file or directory
Cider:AtCorder Cider$ cd 
Cider:~ Cider$ cd AOJ/
Cider:AOJ Cider$ ls
1129.cpp	ITP13a.cpp	algorithm.cpp
1147.cpp	ITP13d.cpp	game.c
ITP11.cpp	ITP14a.cpp	in
ITP11B.cpp	ITP14b.cpp	list.cpp
ITP11c.cpp	ITP14c.cpp	map.cpp
ITP11d.cpp	ITP14d.cpp	score_data
ITP12a.cpp	ITP15a.cpp	set.cpp
ITP12b.cpp	ITP15b.cpp	test.cpp
ITP12c.cpp	ITP15c.cpp	vector.cpp
ITP12d.cpp	a.out
Cider:AOJ Cider$ cd 
Cider:~ Cider$ cd AtCorder/
Cider:AtCorder Cider$ ls
03b.cpp		VirtuCon	deback.cpp
ABC		a.out		debag.cpp
Cider:AtCorder Cider$ cd VirtuCon/
Cider:VirtuCon Cider$ ls
0110a.cpp	0117d.cpp	a.out
0110b.cpp	1223a.cpp	in[i]
0110c.cpp	1223b.cpp	rayu.cpp
0117a.cpp	1223c.cpp	test.cpp
0117b.cpp	1223d.cpp
Cider:VirtuCon Cider$ cat 1223a.cpp 
#include<iostream>
using namespace std;

int main()
{
  int A,B,C,D;
  int Left, Right;

  cin >>A>>B>>C>>D;

  Left = A+B;
  Right = C+D;
  
  if(Left < Right) cout << "Right" << endl;
  if(Left > Right) cout << "Left" << endl;
  if(Left == Right) cout << "Balanced" << endl;

  return 0;

}
Cider:VirtuCon Cider$ cat 0117a.cpp 
#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
using namespace std;

int main()
{
  int dx[] = {-2,-1,1,2,2,1,-1,-2};
  int dy[] = {1,2,2,1,-1,-2,-2,-1};
  string s[9];
  for(int i = 0; i < 9; i++) cin >> s[i];
  for(int i = 0; i < 9; i++){
    string mat;
    mat = s[i];
    sort(mat.begin(), mat.end());
    if(mat != "123456789") {
      cout << "No" << endl;
      return 0;
    }
  }

  for(int i = 0; i < 9; i++){
    vector<int> mat;
    for(int j = 0; j < 9; j++) mat.push_back(s[j][i] - '0');
    sort(mat.begin(), mat.end());
    mat.erase(unique(mat.begin(), mat.end()), mat.end());
    if(mat.size() != 9){
      cout << "No" << endl;
      return 0;
    }
  }

  for(int i = 0; i < 9; i++){
    for(int j = 0; j < 9; j++){
      for(int k = 0; k < 8; k++){
	int y = i + dy[k], x = j + dx[k];
	if(0 <= y && y < 9 && 0 <= x && x < 9){
	  if(s[i][j] == s[y][x]){
	    cout << "No" << endl;
	    return 0;
	  }
	}
      }
    }
  }

  cout << "Yes" << endl;
  return 0;

}
Cider:VirtuCon Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw	(wd: ~/AtCorder/ABC)

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw  (wd: ~/AtCorder/ABC)
(wd now: ~/AtCorder/VirtuCon)
Cider:VirtuCon Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw	(wd: ~/AtCorder/ABC)

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw  (wd: ~/AtCorder/ABC)
(wd now: ~/AtCorder/VirtuCon)
Cider:VirtuCon Cider$ g++ 86b.cpp 
clang: error: no such file or directory: '86b.cpp'
clang: error: no input files
Cider:VirtuCon Cider$ g++ 86b.cpp fg
clang: error: no such file or directory: '86b.cpp'
clang: error: no such file or directory: 'fg'
clang: error: no input files
Cider:VirtuCon Cider$ cd
Cider:~ Cider$ cd AtCorder/
Cider:AtCorder Cider$ ls
03b.cpp		VirtuCon	deback.cpp
ABC		a.out		debag.cpp
Cider:AtCorder Cider$ cd ABC/
Cider:ABC Cider$ g++ 86b.cpp fg
clang: error: no such file or directory: 'fg'
Cider:ABC Cider$ g++ 86b.cpp 
86b.cpp:12:7: error: cannot convert 'string' (aka
      'basic_string<char, char_traits<char>, allocator<char>
      >') to 'int' without a conversion operator
  x = (int)a;
      ^~~~~~
1 error generated.
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
86b.cpp:11:26: warning: multi-character character constant
      [-Wmultichar]
  for(char i = '1'; i <= '100'; i++){
                         ^
86b.cpp:12:10: error: invalid operands to binary expression
      ('string' (aka 'basic_string<char, char_traits<char>,
      allocator<char> >') and 'int')
    if(a == i*i){
       ~ ^  ~~~
86b.cpp:11:23: warning: comparison of constant 3223600 with
      expression of type 'char' is always true
      [-Wtautological-constant-out-of-range-compare]
  for(char i = '1'; i <= '100'; i++){
                    ~ ^  ~~~~~
2 warnings and 1 error generated.
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
86b.cpp:17:10: error: invalid operands to binary expression
      ('string' (aka 'basic_string<char, char_traits<char>,
      allocator<char> >') and 'int')
    if(a == i*i){
       ~ ^  ~~~
1 error generated.
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
Cider:ABC Cider$ ./a.out
1 21
Yes
Cider:ABC Cider$ ./a.out
100 100
No
Cider:ABC Cider$ ./a.out
12 10
No
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ g++ 86b.cpp 
Cider:ABC Cider$ ./a.out
1 21
Yes
Cider:ABC Cider$ ./a.out
100 100
No
Cider:ABC Cider$ ./a.out
12 10
No
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86b.cpp -nw
Cider:ABC Cider$ emacs 86b.cpp -nw
Cider:ABC Cider$ emacs 86c.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw
Cider:ABC Cider$ emacs 86c.cpp -n
Cider:ABC Cider$ ls
82.cpp	84.c	84.cpp	84b.cpp	85.cpp	86a.cpp	86b.cpp	86c.cpp	a.out
Cider:ABC Cider$ g++ 86c.cpp 
Cider:ABC Cider$ ./a.out
2
3 1 2
6 1 1No
Cider:ABC Cider$ ./a.out
2
3 1 2
No
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw
Cider:ABC Cider$ g++ 86c.cpp 
Cider:ABC Cider$ ./a.out
2
3 1 2
6 1 1
No
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw
Cider:ABC Cider$ g++ 86c.cpp 
Cider:ABC Cider$ ./a.out
2
3 1 2
6 1 1
11
No
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw
Cider:ABC Cider$ g++ 86c.cpp 
Cider:ABC Cider$ ./a.out
2     
3 1 2
6 1 1
12
No
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw
Cider:ABC Cider$ g++ 86c.cpp 
Cider:ABC Cider$ ./a.out
2
3 1 2
6 1 1
Yes
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw
Cider:ABC Cider$ g++ 86c.cpp 
Cider:ABC Cider$ ./a.out
2
3 1 2
6 1 1
Yes
Cider:ABC Cider$ ./a.out
1
2 100 100
No
Cider:ABC Cider$ ./a.out
2
5 1 1
100 1 1
No
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw
Cider:ABC Cider$ g++ 86c.cpp 
Cider:ABC Cider$ ./a.out
2
5 1 1
100 1 1
No
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw
Cider:ABC Cider$ ./a.out
2
4 0 4
12 0 4
Yes
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw
Cider:ABC Cider$ ./a.out
 2
^C
Cider:ABC Cider$ ./a.out
2
2 1 1
4 1 1
Yes
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw

[1]+  Stopped                 /Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw
Cider:ABC Cider$ g++ 86c.cpp 
Cider:ABC Cider$ ./a.out
2
3 1 2
6 1 1
Yes
Cider:ABC Cider$ fg
/Applications/Emacs.app/Contents/MacOS/Emacs 86c.cpp -nw

File Edit Options Buffers Tools C++ Help                                                           
#include<iostream>
#include<complex>
#include<vector>
using namespace std;

int main()
{
  int n;
  cin >> n;

  vector<int> t(n);
  vector<int> x(n);
  vector<int> y(n);

  t[0] = 0;
  x[0] = 0;
  y[0] = 0;

  for(int i = 1; i <= n; i++) cin >> t[i] >> x[i] >> y[i];

  vector<int> sum(n);
  sum[0] = 0;
  for(int i = 1; i <= n; i++){
    sum[i] = x[i] + y[i];
    if(t[i] % 2 != sum[i] % 2){
      cout << "No" << endl;
      return 0;
    }

    if((t[i] - t[i - 1]) < abs(sum[i] - sum[i - 1])){
      cout << "No" << endl;
      return 0;
    }

  }

  cout << "Yes" << endl;

  return 0;

}


Compiler output:
a.cc:1:27: error: invalid digit "9" in octal constant
    1 | Last login: Fri Jan 19 11:09:20 on ttys001
      |                           ^~
a.cc:64:38: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   64 | 86b.cpp:10:11: error: cannot convert 'string' (aka
      |                                      ^~~~~~~~
a.cc:65:7: warning: missing terminating ' character
   65 |       'basic_string<char, char_traits<char>, allocator<char>
      |       ^
a.cc:65:7: error: missing terminating ' character
   65 |       'basic_string<char, char_traits<char>, allocator<char>
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:66:8: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   66 |       >') to 'int' without a conversion operator
      |        ^~~~~~~~~~
a.cc:66:18: warning: missing terminating ' character
   66 |       >') to 'int' without a conversion operator
      |                  ^
a.cc:66:18: error: missing terminating ' character
   66 |       >') to 'int' without a conversion operator
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:76:7: warning: multi-character literal with 28 characters exceeds 'int' size of 4 bytes
   76 |       'std::__1::basic_string<char>' to 'int'
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:76:41: warning: multi-character character constant [-Wmultichar]
   76 |       'std::__1::basic_string<char>' to 'int'
      |                                         ^~~~~
a.cc:89:37: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   89 | 86b.cpp:11:7: error: cannot convert 'string' (aka
      |                                     ^~~~~~~~
a.cc:90:7: warning: missing terminating ' character
   90 |       'basic_string<char, char_traits<char>, allocator<char>
      |       ^
a.cc:90:7: error: missing terminating ' character
   90 |       'basic_string<char, char_traits<char>, allocator<char>
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:91:8: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   91 |       >') to 'int' without a conversion operator
      |        ^~~~~~~~~~
a.cc:91:18: warning: missing terminating ' character
   91 |       >') to 'int' without a conversion operator
      |                  ^
a.cc:91:18: error: missing terminating ' character
   91 |       >') to 'int' without a conversion operator
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:211:42: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
  211 | clang: error: no such file or directory: '86b.cpp'
      |                                          ^~~~~~~~~
a.cc:214:42: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
  214 | clang: error: no such file or directory: '86b.cpp'
      |                                          ^~~~~~~~~
a.cc:215:42: warning: multi-character character constant [-Wmultichar]
  215 | clang: error: no such file or directory: 'fg'
      |                                          ^~~~
a.cc:224:42: warning: multi-character character constant [-Wmultichar]
  224 | clang: error: no such file or directory: 'fg'
      |                                          ^~~~
a.cc:226:37: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
  226 | 86b.cpp:12:7: error: cannot convert 'string' (aka
      |                                     ^~~~~~~~
a.cc:227:7: warning: missing terminating ' character
  227 |       'basic_string<char, char_traits<char>, allocator<char>
      |       ^
a.cc:227:7: error: missing terminating ' character
  227 |       'basic_string<char, char_traits<char>, allocator<char>
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:228:8: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
  228 |       >') to 'int' without a conversion operator
      |        ^~~~~~~~~~
a.cc:228:18: warning: missing terminating ' character
  228 |       >') to 'int' without a conversion operator
      |                  ^
a.cc:228:18: error: missing terminating ' character
  228 |       >') to 'int' without a conversion operator
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:239:26: warning: multi-character character constant [-Wmultichar]
  239 |   for(char i = '1'; i <= '100'; i++){
      |                          ^~~~~
a.cc:242:8: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
  242 |       ('string' (aka 'basic_string<char, char_traits<char>,
      |        ^~~~~~~~
a.cc:242:22: warning: missing terminating ' character
  242 |       ('string' (aka 'basic_string<char, char_traits<char>,
      |                      ^
a.cc:242:22: error: missing terminating ' character
  242 |       ('string' (aka 'basic_string<char, char_traits<char>,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:243:24: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
  243 |       allocator<char> >') and 'int')
      |                        ^~~~~~~~~~~
a.cc:243:35: warning: missing terminating ' character
  243 |       allocator<char> >') and 'int')
      |                                   ^
a.cc:243:35: error: missing terminating ' character
  243 |       allocator<char> >') and 'int')
      |                                   ^~
a.cc:247:26: warning: multi-character character constant [-Wmultichar]
  247 |       expression of type 'char' is always true
      |                          ^~~~~~
a.cc:249:26: warning: multi-character character constant [-Wmultichar]
  249 |   for(char i = '1'; i <= '100'; i++){
      |                          ^~~~~
a.cc:258:8: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
  258 |       ('string' (aka 'basic_string<char, char_traits<char>,
      |        ^~~~~~~~
a.cc:258:22: warning: missing terminating ' character
  258 |       ('string' (aka 'basic_string<char, char_traits<char>,
      |                      ^
a.cc:258:22: error: missing terminating ' character
  258 |       ('string' (aka 'basic_string<char, char_traits<char>,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:259:24: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
  259 |       allocator<char> >') and 'int')
      |                        ^~~~~~~~~~~
a.cc:259:35: warning: missing terminating ' character
  259 |       allocator<char> >') and 'int')
      |                                   ^
a.cc:259:35: error: missing terminating ' character
  259 |       allocator<char> >') and 'int')
      |                                   ^~
a.cc:1:1: error: 'Last' does not name a type
    1 | Last login: Fri Jan 19 11:09:20 on ttys001
      | ^~~~
a.cc:68:11: error: expected unqualified-id before '^' token
   68 |           ^~~~~~
      |           ^
a.cc:78:7: error: expected unqualified-id before '^' token
   78 |       ^   ~~~~~~~~~
      |       ^
a.cc:93:7: error: expected unqualified-id before '^' token
   93 |       ^~~~~~
      |       ^
In file included from /usr/include/c++/14/iosfwd:42,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:128:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
   68 |   typedef ptrdiff_t     streamsize; // Signed integral type
      |           ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
   40 | #include <cwchar> // For mbstate_t
  +++ |+#include <cstddef>
   41 | 
In file included from /usr/include/c++/14/bits/exception_ptr.h:38,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function
  131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                          ^~~~~~~~
/usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
  131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                                            ^~~~~~
In file included from /usr/include/wchar.h:35,
                 from /usr/include/c++/14/cwchar:44,
                 from /usr/include/c++/14/bits/postypes.h:40:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive]
  132 |   __attribute__((__externally_visible__));
      |                                         ^
/usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function
  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                          ^~~~~~~~
/usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                                              ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/usr/include/c++/14/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive]
  134 |   __attribute__((__externally_visible__));
      |                                         ^
/usr/include/c++/14/new:140:29: error: 'std::size_t' has not been declared
  140 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
      |                             ^~~
/usr/include/c++/14/new:142:31: error: 'std::size_t' has not been declared
  142 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
      |                               ^~~
/usr/in