Language: C++

Last login: Wed Jul 26 10:34:29 on ttys000
[csws037:~] t1745036% ls
Desktop		Library		PWD_REMAIN_DAY	Source
Documents	Movies		Pictures	a.out
Downloads	Music		Public
[csws037:~] t1745036% ls
Desktop		Library		PWD_REMAIN_DAY	Source
Documents	Movies		Pictures	a.out
Downloads	Music		Public
[csws037:~] t1745036% ls
Desktop		Library		PWD_REMAIN_DAY	Source
Documents	Movies		Pictures	a.out
Downloads	Music		Public
[csws037:~] t1745036% cd Documents/
[csws037:~/Documents] t1745036% wls
wls: Command not found.
[csws037:~/Documents] t1745036% ls
AtCoder					Seiha
Enshu					c_test
MATLAB					jisyu
MyObjCApp				プロ演1-2Qレポー?ト.docx
Processing
[csws037:~/Documents] t1745036% cd AtCoder/
[csws037:~/Documents/AtCoder] t1745036% ls
abc052	abc058	agc018
[csws037:~/Documents/AtCoder] t1745036% mkdir agc011
[csws037:~/Documents/AtCoder] t1745036% ls
abc052	abc058	agc011	agc018
[csws037:~/Documents/AtCoder] t1745036% cd agc011
[csws037:~/Documents/AtCoder/agc011] t1745036% ls
[csws037:~/Documents/AtCoder/agc011] t1745036% vi a.cpp
[csws037:~/Documents/AtCoder/agc011] t1745036% g++ -o a a.cpp
[csws037:~/Documents/AtCoder/agc011] t1745036% ./a
5 3 5
1
2
3
6
12
2
[csws037:~/Documents/AtCoder/agc011] t1745036% vi a.cpp
[csws037:~/Documents/AtCoder/agc011] t1745036% vi a.cpp
[csws037:~/Documents/AtCoder/agc011] t1745036% g++ -o a a.cpp
[csws037:~/Documents/AtCoder/agc011] t1745036% ./a
5 3 5
1
2
3
6
12
1:1
2:2
3:1
6:2
2
[csws037:~/Documents/AtCoder/agc011] t1745036% vi a.cpp
[csws037:~/Documents/AtCoder/agc011] t1745036% g++ -o a a.cpp
[csws037:~/Documents/AtCoder/agc011] t1745036% ./a
5 3 5
1
2
3
6
12
1:0
2:1
3:2
6:0
12:0
0:1
0:2
3
[csws037:~/Documents/AtCoder/agc011] t1745036% vi a.cpp
[csws037:~/Documents/AtCoder/agc011] t1745036% g++ -o a a.cpp
[csws037:~/Documents/AtCoder/agc011] t1745036% ./a
6 3 3
7
6
2
8
10
6
3
[csws037:~/Documents/AtCoder/agc011] t1745036% vi a.cpp

  int j = 0;
  while(j < n){
    int hito = 0;
    while(hito < c){
      if(t[j+1] <= t[j]+k){
        hito++;
        j++;
      }else{
        j++;
        break;
      }
    }
    count++;
  }
  cout << count << endl;
  return 0;
}

Compiler output:
a.cc:21:41: warning: `\U000030d5\U0000309a\U000030ed\U00006f141' is not in NFC [-Wnormalized=]
   21 | MyObjCApp                               <U+30D5><U+309A><U+30ED><U+6F14>1-2Q<U+30EC><U+30DB><U+309A><U+30FC>?<U+30C8>.docx
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:21:49: warning: `2Qレポー' is not in NFC [-Wnormalized=]
   21 | MyObjCApp                               <U+30D5><U+309A><U+30ED><U+6F14>1-2Q<U+30EC><U+30DB><U+309A><U+30FC>?<U+30C8>.docx
      |                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'Last' does not name a type
    1 | Last login: Wed Jul 26 10:34:29 on ttys000
      | ^~~~
a.cc:87:3: error: expected unqualified-id before 'while'
   87 |   while(j < n){
      |   ^~~~~
a.cc:100:3: error: 'cout' does not name a type
  100 |   cout << count << endl;
      |   ^~~~
a.cc:101:3: error: expected unqualified-id before 'return'
  101 |   return 0;
      |   ^~~~~~
a.cc:102:1: error: expected declaration before '}' token
  102 | }
      | ^