Language: C++

#include <iostream>

int main() {
  const int ARRAY_SIZE = 100;
  int a[ARRAY_SIZE];
  int n;
  int count = 0;

  std::cin >> n;
  for (int i = 0;i < n;i++) {
    std::cin >> a[i];
  }

  for (int i = 0;i < n;i++) {
    int min_index = i;
    for (int j = i + 1;j < n;j++) {
      if (a[j] < a[min_index]) {
        min_index = j;
      }
    }
    if (a[min_index] < a[i]) {
      int tmp = a[i];
      a[i] = a[min_index];
      a[min_index] = tmp;Last login: Sat Jan 13 14:15:36 on ttys001
-bash: rbenv: command not found
-bash: pyenv: command not found
-bash: pyenv: command not found
mac-2:~ aito$ which python
/usr/bin/python
mac-2:~ aito$ python --versin
Unknown option: --
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
mac-2:~ aito$ python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py
import site # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py
import os # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py
import posixpath # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/stat.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/stat.py
import stat # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/stat.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py
import genericpath # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/warnings.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/warnings.py
import warnings # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/warnings.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.py
import linecache # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/types.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/types.py
import types # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/types.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py
import UserDict # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_abcoll.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_abcoll.py
import _abcoll # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_abcoll.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/abc.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/abc.py
import abc # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/abc.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_weakrefset.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_weakrefset.py
import _weakrefset # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_weakrefset.pyc
import _weakref # builtin
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.py
import copy_reg # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py
import traceback # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py
import sysconfig # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py
import re # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.py
import sre_compile # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.pyc
import _sre # builtin
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.py
import sre_parse # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.py
import sre_constants # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.pyc
dlopen("/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so", 2);
import _locale # dynamically loaded from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.py
import _sysconfigdata # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_osx_support.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_osx_support.py
import _osx_support # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_osx_support.pyc
import encodings # directory /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/__init__.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/__init__.py
import encodings # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/__init__.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py
import codecs # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.pyc
import _codecs # builtin
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/aliases.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/aliases.py
import encodings.aliases # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/aliases.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py
import encodings.utf_8 # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.pyc
Python 2.7.10 (default, Jul 15 2017, 17:16:57) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/readline.so
>>> 
KeyboardInterrupt
>>> 
KeyboardInterrupt
>>> q
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'q' is not defined
>>> quit()
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] encodings
# cleanup[1] site
# cleanup[1] sysconfig
# cleanup[1] abc
# cleanup[1] _weakrefset
# cleanup[1] sre_constants
# cleanup[1] _codecs
# cleanup[1] _warnings
# cleanup[1] zipimport
# cleanup[1] _sysconfigdata
# cleanup[1] encodings.utf_8
# cleanup[1] _osx_support
# cleanup[1] codecs
# cleanup[1] readline
# cleanup[1] signal
# cleanup[1] traceback
# cleanup[1] posix
# cleanup[1] encodings.aliases
# cleanup[1] exceptions
# cleanup[1] _weakref
# cleanup[1] re
# cleanup[1] _locale
# cleanup[1] sre_compile
# cleanup[1] _sre
# cleanup[1] sre_parse
# cleanup[2] copy_reg
# cleanup[2] posixpath
# cleanup[2] errno
# cleanup[2] _abcoll
# cleanup[2] types
# cleanup[2] genericpath
# cleanup[2] stat
# cleanup[2] warnings
# cleanup[2] UserDict
# cleanup[2] os.path
# cleanup[2] linecache
# cleanup[2] os
# cleanup sys
# cleanup __builtin__
# cleanup ints: 20 unfreed ints
# cleanup floats
mac-2:~ aito$ 
  [復元日時2018/01/14 10:33:02]
Last login: Sun Jan 14 10:33:02 on ttys000
mac-2:~ aito$ 
  [復元日時2018/01/14 19:46:05]
Last login: Sun Jan 14 19:45:56 on console
mac-2:~ aito$ 
  [復元日時2018/01/16 21:17:43]
Last login: Tue Jan 16 21:12:36 on console
mac-2:~ aito$ 
  [復元日時2018/01/17 19:37:35]
Last login: Wed Jan 17 19:37:17 on console
mac-2:~ aito$ ls
AndroidStudioProjects	aws			mahout
Applications		blog			nginx
Calibre Library		c++			node_js
Desktop			chrome_extension	numeric
Documents		cocoa			objc_nyumon_note
Downloads		computer_vision		opengl
Dropbox			data_science		play
Library			diary			play-scala-intro
Movies			emacs_config		python
Music			english			rails
Pictures		game			ruby
Public			gcp			rust
R			git			scala
Rakefile		golang			sox
Sites			ios			tetris
Test			java			teximg
Unity			javascript		toy
VirtualBox VMs		keys			vagrant
activator		lang			vlfeat
algorithm		lucene			webrtc
mac-2:~ aito$ cd c++/
mac-2:c++ aito$ ls
CRF++-0.58		CRF++-0.58.tar.gz	aoj
mac-2:c++ aito$ cd aoj/
mac-2:aoj aito$ ls
algorithms	intro
mac-2:aoj aito$ cd algorithms/
mac-2:algorithms aito$ ls
a.out		bubble_sort.cpp	insert_sort.cpp
mac-2:algorithms aito$ less bubble_sort.cpp 
mac-2:algorithms aito$ emacs

[1]+  Stopped                 emacs
mac-2:algorithms aito$ g++ selection_sort.cpp
selection_sort.cpp:7:3: error: use of undeclared identifier 'count'
  count = 0;
  ^
selection_sort.cpp:25:7: error: use of undeclared identifier 'count'; did you
      mean 'std::count'?
      count++;
      ^~~~~
      std::count
/Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:1138:1: note: 
      'std::count' declared here
count(_InputIterator __first, _InputIterator __last, const _Tp& __value_)
^
selection_sort.cpp:25:7: error: reference to overloaded function could not be
      resolved; did you mean to call it?
      count++;
      ^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:1138:1: note: 
      possible target for call
count(_InputIterator __first, _InputIterator __last, const _Tp& __value_)
^
selection_sort.cpp:36:16: error: use of undeclared identifier 'count'
  std::cout << count << std::endl;
               ^
4 errors generated.
mac-2:algorithms aito$ fg
emacs

[1]+  Stopped                 emacs
mac-2:algorithms aito$ g++ selection_sort.cpp
mac-2:algorithms aito$ ./a.out 
6
5 6 4 2 1 3
1 2 3 4 5 6
4
mac-2:algorithms aito$ fg
emacs

  }

  for (int i = 0;i < n;i++) {
    int min_index = i;
    for (int j = i + 1;j < n;j++) {
      if (a[j] < a[min_index]) {
        min_index = j;
      }
    }
    if (a[min_index] < a[i]) {
      int tmp = a[i];
      a[i] = a[min_index];
      a[min_index] = tmp;
      count++;
    }
  }

  for (int i = 0; i < n;i++) {
    if (i == n - 1) {
      std::cout << a[i] << std::endl;
    } else {
      std::cout << a[i] << " ";
    }
  }
  std::cout << count << std::endl;

  return 0;
}



Compiler output:
a.cc:33:5: error: stray '`' in program
   33 | Try `python -h' for more information.
      |     ^
a.cc:33:15: warning: missing terminating ' character
   33 | Try `python -h' for more information.
      |               ^
a.cc:33:15: error: missing terminating ' character
   33 | Try `python -h' for more information.
      |               ^~~~~~~~~~~~~~~~~~~~~~~
a.cc:35:3: error: invalid preprocessing directive #installing
   35 | # installing zipimport hook
      |   ^~~~~~~~~~
a.cc:36:18: error: stray '#' in program
   36 | import zipimport # builtin
      |                  ^
a.cc:37:3: error: invalid preprocessing directive #installed
   37 | # installed zipimport hook
      |   ^~~~~~~~~
a.cc:38:3: error: invalid preprocessing directive #/
   38 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py
      |   ^
a.cc:39:13: error: stray '#' in program
   39 | import site # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc
      |             ^
a.cc:40:3: error: invalid preprocessing directive #/
   40 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py
      |   ^
a.cc:41:11: error: stray '#' in program
   41 | import os # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc
      |           ^
a.cc:42:14: error: stray '#' in program
   42 | import errno # builtin
      |              ^
a.cc:43:14: error: stray '#' in program
   43 | import posix # builtin
      |              ^
a.cc:44:3: error: invalid preprocessing directive #/
   44 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py
      |   ^
a.cc:45:18: error: stray '#' in program
   45 | import posixpath # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.pyc
      |                  ^
a.cc:46:3: error: invalid preprocessing directive #/
   46 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/stat.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/stat.py
      |   ^
a.cc:47:13: error: stray '#' in program
   47 | import stat # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/stat.pyc
      |             ^
a.cc:48:3: error: invalid preprocessing directive #/
   48 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py
      |   ^
a.cc:49:20: error: stray '#' in program
   49 | import genericpath # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.pyc
      |                    ^
a.cc:50:3: error: invalid preprocessing directive #/
   50 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/warnings.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/warnings.py
      |   ^
a.cc:51:17: error: stray '#' in program
   51 | import warnings # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/warnings.pyc
      |                 ^
a.cc:52:3: error: invalid preprocessing directive #/
   52 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.py
      |   ^
a.cc:53:18: error: stray '#' in program
   53 | import linecache # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.pyc
      |                  ^
a.cc:54:3: error: invalid preprocessing directive #/
   54 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/types.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/types.py
      |   ^
a.cc:55:14: error: stray '#' in program
   55 | import types # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/types.pyc
      |              ^
a.cc:56:3: error: invalid preprocessing directive #/
   56 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py
      |   ^
a.cc:57:17: error: stray '#' in program
   57 | import UserDict # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.pyc
      |                 ^
a.cc:58:3: error: invalid preprocessing directive #/
   58 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_abcoll.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_abcoll.py
      |   ^
a.cc:59:16: error: stray '#' in program
   59 | import _abcoll # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_abcoll.pyc
      |                ^
a.cc:60:3: error: invalid preprocessing directive #/
   60 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/abc.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/abc.py
      |   ^
a.cc:61:12: error: stray '#' in program
   61 | import abc # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/abc.pyc
      |            ^
a.cc:62:3: error: invalid preprocessing directive #/
   62 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_weakrefset.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_weakrefset.py
      |   ^
a.cc:63:20: error: stray '#' in program
   63 | import _weakrefset # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_weakrefset.pyc
      |                    ^
a.cc:64:17: error: stray '#' in program
   64 | import _weakref # builtin
      |                 ^
a.cc:65:3: error: invalid preprocessing directive #/
   65 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.py
      |   ^
a.cc:66:17: error: stray '#' in program
   66 | import copy_reg # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.pyc
      |                 ^
a.cc:67:3: error: invalid preprocessing directive #/
   67 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py
      |   ^
a.cc:68:18: error: stray '#' in program
   68 | import traceback # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.pyc
      |                  ^
a.cc:69:3: error: invalid preprocessing directive #/
   69 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py
      |   ^
a.cc:70:18: error: stray '#' in program
   70 | import sysconfig # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.pyc
      |                  ^
a.cc:71:3: error: invalid preprocessing directive #/
   71 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py
      |   ^
a.cc:72:11: error: stray '#' in program
   72 | import re # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.pyc
      |           ^
a.cc:73:3: error: invalid preprocessing directive #/
   73 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.py
      |   ^
a.cc:74:20: error: stray '#' in program
   74 | import sre_compile # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.pyc
      |                    ^
a.cc:75:13: error: stray '#' in program
   75 | import _sre # builtin
      |             ^
a.cc:76:3: error: invalid preprocessing directive #/
   76 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.py
      |   ^
a.cc:77:18: error: stray '#' in program
   77 | import sre_parse # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.pyc
      |                  ^
a.cc:78:3: error: invalid preprocessing directive #/
   78 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.py
      |   ^
a.cc:79:22: error: stray '#' in program
   79 | import sre_constants # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.pyc
      |                      ^
a.cc:81:16: error: stray '#' in program
   81 | import _locale # dynamically loaded from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
      |                ^
a.cc:82:3: error: invalid preprocessing directive #/
   82 | # /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.py
      |   ^
a.cc:83:23: error: stray '#' in program
   83 | import _sysconfigdata # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.pyc
      |                       ^
a.cc:84:3: error: invalid preprocessing directive #/
   84 | # /System/Library/Frameworks/Python.framework/Vers