Language: C

Last login: Wed Jun 15 02:14:51 on ttys000
kamimurariki-no-MacBook-Pro:~ kamimurariki$ emacs A.c &
[1] 57634
kamimurariki-no-MacBook-Pro:~ kamimurariki$ Emacs A.c &
[2] 57636

[1]+  Stopped                 emacs A.c
kamimurariki-no-MacBook-Pro:~ kamimurariki$ Emacs A.c 































[2]+  Stopped                 Emacs A.c
kamimurariki-no-MacBook-Pro:~ kamimurariki$ Emacs A.c 
kamimurariki-no-MacBook-Pro:~ kamimurariki$ Emacs A.c 
kamimurariki-no-MacBook-Pro:~ kamimurariki$ ssh s1230090@sshgate.u-aizu.ac.jp
PAM Authentication
Password: 
Last login: Wed Jun 15 2016 02:58:38 +0900 from softbank1262030
Oracle Corporation     SunOS 5.11      11.3    February 2016

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please log in to one of the hosts listed below.

- Solaris11: 
  - Computer Exercise Room 1 and 2  ... stdrsv1121 - stdrsv1125
  - Computer Exercise Room 3 and 4  ... std34rsv1 - std34rsv5
  - Hardware Workshop 1, 2, 3 and 4 ... stdrsv2121 - stdrsv2128
  - CALL Lab 1 and 2                ... stdrsv3121 - stdrsv3123
  - Faculty room                    ... prorsv1 - prorsv10
- OS X 10.9
  - Computer Exercise Room 5 and 6  ... std5dc2 - std5dc50, std6dc2 - std6dc50
  - iLab 1 and 2                    ... ilab1dc2 - ilab1dc49, ilab2dc2 - ilab2dc49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 

sshsv1{s1230090}51: sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 

sshsv1{s1230090}51: sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: 
sshsv1{s1230090}51: ls
#Midterm2#                            UTF-8        final
#Q1.c#                                Windows      final~
#a#                                   Windows~     g.s~
2016_1                                a.out        ikV201DuBsI.jpg
547160_0004_Pol_cartoons.pdf          algo1        k.c~
Desktop                               algo2.pdf    k.s~
Documents                             c.1.c~       mh4g_1920x1080.jpg
Downloads                             core         profile.a~
Java Programming 1: Exercise 9.html   d.c~         score~
Java Programming 1: Exercise 9_files  e.s~         shadesofBeingHuman.odt
Library                               ex01a2.txt~  sir.JPG
Mail                                  ex01b1.c~    test2~
Midterm1                              ex02a1.c~    test~
Midterm2                              ex02a1.txt~  violent
Midterm2~                             ex02a2.c~    violent~
Movies                                ex02a3.c~    yotube-1.pdf
Music                                 ex02a3~      yotube.pdf
Noise.java                            ex02b2.c~    ??????.odt
Pictures                              ex1.s~       ?????????????????\?????????(2).odt
Public                                ex2.s~       ?????????????????\?????????.odt
TF                                    f.s~
sshsv1{s1230090}52: bash
Terminal type is xterm-256color.                                        
Erase is backspace.
bash-4.2$ cd algo1
bash-4.2$ ls
le01  le03  le05  le07  le09  le11  le13
le02  le04  le06  le08  le10  le12  le14
bash-4.2$ cd le01
bash-4.2$ ls
A.c  A.c~  B.c  B.c~  C.c  C.c~  a.out  core
bash-4.2$ emacs C.c &
[1] 11955
bash-4.2$ emacs C.c 

File Edit Options Buffers Tools C Help                                          

int main(){
  int n,x,i;
  int cnt = 0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&x);
    if(isPrime(x))cnt++;
  }
  printf("%d\n",cnt);
  return 0;
}

Compiler output:
main.c:1:1: error: unknown type name 'Last'
    1 | Last login: Wed Jun 15 02:14:51 on ttys000
      | ^~~~
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    1 | Last login: Wed Jun 15 02:14:51 on ttys000
      |           ^
main.c:43:57: error: stray '@' in program
   43 | kamimurariki-no-MacBook-Pro:~ kamimurariki$ ssh s1230090@sshgate.u-aizu.ac.jp
      |                                                         ^
main.c:46:39: error: invalid digit "9" in octal constant
   46 | Last login: Wed Jun 15 2016 02:58:38 +0900 from softbank1262030
      |                                       ^~~~
main.c:62:17: error: expected identifier or '(' before numeric constant
   62 | sshsv1{s1230090}51:
      |                 ^~
main.c:63:17: error: expected identifier or '(' before numeric constant
   63 | sshsv1{s1230090}51:
      |                 ^~
main.c:64:17: error: expected identifier or '(' before numeric constant
   64 | sshsv1{s1230090}51:
      |                 ^~
main.c:65:17: error: expected identifier or '(' before numeric constant
   65 | sshsv1{s1230090}51:
      |                 ^~
main.c:66:17: error: expected identifier or '(' before numeric constant
   66 | sshsv1{s1230090}51:
      |                 ^~
main.c:68:17: error: expected identifier or '(' before numeric constant
   68 | sshsv1{s1230090}51: sshsv1{s1230090}51:
      |                 ^~
main.c:68:37: error: expected identifier or '(' before numeric constant
   68 | sshsv1{s1230090}51: sshsv1{s1230090}51:
      |                                     ^~
main.c:69:17: error: expected identifier or '(' before numeric constant
   69 | sshsv1{s1230090}51:
      |                 ^~
main.c:70:17: error: expected identifier or '(' before numeric constant
   70 | sshsv1{s1230090}51:
      |                 ^~
main.c:71:17: error: expected identifier or '(' before numeric constant
   71 | sshsv1{s1230090}51:
      |                 ^~
main.c:72:17: error: expected identifier or '(' before numeric constant
   72 | sshsv1{s1230090}51:
      |                 ^~
main.c:73:17: error: expected identifier or '(' before numeric constant
   73 | sshsv1{s1230090}51:
      |                 ^~
main.c:74:17: error: expected identifier or '(' before numeric constant
   74 | sshsv1{s1230090}51:
      |                 ^~
main.c:75:17: error: expected identifier or '(' before numeric constant
   75 | sshsv1{s1230090}51:
      |                 ^~
main.c:76:17: error: expected identifier or '(' before numeric constant
   76 | sshsv1{s1230090}51:
      |                 ^~
main.c:77:17: error: expected identifier or '(' before numeric constant
   77 | sshsv1{s1230090}51:
      |                 ^~
main.c:78:17: error: expected identifier or '(' before numeric constant
   78 | sshsv1{s1230090}51:
      |                 ^~
main.c:79:17: error: expected identifier or '(' before numeric constant
   79 | sshsv1{s1230090}51:
      |                 ^~
main.c:80:17: error: expected identifier or '(' before numeric constant
   80 | sshsv1{s1230090}51:
      |                 ^~
main.c:81:17: error: expected identifier or '(' before numeric constant
   81 | sshsv1{s1230090}51:
      |                 ^~
main.c:82:17: error: expected identifier or '(' before numeric constant
   82 | sshsv1{s1230090}51:
      |                 ^~
main.c:83:17: error: expected identifier or '(' before numeric constant
   83 | sshsv1{s1230090}51:
      |                 ^~
main.c:84:17: error: expected identifier or '(' before numeric constant
   84 | sshsv1{s1230090}51:
      |                 ^~
main.c:86:17: error: expected identifier or '(' before numeric constant
   86 | sshsv1{s1230090}51: sshsv1{s1230090}51:
      |                 ^~
main.c:86:37: error: expected identifier or '(' before numeric constant
   86 | sshsv1{s1230090}51: sshsv1{s1230090}51:
      |                                     ^~
main.c:87:17: error: expected identifier or '(' before numeric constant
   87 | sshsv1{s1230090}51:
      |                 ^~
main.c:88:17: error: expected identifier or '(' before numeric constant
   88 | sshsv1{s1230090}51:
      |                 ^~
main.c:89:17: error: expected identifier or '(' before numeric constant
   89 | sshsv1{s1230090}51:
      |                 ^~
main.c:90:17: error: expected identifier or '(' before numeric constant
   90 | sshsv1{s1230090}51:
      |                 ^~
main.c:91:17: error: expected identifier or '(' before numeric constant
   91 | sshsv1{s1230090}51:
      |                 ^~
main.c:92:17: error: expected identifier or '(' before numeric constant
   92 | sshsv1{s1230090}51:
      |                 ^~
main.c:93:17: error: expected identifier or '(' before numeric constant
   93 | sshsv1{s1230090}51:
      |                 ^~
main.c:94:17: error: expected identifier or '(' before numeric constant
   94 | sshsv1{s1230090}51:
      |                 ^~
main.c:95:17: error: expected identifier or '(' before numeric constant
   95 | sshsv1{s1230090}51:
      |                 ^~
main.c:96:17: error: expected identifier or '(' before numeric constant
   96 | sshsv1{s1230090}51:
      |                 ^~
main.c:97:17: error: expected identifier or '(' before numeric constant
   97 | sshsv1{s1230090}51:
      |                 ^~
main.c:98:17: error: expected identifier or '(' before numeric constant
   98 | sshsv1{s1230090}51:
      |                 ^~
main.c:99:17: error: expected identifier or '(' before numeric constant
   99 | sshsv1{s1230090}51:
      |                 ^~
main.c:100:17: error: expected identifier or '(' before numeric constant
  100 | sshsv1{s1230090}51:
      |                 ^~
main.c:101:17: error: expected identifier or '(' before numeric constant
  101 | sshsv1{s1230090}51:
      |                 ^~
main.c:102:17: error: expected identifier or '(' before numeric constant
  102 | sshsv1{s1230090}51:
      |                 ^~
main.c:103:17: error: expected identifier or '(' before numeric constant
  103 | sshsv1{s1230090}51:
      |                 ^~
main.c:104:17: error: expected identifier or '(' before numeric constant
  104 | sshsv1{s1230090}51:
      |                 ^~
main.c:105:17: error: expected identifier or '(' before numeric constant
  105 | sshsv1{s1230090}51:
      |                 ^~
main.c:106:17: error: expected identifier or '(' before numeric constant
  106 | sshsv1{s1230090}51:
      |                 ^~
main.c:107:17: error: expected identifier or '(' before numeric constant
  107 | sshsv1{s1230090}51:
      |                 ^~
main.c:108:17: error: expected identifier or '(' before numeric constant
  108 | sshsv1{s1230090}51:
      |                 ^~
main.c:109:17: error: expected identifier or '(' before numeric constant
  109 | sshsv1{s1230090}51:
      |                 ^~
main.c:110:17: error: expected identifier or '(' before numeric constant
  110 | sshsv1{s1230090}51:
      |                 ^~
main.c:111:17: error: expected identifier or '(' before numeric constant
  111 | sshsv1{s1230090}51:
      |                 ^~
main.c:112:17: error: expected identifier or '(' before numeric constant
  112 | sshsv1{s1230090}51:
      |                 ^~
main.c:113:17: error: expected identifier or '(' before numeric constant
  113 | sshsv1{s1230090}51:
      |                 ^~
main.c:114:17: error: expected identifier or '(' before numeric constant
  114 | sshsv1{s1230090}51:
      |                 ^~
main.c:115:17: error: expected identifier or '(' before numeric constant
  115 | sshsv1{s1230090}51: ls
      |                 ^~
main.c:116:2: error: invalid preprocessing directive #Midterm2
  116 | #Midterm2#                            UTF-8        final
      |  ^~~~~~~~
main.c:117:2: error: invalid preprocessing directive #Q1
  117 | #Q1.c#                                Windows      final~
      |  ^~
main.c:118:2: error: invalid preprocessing directive #a
  118 | #a#                                   Windows~     g.s~
      |  ^
main.c:119:1: error: invalid suffix "_1" on integer constant
  119 | 2016_1                                a.out        ikV201DuBsI.jpg
      | ^~~~~~
main.c:120:1: error: invalid suffix "_0004_Pol_cartoons.pdf" on integer constant
  120 | 547160_0004_Pol_cartoons.pdf          algo1        k.c~
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:122:40: error: too many decimal points in number
  122 | Documents                             c.1.c~       mh4g_1920x1080.jpg
      |                                        ^~~~
main.c:124:30: error: invalid suffix "html" on floating constant
  124 | Java Programming 1: Exercise 9.html   d.c~         score~
      |                              ^~~~~~
main.c:125:30: error: invalid suffix "_files" on integer constant
  125 | Java Programming 1: Exercise 9_files  e.s~         shadesofBeingHuman.odt
      |                              ^~~~~~~
main.c:131:59: error: invalid suffix "pdf" on floating constant
  131 | Movies                                ex02a3.c~    yotube-1.pdf
      |                                                           ^~~~~
main.c:134:69: error: stray '\' in program
  134 | Pictures                              ex1.s~       ?????????????????\?????????(2).odt
      |                                                                     ^
main.c:134:77: warning: trigraph ??( ignored, use -trigraphs to enable [-Wtrigraphs]
  134 | Pictures                              ex1.s~       ?????????????????\?????????(2).odt
main.c:135:69: error: stray '\' in program
  135 | Public                                ex2.s~       ?????????????????\?????????.odt
      |                                                                     ^
main.c:137:17: error: expected identifier or '(' before numeric constant
  137 | sshsv1{s1230090}52: bash
      |                 ^~
main.c:138:24: error: invalid suffix "color." on integer constant
  138 | Terminal type is xterm-256color.
      |                        ^~~~~~~~~
main.c:140:6: error: invalid suffix "$" on floating constant
  140 | bash-4.2$ cd algo1
      |      ^~~~
main.c:141:6: error: invalid suffix "$" on floating constant
  141 | bash-4.2$ ls
      |      ^~~~
main.