Language: C++

a#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0,i##_max=(N);i<i##_max;++i)
#define repp(i,l,r) for(int i=(l),i##_max=(r);i<i##_max;++i)
#define per(i,N) for(int i=(N)-1;i>=0;--i)
#define perr(i,l,r) for(int i=r-1,i##_min(l);i>=i##_min;--i)
#define all(arr) (arr).begin(), (arr).end()
#define SP << " " <<
#define SPF << " "
#define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL; 
  typedef pair<ll,char> PLC; 
  typedef pair<char,ll> PCL; 

inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}

int main(void){
  SPEEDUP
  cout << setprecision(15);
  string s;cin >> s;
  int count = 0;
  rep(i,s.length()){
    if(s[i] == 'p') ++count;
  }
  cout << s.length()/2 - count << endl;
  return 0;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | a#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'a' does not name a type
    1 | a#include <bits/stdc++.h>
      | ^
a.cc:18:11: error: 'pair' does not name a type
   18 |   typedef pair<int,int> PII;
      |           ^~~~
a.cc:19:11: error: 'pair' does not name a type
   19 |   typedef pair<char,char> PCC;
      |           ^~~~
a.cc:20:11: error: 'pair' does not name a type
   20 |   typedef pair<ll,ll> PLL;
      |           ^~~~
a.cc:21:11: error: 'pair' does not name a type
   21 |   typedef pair<char,int> PCI;
      |           ^~~~
a.cc:22:11: error: 'pair' does not name a type
   22 |   typedef pair<int,char> PIC;
      |           ^~~~
a.cc:23:11: error: 'pair' does not name a type
   23 |   typedef pair<ll,int> PLI;
      |           ^~~~
a.cc:24:11: error: 'pair' does not name a type
   24 |   typedef pair<int,ll> PIL;
      |           ^~~~
a.cc:25:11: error: 'pair' does not name a type
   25 |   typedef pair<ll,char> PLC;
      |           ^~~~
a.cc:26:11: error: 'pair' does not name a type
   26 |   typedef pair<char,ll> PCL;
      |           ^~~~
a.cc: In function 'void YesNo(bool)':
a.cc:28:28: error: 'cout' was not declared in this scope
   28 | inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
      |                            ^~~~
a.cc:28:56: error: 'endl' was not declared in this scope
   28 | inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
      |                                                        ^~~~
a.cc: In function 'void YESNO(bool)':
a.cc:29:28: error: 'cout' was not declared in this scope
   29 | inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
      |                            ^~~~
a.cc:29:56: error: 'endl' was not declared in this scope
   29 | inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
      |                                                        ^~~~
a.cc: In function 'void Yay(bool)':
a.cc:30:26: error: 'cout' was not declared in this scope
   30 | inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}
      |                          ^~~~
a.cc:30:55: error: 'endl' was not declared in this scope
   30 | inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}
      |                                                       ^~~~
a.cc: In function 'int main()':
a.cc:10:17: error: 'cin' was not declared in this scope
   10 | #define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
      |                 ^~~
a.cc:33:3: note: in expansion of macro 'SPEEDUP'
   33 |   SPEEDUP
      |   ^~~~~~~
a.cc:10:28: error: 'ios' has not been declared
   10 | #define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
      |                            ^~~
a.cc:33:3: note: in expansion of macro 'SPEEDUP'
   33 |   SPEEDUP
      |   ^~~~~~~
a.cc:34:3: error: 'cout' was not declared in this scope
   34 |   cout << setprecision(15);
      |   ^~~~
a.cc:34:11: error: 'setprecision' was not declared in this scope
   34 |   cout << setprecision(15);
      |           ^~~~~~~~~~~~
a.cc:35:3: error: 'string' was not declared in this scope
   35 |   string s;cin >> s;
      |   ^~~~~~
a.cc:35:19: error: 's' was not declared in this scope
   35 |   string s;cin >> s;
      |                   ^
a.cc:40:35: error: 'endl' was not declared in this scope
   40 |   cout << s.length()/2 - count << endl;
      |                                   ^~~~