Language: C++


▸ ftb/                         |~
▸ ghidra_scripts/              |~
▸ IdeaProjects/                |~
▸ Library/                     |~
▸ Movies/                      |~
▸ Music/                       |~
▸ nerdtree/                    |~
▸ Nsaleavemealone.rep/         |~
▸ Pictures/                    |~
▸ Public/                      |~
▸ PycharmProjects/             |~
▸ Sites/                       |~
▸ ti connect/                  |~
▸ vim/                         |~
▸ VirtualBox VMs/              |~
▸ ycm_build/                   |~
▸ YouCompleteMe/               |~
  ca.cpp                       |~
  cowmbat.out                  |~
  milkvisits.out               |~
  nocows.out                   |~
  Nsaleavemealone.gpr          |~
  prefix.out                   |~
  SenecaFalls.docx             |~
  template.out                 |~
  TrialOfJackson.txt           |~
  Untitled.pages*              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
~                              |~
/Users/zeki                     [No Name]
"~/.vimrc" 81L, 1787C
Error detected while processing function OpenFiles:
line    2:
E325: ATTENTION
Found a swap file by the name "~/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/.solution.cpp.swp"
          owned by: zeki   dated: Sun Jan 05 16:16:37 2020
         file name: ~zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp
          modified: YES
         user name: zeki   host name: Zekis-MacBook-Pro-5.local
        process ID: 3548
While opening file "/Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp"
             dated: Mon Jan 06 16:56:48 2020
      NEWER than swap file!

(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/.solution.cpp.swp"
    to avoid this message.

Swap file "~/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/.solution.cpp.swp" already exists!
"~/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp" 98L, 2237C
Using swap file "~/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/.solution.cpp.swp"
Press ENTER or type command to continue
Original file "~/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp"
Press ENTER or type command to continue
Error detected while processing function OpenFiles:
line    2:
E308: Warning: Original file may have been changed
Press ENTER or type command to continue
Recovery completed. You should check if everything is OK.
Press ENTER or type command to continue
(You might want to write out this file under another name
and run diff with the original file to check for changes)
You may want to delete the .swp file now.
 2 ~/.vimrc  + ~/D/W/C/C/solution.cpp                                                                                                                                                                                                                                          X
    1
    2 //author: zekigurbuz (Zeki Gurbuz) 2019
    3 #pragma GCC optimize ("O3")
    4 #pragma GCC target ("sse4")
    5
    6 #include <bits/stdc++.h>
>>  7 #include <ext/pb_ds/tree_policy.hpp>
>>  8 #include <ext/pb_ds/assoc_container.hpp>
    9
   10 using namespace std;
>> 11 using namespace __gnu_pbds;
>> 12 using namespace __gnu_cxx;
   13
   14 typedef long long ll;
   15 typedef long double ld;
   16 typedef unsigned long long ull;
   17 typedef pair<int,int> pii;
   18 typedef vector<bool> vb;
   19 typedef vector<int> vi;
   20 typedef vector<vi> vvi;
   21 typedef vector<string> vs;
   22 typedef vector<double> vd;
   23 typedef vector<pii> vpii;
   24 typedef queue<int> qi;
   25 typedef map<string, int> msi;
   26 typedef map<int, int> mii;
   27 typedef map<int, vi> mvi;
   28 typedef map<int, vpii> mvpii;
   29 typedef priority_queue<int> pqi;
   30 typedef set<int> si;
   31
   32 #define int ll
   33 #define double ld
   34 #define mp make_pair
   35 #define pb push_back
   36 #define fi first
   37 #define se second
   38 #define lb lower_bound
   39 #define ub upper_bound
   40 #define rsz resize
   41 #define forn(a,b) for(int a=0;a<b;++a)
   42 #define rep(a,b,c) for(int a=b;a<c;++a)
   43 #define all(x) begin(x),end(x)
   44 #define fastio ios_base::sync_with_stdio(0);cin.tie(0);
   45
   46 const ld PI=4*atan((ld)1);
   47 const int MOD=1000000007;//998244353
   48 const ll INF=0x3FFFFFFFFFFFFFFFLL;
   49 const int N=200005;
   50
   51 ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
   52 ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
   53
   54 template<class T>void ckmin(T&a,T b){a=min(a,b);}
   55 template<class T>void ckmax(T&a,T b){a=max(a,b);}
>> 56 template<class T>using Tree=tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update>;
   57
   58 string Eval(bool b){return(b?"Yes":"No");}
   59 string eval(bool b){return(b?"yes":"no");}
   60 string EVAL(bool b){return(b?"YES":"NO");}
   61
   62 void precomp() {
   63
   64 }
   65
   66 void solve(int testCaseNumber) {
   67
   68 }
   69
   70 signed main(){fastio//freopen("replace.in", "r", stdin);freopen("replace.out", "w", stdout);
   71
E349: No identifier under cursor
 2 ~/.vimrc  + ~/D/W/C/C/solution.cpp                                                                                                                                                                                                                                          X
   94 typedef vector<bool> vb;
>> 95 typedef vector<int> vi;
   96 typedef vector<vi> vvi;
   97 typedef vector<string> vs;
>> 98 typedef vector<double> vd;
   99 typedef vector<pii> vpii;
>>100 typedef queue<int> qi;
>>101 typedef map<string, int> msi;
>>102 typedef map<int, int> mii;
>>103 typedef map<int, vi> mvi;
  104 typedef map<int, vpii> mvpii;
  105 typedef priority_queue<int> pqi;
  106 typedef set<int> si;
  107
  108 #define int ll
  109 #define double ld
  110 #define mp make_pair
  111 #define pb push_back
  112 #define fi first
  113 #define se second
  114 #define lb lower_bound
  115 #define ub upper_bound
  116 #define rsz resize
  117 #define forn(a,b) for(int a=0;a<b;++a)
  118 #define rep(a,b,c) for(int a=b;a<c;++a)
  119 #define all(x) begin(x),end(x)
  120 #define fastio ios_base::sync_with_stdio(0);cin.tie(0);
  121
  122 const ld PI=4*atan((ld)1);
  123 const int MOD=1000000007;//998244353
  124 const ll INF=0x3FFFFFFFFFFFFFFFLL;
  125 const int N=200005;
  126
  127 ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
  128 ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
  129
  130 template<class T>void ckmin(T&a,T b){a=min(a,b);}
  131 template<class T>void ckmax(T&a,T b){a=max(a,b);}
  132 template<class T>using Tree=tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update>;
  133
  134 string Eval(bool b){return(b?"Yes":"No");}
  135 string eval(bool b){return(b?"yes":"no");}
  136 string EVAL(bool b){return(b?"YES":"NO");}
  137
  138 int n;
  139 int a[N];
  140 bool b[N];
  141
  142 void precomp() {
  143     cin >> n;
  144     forn(i, n) {
  145         cin >> a[i];
  146     }
  147     sort(a, a + n);
  148     reverse(a, a + n);
  149
  150 }
  151
  152 void solve(int testCaseNumber) {
  153
  154 }
  155
  156 signed main(){fastio//freopen("replace.in", "r", stdin);freopen("replace.out", "w", stdout);
  157
  158     precomp();
  159     int t = 1;
  160     cin >> t;
  161     rep(i, 1, t + 1) solve(i);
  162
~
~
YES

    2 #pragma GCC optimize ("O3")
    3 #pragma GCC target ("sse4")
    4
    5 #include <bits/stdc++.h>
>>  6 #include <ext/pb_ds/tree_policy.hpp>
>>  7 #include <ext/pb_ds/assoc_container.hpp>
    8
    9 using namespace std;
>> 10 using namespace __gnu_pbds;
>> 11 using namespace __gnu_cxx;
   12
   13 typedef long long ll;
   14 typedef long double ld;
   15 typedef unsigned long long ull;
   16 typedef pair<int,int> pii;
   17 typedef vector<bool> vb;
   18 typedef vector<int> vi;
   19 typedef vector<vi> vvi;
   20 typedef vector<string> vs;
   21 typedef vector<double> vd;
   22 typedef vector<pii> vpii;
   23 typedef queue<int> qi;
   24 typedef map<string, int> msi;
   25 typedef map<int, int> mii;
   26 typedef map<int, vi> mvi;
   27 typedef map<int, vpii> mvpii;
   28 typedef priority_queue<int> pqi;
   29 typedef set<int> si;
   30
   31 #define int ll
   32 #define double ld
   33 #define mp make_pair
   34 #define pb push_back
   35 #define fi first
   36 #define se second
   37 #define lb lower_bound
   38 #define ub upper_bound
   39 #define rsz resize
   40 #define forn(a,b) for(int a=0;a<b;++a)
   41 #define rep(a,b,c) for(int a=b;a<c;++a)
   42 #define all(x) begin(x),end(x)
   43 #define fastio ios_base::sync_with_stdio(0);cin.tie(0);
   44
   45 const ld PI=4*atan((ld)1);
   46 const int MOD=1000000007;//998244353
   47 const ll INF=0x3FFFFFFFFFFFFFFFLL;
   48 const int N=200005;
   49
   50 ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
   51 ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
   52
   53 template<class T>void ckmin(T&a,T b){a=min(a,b);}
   54 template<class T>void ckmax(T&a,T b){a=max(a,b);}
>> 55 template<class T>using Tree=tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update>;
   56
   57 string Eval(bool b){return(b?"Yes":"No");}
   58 string eval(bool b){return(b?"yes":"no");}
   59 string EVAL(bool b){return(b?"YES":"NO");}
   60
   61 void precomp() {
   62
   63 }
   64
   65 void solve(int testCaseNumber) {
   66
   67 }
   68
   69 signed main(){fastio//freopen("replace.in", "r", stdin);freopen("replace.out", "w", stdout);
   70
   71     precomp();
:66
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   43 #define fastio ios_base::sync_with_stdio(0);cin.tie(0);
Press ENTER or type command to continue
codeforces
NO

Press ENTER or type command to continue
3
3 4
4 6
3 5
/Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp: In function 'void solve(ll)':
/Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp:76:2: error: expected primary-expression before '}' token
   76 |  }
      |  ^

shell returned 1

Press ENTER or type command to continue
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
3
3 4
4 6
3 5

^C
Command terminated

Interrupt: Press ENTER or type command to continue
3
3 4
4 6
3 5
YES

 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
Press ENTER or type command to continue
2
3 4
5 5
NO

Press ENTER or type command to continue
2
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
3 4
5 5
NO

Press ENTER or type command to continue
3
3 4
4 6
 2 ~/.vimrc  + ~/D/W/C/C/solution.cpp                                                                                                                                                                                                        X
   31 #define int ll
3 5
NO

Press ENTER or type command to continue
3
3 4
4 6
3 5
NO

Press ENTER or type command to continue
3
3 4
4 6
3 5
YES
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll

Press ENTER or type command to continue
Zekis-MacBook-Pro-5:~ zeki$
Zekis-MacBook-Pro-5:~ zeki$
Zekis-MacBook-Pro-5:~ zeki$ vim
Zekis-MacBook-Pro-5:~ zeki$ vim


   69 void dfs(int cur, int cnt, bool fl) {
   70     b[cur] = 1;
/Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp:61:13: error: 'Q' was not declared in this scope
   61 | int n, q, K[Q];
      |             ^
/Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp: In function 'void solve(ll)':
/Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp:72:20: error: 'K' was not declared in this scope
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
   72 |  forn(i, q) cin >> K[i];
      |                    ^
/Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp:75:10: error: 'K' was not declared in this scope
   75 |   cur += K[i];
      |          ^

shell returned 1

Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
6




hi
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
1
1
1
1

Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
6
^C
Command terminated

Interrupt: Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
0
^C
Command terminated

Interrupt: Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
0
lc 0
''''
1
lc 0
1
lc 0
1
lc 0
1
lc 0

Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
2
3
5
6
9
0
1

^C
Command terminated

Interrupt: Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
2
3
5
6
9
1



^[:w
1
1
1

Press ENTER or type command to continue
4 4
1 2 3 4
9 1 10 6
2
5
9
18
1

 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
1
1
1
1
1
1
1
1
1
1
1
2
3
4
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
5
6
7
8
9
10
1
1
1
1
1
1
1
2
3
4
 2 ~/.vimrc  + ~/D/W/C/C/solution.cpp                                                                                                                                                                                                        X
   31 #define int ll
5
6
1

1
1
1
1
1
1

11

1
1
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
1
1
1
1
1
1
1


123
123
123
123
1
0
1
0
1
0
1
0
0
0
0

Press ENTER or type command to continue
4 4
1 2 3 4
9 1 10 6
4 1
2
5
9
18
1
10 6
^C
Command terminated

Interrupt: Press ENTER or type command to continue






































































"~/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp" 100L, 2335C written
Press ENTER or type command to continue
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
5 5
1 2 1 2 1
3 10 1 1 1
5 1
2
3
5
6
9
0
1 1
1
^C
Command terminated

Interrupt: Press ENTER or type command to continue
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
5 5
1 2 1 2 1
3 10 1 1 1
2
3
5
6
9
0
1

^C
Command terminated

Interrupt: Press ENTER or type command to continue
5 5
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
1 2 1 2 1
N = 5 Q = 1
^[:q
orig A array 2 1 2 1 0
2
3
5
6
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
6
N = 5 Q = 1
orig A array 2 3 5 6 6
2
5
10
16
22
N = 5 Q = 1
orig A array 2 5 10 16 22
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
2
7
17
33
55
N = 5 Q = 1
orig A array 2 7 17 33 55
2
9
26
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
59
114
N = 5 Q = 1
orig A array 2 9 26 59 114
2
11
37
96
210

 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
2
3
5
6
9
1
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll

:w
1
1
1

Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
2
3
5
6
9
1

:w
1
1
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
1

Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
0
^C
Command terminated

 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
Interrupt: Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
2
0
1
2
2

 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
3
0
2
2
3
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll

Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
3
5
2
2
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
3

Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
1
5
0
1
1

Press ENTER or type command to continue
 2 ~/.vimrc  + ~/D/W/C/C/solution.cpp                                                                                                                                                                                                        X
   31 #define int ll
5 5
1 2 1 2 1
3 10 1 1 1
2
5
1
2
2

Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
2
5
1
2
2

Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
3
5
4
3
3
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll

Press ENTER or type command to continue
5 5
1 2 1 2 1
3 10 1 1 1
3
5
4
4
4

Press ENTER or type command to continue
4 4
1 2 3 4
9 1 10 6
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
0
0
4
2

Press ENTER or type command to continue
4 4
1 2 3 4
9 1 10 6
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   31 #define int ll
0
0
4
2

Press ENTER or type command to continue
4 4
1 2 3 4
9 1 10 6
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
  1 #include <iostream>

/Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp: In function 'void solve(ll)':
/Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp:78:6: error: expected '(' before 'it'
   78 |   if it != A.end() && it != A.begin() && A[i] > cur) it--;
      |      ^~
      |      (
 2 ~/.vimrc  ~/D/W/C/C/solution.cpp                                                                                                                                                                                                          X
   14 typedef long double ld;
   15 typedef unsigned long long ull;
   16 typedef pair<int,int> pii;
   17 typedef vector<bool> vb;
   18 typedef vector<int> vi;
   19 typedef vector<vi> vvi;
   20 typedef vector<string> vs;
   21 typedef vector<double> vd;
   22 typedef vector<pii> vpii;
   23 typedef queue<int> qi;
   24 typedef map<string, int> msi;
   25 typedef map<int, int> mii;
   26 typedef map<int, vi> mvi;
   27 typedef map<int, vpii> mvpii;
   28 typedef priority_queue<int> pqi;
   29 typedef set<int> si;
   30
   31 #define int ll
   32 #define double ld
   33 #define mp make_pair
   34 #define pb push_back
   35 #define fi first
   36 #define se second
   37 #define lb lower_bound
   38 #define ub upper_bound
   39 #define rsz resize
   40 #define forn(a,b) for(int a=0;a<b;++a)
   41 #define rep(a,b,c) for(int a=b;a<c;++a)
   42 #define all(x) begin(x),end(x)
   43 #define fastio ios_base::sync_with_stdio(0);cin.tie(0);
   44
   45 const ld PI=4*atan((ld)1);
   46 const int MOD=1000000007;//998244353
   47 const ll INF=0x3FFFFFFFFFFFFFFFLL;
   48 const int N=200005;
   49
   50 ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
   51 ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
   52
   53 template<class T>void ckmin(T&a,T b){a=min(a,b);}
   54 template<class T>void ckmax(T&a,T b){a=max(a,b);}
>> 55 template<class T>using Tree=tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update>;
   56
   57 string Eval(bool b){return(b?"Yes":"No");}
   58 string eval(bool b){return(b?"yes":"no");}
   59 string EVAL(bool b){return(b?"YES":"NO");}
   60
   61 void precomp() {
   62
   63 }
   64
   65 void solve(int testCaseNumber) {
   66     int n; cin >> n;
   67     string s; cin >> s;
   68     int ans = 1;
   69     forn(i, n - 1) if (s[i] != s[i + 1]) ans++;
   70     cout << ans << endl;
   71 }
   72
   73 signed main(){fastio//freopen("replace.in", "r", stdin);freopen("replace.out", "w", stdout);
   74
   75     precomp();
   76     int t = 1;
   77     cin >> t;
   78     rep(i, 1, t + 1) solve(i);
   79
   80 return 0;}
   81
~
"~/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp" 81L, 1954C written

Compiler output:
a.cc:2:1: error: extended character ▸ is not valid in an identifier
    2 | ▸ ftb/                         |~
      | ^
a.cc:3:1: error: extended character ▸ is not valid in an identifier
    3 | ▸ ghidra_scripts/              |~
      | ^
a.cc:4:1: error: extended character ▸ is not valid in an identifier
    4 | ▸ IdeaProjects/                |~
      | ^
a.cc:5:1: error: extended character ▸ is not valid in an identifier
    5 | ▸ Library/                     |~
      | ^
a.cc:6:1: error: extended character ▸ is not valid in an identifier
    6 | ▸ Movies/                      |~
      | ^
a.cc:7:1: error: extended character ▸ is not valid in an identifier
    7 | ▸ Music/                       |~
      | ^
a.cc:8:1: error: extended character ▸ is not valid in an identifier
    8 | ▸ nerdtree/                    |~
      | ^
a.cc:9:1: error: extended character ▸ is not valid in an identifier
    9 | ▸ Nsaleavemealone.rep/         |~
      | ^
a.cc:10:1: error: extended character ▸ is not valid in an identifier
   10 | ▸ Pictures/                    |~
      | ^
a.cc:11:1: error: extended character ▸ is not valid in an identifier
   11 | ▸ Public/                      |~
      | ^
a.cc:12:1: error: extended character ▸ is not valid in an identifier
   12 | ▸ PycharmProjects/             |~
      | ^
a.cc:13:1: error: extended character ▸ is not valid in an identifier
   13 | ▸ Sites/                       |~
      | ^
a.cc:14:1: error: extended character ▸ is not valid in an identifier
   14 | ▸ ti connect/                  |~
      | ^
a.cc:15:1: error: extended character ▸ is not valid in an identifier
   15 | ▸ vim/                         |~
      | ^
a.cc:16:1: error: extended character ▸ is not valid in an identifier
   16 | ▸ VirtualBox VMs/              |~
      | ^
a.cc:17:1: error: extended character ▸ is not valid in an identifier
   17 | ▸ ycm_build/                   |~
      | ^
a.cc:18:1: error: extended character ▸ is not valid in an identifier
   18 | ▸ YouCompleteMe/               |~
      | ^
a.cc:104:7: error: stray '#' in program
  104 |     3 #pragma GCC optimize ("O3")
      |       ^
a.cc:105:7: error: stray '#' in program
  105 |     4 #pragma GCC target ("sse4")
      |       ^
a.cc:107:7: error: stray '#' in program
  107 |     6 #include <bits/stdc++.h>
      |       ^
a.cc:108:7: error: stray '#' in program
  108 | >>  7 #include <ext/pb_ds/tree_policy.hpp>
      |       ^
a.cc:109:7: error: stray '#' in program
  109 | >>  8 #include <ext/pb_ds/assoc_container.hpp>
      |       ^
a.cc:133:7: error: stray '#' in program
  133 |    32 #define int ll
      |       ^
a.cc:134:7: error: stray '#' in program
  134 |    33 #define double ld
      |       ^
a.cc:135:7: error: stray '#' in program
  135 |    34 #define mp make_pair
      |       ^
a.cc:136:7: error: stray '#' in program
  136 |    35 #define pb push_back
      |       ^
a.cc:137:7: error: stray '#' in program
  137 |    36 #define fi first
      |       ^
a.cc:138:7: error: stray '#' in program
  138 |    37 #define se second
      |       ^
a.cc:139:7: error: stray '#' in program
  139 |    38 #define lb lower_bound
      |       ^
a.cc:140:7: error: stray '#' in program
  140 |    39 #define ub upper_bound
      |       ^
a.cc:141:7: error: stray '#' in program
  141 |    40 #define rsz resize
      |       ^
a.cc:142:7: error: stray '#' in program
  142 |    41 #define forn(a,b) for(int a=0;a<b;++a)
      |       ^
a.cc:143:7: error: stray '#' in program
  143 |    42 #define rep(a,b,c) for(int a=b;a<c;++a)
      |       ^
a.cc:144:7: error: stray '#' in program
  144 |    43 #define all(x) begin(x),end(x)
      |       ^
a.cc:145:7: error: stray '#' in program
  145 |    44 #define fastio ios_base::sync_with_stdio(0);cin.tie(0);
      |       ^
a.cc:189:7: error: stray '#' in program
  189 |   108 #define int ll
      |       ^
a.cc:190:7: error: stray '#' in program
  190 |   109 #define double ld
      |       ^
a.cc:191:7: error: stray '#' in program
  191 |   110 #define mp make_pair
      |       ^
a.cc:192:7: error: stray '#' in program
  192 |   111 #define pb push_back
      |       ^
a.cc:193:7: error: stray '#' in program
  193 |   112 #define fi first
      |       ^
a.cc:194:7: error: stray '#' in program
  194 |   113 #define se second
      |       ^
a.cc:195:7: error: stray '#' in program
  195 |   114 #define lb lower_bound
      |       ^
a.cc:196:7: error: stray '#' in program
  196 |   115 #define ub upper_bound
      |       ^
a.cc:197:7: error: stray '#' in program
  197 |   116 #define rsz resize
      |       ^
a.cc:198:7: error: stray '#' in program
  198 |   117 #define forn(a,b) for(int a=0;a<b;++a)
      |       ^
a.cc:199:7: error: stray '#' in program
  199 |   118 #define rep(a,b,c) for(int a=b;a<c;++a)
      |       ^
a.cc:200:7: error: stray '#' in program
  200 |   119 #define all(x) begin(x),end(x)
      |       ^
a.cc:201:7: error: stray '#' in program
  201 |   120 #define fastio ios_base::sync_with_stdio(0);cin.tie(0);
      |       ^
a.cc:248:7: error: stray '#' in program
  248 |     2 #pragma GCC optimize ("O3")
      |       ^
a.cc:249:7: error: stray '#' in program
  249 |     3 #pragma GCC target ("sse4")
      |       ^
a.cc:251:7: error: stray '#' in program
  251 |     5 #include <bits/stdc++.h>
      |       ^
a.cc:252:7: error: stray '#' in program
  252 | >>  6 #include <ext/pb_ds/tree_policy.hpp>
      |       ^
a.cc:253:7: error: stray '#' in program
  253 | >>  7 #include <ext/pb_ds/assoc_container.hpp>
      |       ^
a.cc:277:7: error: stray '#' in program
  277 |    31 #define int ll
      |       ^
a.cc:278:7: error: stray '#' in program
  278 |    32 #define double ld
      |       ^
a.cc:279:7: error: stray '#' in program
  279 |    33 #define mp make_pair
      |       ^
a.cc:280:7: error: stray '#' in program
  280 |    34 #define pb push_back
      |       ^
a.cc:281:7: error: stray '#' in program
  281 |    35 #define fi first
      |       ^
a.cc:282:7: error: stray '#' in program
  282 |    36 #define se second
      |       ^
a.cc:283:7: error: stray '#' in program
  283 |    37 #define lb lower_bound
      |       ^
a.cc:284:7: error: stray '#' in program
  284 |    38 #define ub upper_bound
      |       ^
a.cc:285:7: error: stray '#' in program
  285 |    39 #define rsz resize
      |       ^
a.cc:286:7: error: stray '#' in program
  286 |    40 #define forn(a,b) for(int a=0;a<b;++a)
      |       ^
a.cc:287:7: error: stray '#' in program
  287 |    41 #define rep(a,b,c) for(int a=b;a<c;++a)
      |       ^
a.cc:288:7: error: stray '#' in program
  288 |    42 #define all(x) begin(x),end(x)
      |       ^
a.cc:289:7: error: stray '#' in program
  289 |    43 #define fastio ios_base::sync_with_stdio(0);cin.tie(0);
      |       ^
a.cc:320:7: error: stray '#' in program
  320 |    43 #define fastio ios_base::sync_with_stdio(0);cin.tie(0);
      |       ^
a.cc:330:92: warning: multi-character literal with 14 characters exceeds 'int' size of 4 bytes
  330 | /Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp: In function 'void solve(ll)':
      |                                                                                            ^~~~~~~~~~~~~~~~
a.cc:339:7: error: stray '#' in program
  339 |    31 #define int ll
      |       ^
a.cc:356:7: error: stray '#' in program
  356 |    31 #define int ll
      |       ^
a.cc:366:7: error: stray '#' in program
  366 |    31 #define int ll
      |       ^
a.cc:376:7: error: stray '#' in program
  376 |    31 #define int ll
      |       ^
a.cc:394:7: error: stray '#' in program
  394 |    31 #define int ll
      |       ^
a.cc:408:92: warning: multi-character literal with 14 characters exceeds 'int' size of 4 bytes
  408 | /Users/zeki/Documents/Workspace/Cpp_Workspace_Zeki/CodeforcesCpp/solution.cpp: In function 'void solve(ll)':
      |                                                                                            ^~~~~~~~~~~~~~~~
a.cc:411:7: error: stray '#' in program
  411 |    31 #define int ll
      |       ^
a.cc:431:7: error: stray '#' in program
  431 |    31 #define int ll
      |       ^
a.cc:459:1: error: empty character constant
  459 | ''''
      | ^~
a.cc:459:3: error: empty character constant
  459 | ''''
      |   ^~
a.cc:513:7: error: stray '#' in program
  513 |    31 #define int ll
      |       ^
a.cc:529:7: error: stray '#' in program
  529 |    31 #define int ll
      |       ^
a.cc:547:7: error: stray '#' in program
  547 |    31 #define int ll
      |       ^
a.cc:564:7: error: stray '#' in program
  564 |    31 #define int ll
      |       ^
a.cc:678:7: error: stray '#' in program
  678 |    31 #define int ll
      |       ^
a.cc:696:7: error: stray '#' in program
  696 |    31 #define int ll
      |       ^
a.cc:714:7: error: stray '#' in program
  714 |    31 #define int ll
      |       ^
a.cc:724:7: error: stray '#' in program
  724 |    31 #define int ll
      |       ^
a.cc:736:7: error: stray '#' in program
  736 |    31 #define int ll
      |       ^
a.cc:748:7: error: stray '#' in program
  748 |    31 #define int ll
      |       ^
a.cc:760:7: error: stray '#' in program
  760 |    31 #define int ll
      |       ^
a.cc:772:7: error: stray '#' in program
  772 |    31 #define int ll
      |       ^
a.cc:784:7: error: stray '#' in program
  784 |    31 #define int ll
      |       ^
a.cc:796:7: error: stray '#' in program
  796 |    31 #define int ll
      |       ^
a.cc:808:7: error: stray '#' in program
  808 |    31 #define int ll
      |       ^
a.cc:820:7: error: stray '#' in program
  820 |    31 #define int ll
      |       ^
a.cc:831:7: error: stray '#' in program
  831 |    31 #define int ll
      |       ^
a.cc:842:7: error: stray '#' in program
  842 |    31 #define int ll
      |       ^
a.cc:857:7: error: stray '#' in program
  857 |    31 #define int ll
      |       ^
a.cc:872:7: error: stray '#' in program
  872 |    31 #define int ll
      |       ^
a.cc:889:7: error: stray '#' in program
  889 |    31 #define int ll
      |       ^
a.cc:906:7: error: stray '#' in program
  906 |    31