Language: C++

/*
                                                                                                     
                                             `-:://:::-                                             
                                           `//:-------:/:`                                          
                                          .+:--.......--:+`                                         
                                         `+:--..`````..--//`                                        
                                         .o:--..`` ``..--:o`                                        
                                         .o:--...```..---+/`                                        
                                       `/y+o/---....---:+o.                                         
                                   `...````-os+/:---:/+o/--.`                                       
              `-/+++++/:.      `...`       :h+d+oooo+/+-`   ...                                     
            `/++//:::://++-`....`         -.`//````````:`     `..`                                  
           `o+/::------://o/`           `-` -.          -`       `..`                               
 `---.-o/:./o/::-..``..-ЗАПУСКАЕМ      ..  ..            -`        `...       ``..``                
  `....o+:-++/:--.```..-://s.        `-`  .-              -`          `-o: .-//::::/:-`             
          `:s+/:--....-::/+s-`      .-   `-                -`           -///:--------:/:`           
           ./s+//:::::://oo-``..НЕЙРОННУЮ: СЕТЬ:::::::-`РАБОТЯГИ        `+:--........--:/`          
            .:ooo+++++osso-`    `.:-...`/` ./::-------:/:`   -`         :+--..``````.--:+:...-+:-`  
             `.-/+++++/+-.-`    -.   ``:so:/:--.......--:+`  `-```````o+/+--..`````..--:o/-..:s+:.  
                 ```````:``.. `-`     -` `+:--..`````..--/+-.../.`````..-o:--.......---/o.    `     
                        `:  `:-      -.  .o:--..`` ``..--:o`   `-`      `:o+:--------:+o-`          
                         `-`-...    ..   .o/--...```..--:+/`    `-`     `oy/so/////++o/.`           
                          -/`  `-` `- ``+s/o/:---...---:++.      `-`   .-../d://///:-.`             
                `.---..``-..-    .-/..`````-oo+/:::::/+o+-        `-``-`  `-.  ````                 
             `:++++/+++++-  ..``.-/:`      /y-:/++o++/:.`..`       ./.   `-                         
            -++/::::::://+/..:-``:` ..   `-.`  ```.```    `..`   `..`-` `-                          
       ``  -o//:--....-::/++` -.-`   `-`.-`                 `..`..`  `-.-                           
  -----ss+:++/:--.```..-://s.  /.     `::                    `-:.     ./`                           
  `````/:..+o/::-..``.--:/+s. ..-`   `-``-`                 ..` `-`  `-`-`                          
          `-s+/::-----::/+oo---``-` ..    .:-    ```      .-`     .-.-  `-`                         
           `:oo+//::://+os/..:`..-/:`      :y.-:::::::.`.-`        ./-`  `-`                        
            `./+oooooooo+/.`-    .-:...`.. .//:-------://`        `- `..` `:.                       
              ``.-::::-.``-/`  `-` `-  `oo:+:--.......--:/`      `-    `.:--h.``..```               
                          -.-`.-    .-   `+:--..`````..--//`    `-       /s-//::::::::.             
                         -` `/-      ..  .o:--..`` ``..--:o.```.-        `//:--------://`           
                        -` .-`.-`     -.`-o/--...```..--:+/.``-:....``:-.+:--....`...--:+`          
                       ..`-.   `-.   ``:os:o/:---...---:++.  `-     ``///+:-..``````.--:+-````-.`   
              `.:///////.-`      .:-..` -``-+o+/:::::/+o/.  `-         `:+:-..`````..--:o/:--/ys+-  
            `-++///////+o/. ``....`-.    :` `.:++++++/:.`  .-           -o/---......---/o.   `.`    
           `++//:-----::/+o:..`     .-`   :    ```````    .-           `+so+:--------:++-`          
  `````:-``:o/::-..`..--:/+o`         -.  `-             .-          `../../+o+////+o+:.`           
  -----syo/o+/:--.```..-://s.          .-` `-           .-        `...     ``-:////:-``             
       .` `/s//:--....-::/+s.            -. `-`        .-       `..`                                
           .+o+/:::--:://+s/-..`          .::+y  ```  .-     `..`                                   
            ./oo++////+oso-`   `....       :y-+:::::::/`   ...                                      
             `.:+oooooo/-`         `....-. .//:-------:/:-.`                                        
                ``...``                 /+:+:--.......--:+`                                         
                                         `+:--..`````..--//`                                        
                                         .o:--..`` ``..--:o`                                        
                                         .+/--...```..--:+/`                                        
                                         `-o/:---...---:++.                                         
                                          `-+o+/:---:/+o/.                                          
                                            `.:+oooo+/-.`                                           
                                               ``````                                               
*/

#ifdef aimbot
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("unroll-loops")
#endif

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <map>
#include <set>
#include <queue>
#include <ostream>
#include <istream>
#include <typeinfo>
#include <iomanip>
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <limits>
#include <fstream>
#include <array>
#include <list>
#include <bitset>
#include <functional>
#include <random>
#include <cstring>

#define mt make_tuple
#define x first
#define y second
#define pb push_back
#define ppb pop_back
#define mp make_pair
#define umap unordered_map
#define uset unordered_set
#define elif else if
#define len(v) ((int)v.size())
#define f(i, n) for (int i = 0; i < (n); i++)
#define rof(i, n) for (int i = ((n) - 1); i >= 0; i--) 
#define apply(v, act) for (auto &x : v) { act; }
#define fuck(args...) {string s = #args;deque<string> deq;\
string buf = "";int bal = 0;for (char c : s) {\
if (c == '(' || c == '[' || c == '{') {bal++;\
} else if (c == ')' || c == ']' || c == '}') {\
bal--;} else {if (bal == 0) {if (c == ',') {\
deq.pb(buf);buf = "";} else {if (c != ' ') {\
buf += c;}}}}}if (!buf.empty()) {deq.pb(buf);}\
smart_io::precall_print();smart_io::_print(deq, args);}

#define print    \
smart_io::precall_print(); \
cout,

#define scan cin,

#ifdef fast_allocator
const int MAXMEM = 50000000;
char _memory[MAXMEM];
size_t _ptr = 0;
void* operator new(size_t _x) { _ptr += _x; assert(_ptr < MAXMEM); return _memory + _ptr - _x; }
void operator delete (void*) noexcept {}
#endif

using namespace std;

char string_in_buffer[(int)1e6];


void fast_scan(int &x) { scanf("%d", &x); }
void fast_scan(long long &x) { scanf("%lld", &x); }
void fast_scan(unsigned long long &x) { scanf("%llu", &x); }
void fast_scan(double &x) { scanf("%lf", &x); }
void fast_scan(long double &x) { scanf("%Lf", &x); }
void fast_scan(char &x) { 
	scanf("%c", &x); 
	if (x == '\n') {
		fast_scan(x);
	}
}
void fast_scan(string &x) {
	scanf("%s", string_in_buffer);
	x = string(string_in_buffer);
}

template<class TFirst, class TSecond>
void fast_scan(pair<TFirst, TSecond> &p) {
	fast_scan(p.first);
	fast_scan(p.second);
}

template <class T>
void fast_scan(vector<T> &v) {
	for (auto &x : v) fast_scan(x);
}

void fast_print(const int &x) { printf("%d", x); }
void fast_print(const long long &x) { printf("%lld", x); }
void fast_print(const unsigned long long &x) { printf("%llu", x); }
void fast_print(const double &x) { printf("%.15lf", x); }
void fast_print(const long double &x) { printf("%.15Lf", x); }
void fast_print(const char &x) { printf("%c", x); };
void fast_print(const string &x) { printf("%s", x.c_str());}
void fast_print(const char v[]) { fast_print((string)v); }

template<class TFirst, class TSecond>
void fast_print(const pair<TFirst, TSecond> &p) {
	fast_print(p.first);
	fast_print(' ');
	fast_print(p.second);
}

template <class T>
void fast_print(const vector<T> &v) {
	if (v.empty()) return;
	fast_print(v[0]);
	for (int i = 1; i < v.size(); i++) {
		fast_print(' ');
		fast_print(v[i]);
	}
}

template <class T>
void fast_print(const vector<vector<T>> &v) {
	if (v.empty()) return;
	fast_print(v[0]);
	for (int i = 1; i < v.size(); i++) {
		fast_print('\n');
		fast_print(v[i]);
	}
}

template <class T>
void fast_print(const T &v) {
	for (const auto &x : v) {
		fast_print(x);
		fast_print(' ');
	}
}


using namespace std;


namespace smart_io {
	string print_start = "";
	string sep = " ";
	bool first_print = false;

	void precall_print() {
		fast_print(print_start);
		print_start = "\n";
		first_print = true;
	}

	void _print(deque<string>) {}
	template<class T, class... Args>
	void _print(deque<string> names, T kek, Args... args) {
		if (!first_print) {
			fast_print("\n");
		} else {
			first_print = false;
		}
		fast_print(names.front());
		fast_print(" = ");
		fast_print(kek);
		names.pop_front();
		_print(names, args...);
	}
} //namespace smart_io


template <class T>
ostream &operator,(ostream &os, const T &object) {
	if (!smart_io::first_print) {
		fast_print(smart_io::sep);
	} else {
		smart_io::first_print = false;
	}
	fast_print(object);
	return os;
}

template <class T>
istream &operator,(istream &is, T &object) {
	fast_scan(object);
	return is;
}

namespace typedefs {
	typedef long long ll;
	typedef unsigned long long ull;
	typedef pair<int, int> pii;
	typedef long double ld;
}

namespace numbers_operation {
	template<class T>
	T floor_mod(T a, T b) {
		if (a % b == 0) return 0;
		if (a >= 0 && b >= 0) return a % b;
		if (a <= 0 && b <= 0) return a % b;
		return abs(b) - (abs(a) % abs(b));
	}
}

using namespace numbers_operation;
using namespace typedefs;


signed main(signed argc, char *argv[]) {
	int n;
	scan n;
	string s;
	scan s;
	int _min = 1e9;
	int cur = 0;
	apply(s, if (x == 'E') cur++);
	for (int i = 0; i < len(s); i++) {
		if (s[i] == 'E') {
			_min = min(_min, cur - 1);	
			cur--;
		} else {
			_min = min(_min, cur);
			cur++;
		}
	} 
	print _min;
}/*
                                                                                                     
                                             `-:://:::-                                             
                                           `//:-------:/:`                                          
                                          .+:--.......--:+`                                         
                                         `+:--..`````..--//`                                        
                                         .o:--..`` ``..--:o`                                        
                                         .o:--...```..---+/`                                        
                                       `/y+o/---....---:+o.                                         
                                   `...````-os+/:---:/+o/--.`                                       
              `-/+++++/:.      `...`       :h+d+oooo+/+-`   ...                                     
            `/++//:::://++-`....`         -.`//````````:`     `..`                                  
           `o+/::------://o/`           `-` -.          -`       `..`                               
 `---.-o/:./o/::-..``..-ЗАПУСКАЕМ      ..  ..            -`        `...       ``..``                
  `....o+:-++/:--.```..-://s.        `-`  .-              -`          `-o: .-//::::/:-`             
          `:s+/:--....-::/+s-`      .-   `-                -`           -///:--------:/:`           
           ./s+//:::::://oo-``..НЕЙРОННУЮ: СЕТЬ:::::::-`РАБОТЯГИ        `+:--........--:/`          
            .:ooo+++++osso-`    `.:-...`/` ./::-------:/:`   -`         :+--..``````.--:+:...-+:-`  
             `.-/+++++/+-.-`    -.   ``:so:/:--.......--:+`  `-```````o+/+--..`````..--:o/-..:s+:.  
                 ```````:``.. `-`     -` `+:--..`````..--/+-.../.`````..-o:--.......---/o.    `     
                        `:  `:-      -.  .o:--..`` ``..--:o`   `-`      `:o+:--------:+o-`          
                         `-`-...    ..   .o/--...```..--:+/`    `-`     `oy/so/////++o/.`           
                          -/`  `-` `- ``+s/o/:---...---:++.      `-`   .-../d://///:-.`             
                `.---..``-..-    .-/..`````-oo+/:::::/+o+-        `-``-`  `-.  ````                 
             `:++++/+++++-  ..``.-/:`      /y-:/++o++/:.`..`       ./.   `-                         
            -++/::::::://+/..:-``:` ..   `-.`  ```.```    `..`   `..`-` `-                          
       ``  -o//:--....-::/++` -.-`   `-`.-`                 `..`..`  `-.-                           
  -----ss+:++/:--.```..-://s.  /.     `::                    `-:.     ./`                           
  `````/:..+o/::-..``.--:/+s. ..-`   `-``-`                 ..` `-`  `-`-`                          
          `-s+/::-----::/+oo---``-` ..    .:-    ```      .-`     .-.-  `-`                         
           `:oo+//::://+os/..:`..-/:`      :y.-:::::::.`.-`        ./-`  `-`                        
            `./+oooooooo+/.`-    .-:...`.. .//:-------://`        `- `..` `:.                       
              ``.-::::-.``-/`  `-` `-  `oo:+:--.......--:/`      `-    `.:--h.``..```               
                          -.-`.-    .-   `+:--..`````..--//`    `-       /s-//::::::::.             
                         -` `/-      ..  .o:--..`` ``..--:o.```.-        `//:--------://`           
                        -` .-`.-`     -.`-o/--...```..--:+/.``-:....``:-.+:--....`...--:+`          
                       ..`-.   `-.   ``:os:o/:---...---:++.  `-     ``///+:-..``````.--:+-````-.`   
              `.:///////.-`      .:-..` -``-+o+/:::::/+o/.  `-         `:+:-..`````..--:o/:--/ys+-  
            `-++///////+o/. ``....`-.    :` `.:++++++/:.`  .-           -o/---......---/o.   `.`    
           `++//:-----::/+o:..`     .-`   :    ```````    .-           `+so+:--------:++-`          
  `````:-``:o/::-..`..--:/+o`         -.  `-             .-          `../../+o+////+o+:.`           
  -----syo/o+/:--.```..-://s.          .-` `-           .-        `...     ``-:////:-``             
       .` `/s//:--....-::/+s.            -. `-`        .-       `..`                                
           .+o+/:::--:://+s/-..`          .::+y  ```  .-     `..`                                   
            ./oo++////+oso-`   `....       :y-+:::::::/`   ...                                      
             `.:+oooooo/-`         `....-. .//:-------:/:-.`                                        
                ``...``                 /+:+:--.......--:+`                                         
                                         `+:--..`````..--//`                                        
                                         .o:--..`` ``..--:o`                                        
                                         .+/--...```..--:+/`                                        
                                         `-o/:---...---:++.                                         
                                          `-+o+/:---:/+o/.                                          
                                            `.:+oooo+/-.`                                           
                                               ``````                                               
*/

#ifdef aimbot
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("unroll-loops")
#endif

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <map>
#include <set>
#include <queue>
#include <ostream>
#include <istream>
#include <typeinfo>
#include <iomanip>
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <limits>
#include <fstream>
#include <array>
#include <list>
#include <bitset>
#include <functional>
#include <random>
#include <cstring>

#define mt make_tuple
#define x first
#define y second
#define pb push_back
#define ppb pop_back
#define mp make_pair
#define umap unordered_map
#define uset unordered_set
#define elif else if
#define len(v) ((int)v.size())
#define f(i, n) for (int i = 0; i < (n); i++)
#define rof(i, n) for (int i = ((n) - 1); i >= 0; i--) 
#define apply(v, act) for (auto &x : v) { act; }
#define fuck(args...) {string s = #args;deque<string> deq;\
string buf = "";int bal = 0;for (char c : s) {\
if (c == '(' || c == '[' || c == '{') {bal++;\
} else if (c == ')' || c == ']' || c == '}') {\
bal--;} else {if (bal == 0) {if (c == ',') {\
deq.pb(buf);buf = "";} else {if (c != ' ') {\
buf += c;}}}}}if (!buf.empty()) {deq.pb(buf);}\
smart_io::precall_print();smart_io::_print(deq, args);}

#define print    \
smart_io::precall_print(); \
cout,

#define scan cin,

#ifdef fast_allocator
const int MAXMEM = 50000000;
char _memory[MAXMEM];
size_t _ptr = 0;
void* operator new(size_t _x) { _ptr += _x; assert(_ptr < MAXMEM); return _memory + _ptr - _x; }
void operator delete (void*) noexcept {}
#endif

using namespace std;

char string_in_buffer[(int)1e6];


void fast_scan(int &x) { scanf("%d", &x); }
void fast_scan(long long &x) { scanf("%lld", &x); }
void fast_scan(unsigned long long &x) { scanf("%llu", &x); }
void fast_scan(double &x) { scanf("%lf", &x); }
void fast_scan(long double &x) { scanf("%Lf", &x); }
void fast_scan(char &x) { 
	scanf("%c", &x); 
	if (x == '\n') {
		fast_scan(x);
	}
}
void fast_scan(string &x) {
	scanf("%s", string_in_buffer);
	x = string(string_in_buffer);
}

template<class TFirst, class TSecond>
void fast_scan(pair<TFirst, TSecond> &p) {
	fast_scan(p.first);
	fast_scan(p.second);
}

template <class T>
void fast_scan(vector<T> &v) {
	for (auto &x : v) fast_scan(x);
}

void fast_print(const int &x) { printf("%d", x); }
void fast_print(const long long &x) { printf("%lld", x); }
void fast_print(const unsigned long long &x) { printf("%llu", x); }
void fast_print(const double &x) { printf("%.15lf", x); }
void fast_print(const long double &x) { printf("%.15Lf", x); }
void fast_print(const char &x) { printf("%c", x); };
void fast_print(const string &x) { printf("%s", x.c_str());}
void fast_print(const char v[]) { fast_print((string)v); }

template<class TFirst, class TSecond>
void fast_print(const pair<TFirst, TSecond> &p) {
	fast_print(p.first);
	fast_print(' ');
	fast_print(p.second);
}

template <class T>
void fast_print(const vector<T> &v) {
	if (v.empty()) return;
	fast_print(v[0]);
	for (int i = 1; i < v.size(); i++) {
		fast_print(' ');
		fast_print(v[i]);
	}
}

template <class T>
void fast_print(const vector<vector<T>> &v) {
	if (v.empty()) return;
	fast_print(v[0]);
	for (int i = 1; i < v.size(); i++) {
		fast_print('\n');
		fast_print(v[i]);
	}
}

template <class T>
void fast_print(const T &v) {
	for (const auto &x : v) {
		fast_print(x);
		fast_print(' ');
	}
}


using namespace std;


namespace smart_io {
	string print_start = "";
	string sep = " ";
	bool first_print = false;

	void precall_print() {
		fast_print(print_start);
		print_start = "\n";
		first_print = true;
	}

	void _print(deque<string>) {}
	template<class T, class... Args>
	void _print(deque<string> names, T kek, Args... args) {
		if (!first_print) {
			fast_print("\n");
		} else {
			first_print = false;
		}
		fast_print(names.front());
		fast_print(" = ");
		fast_print(kek);
		names.pop_front();
		_print(names, args...);
	}
} //namespace smart_io


template <class T>
ostream &operator,(ostream &os, const T &object) {
	if (!smart_io::first_print) {
		fast_print(smart_io::sep);
	} else {
		smart_io::first_print = false;
	}
	fast_print(object);
	return os;
}

template <class T>
istream &operator,(istream &is, T &object) {
	fast_scan(object);
	return is;
}

namespace typedefs {
	typedef long long ll;
	typedef unsigned long long ull;
	typedef pair<int, int> pii;
	typedef long double ld;
}

namespace numbers_operation {
	template<class T>
	T floor_mod(T a, T b) {
		if (a % b == 0) return 0;
		if (a >= 0 && b >= 0) return a % b;
		if (a <= 0 && b <= 0) return a % b;
		return abs(b) - (abs(a) % abs(b));
	}
}

using namespace numbers_operation;
using namespace typedefs;


signed main(signed argc, char *argv[]) {
	int n;
	scan n;
	string s;
	scan s;
	int _min = 1e9;
	int cur = 0;
	apply(s, if (x == 'E') cur++);
	for (int i = 0; i < len(s); i++) {
		if (s[i] == 'E') {
			_min = min(_min, cur - 1);	
			cur--;
		} else {
			_min = min(_min, cur);
			cur++;
		}
	} 
	print _min;
}

Compiler output:
a.cc:417:6: error: redefinition of 'char string_in_buffer [1000000]'
  417 | char string_in_buffer[(int)1e6];
      |      ^~~~~~~~~~~~~~~~
a.cc:128:6: note: 'char string_in_buffer [1000000]' previously declared here
  128 | char string_in_buffer[(int)1e6];
      |      ^~~~~~~~~~~~~~~~
a.cc:420:6: error: redefinition of 'void fast_scan(int&)'
  420 | void fast_scan(int &x) { scanf("%d", &x); }
      |      ^~~~~~~~~
a.cc:131:6: note: 'void fast_scan(int&)' previously defined here
  131 | void fast_scan(int &x) { scanf("%d", &x); }
      |      ^~~~~~~~~
a.cc:421:6: error: redefinition of 'void fast_scan(long long int&)'
  421 | void fast_scan(long long &x) { scanf("%lld", &x); }
      |      ^~~~~~~~~
a.cc:132:6: note: 'void fast_scan(long long int&)' previously defined here
  132 | void fast_scan(long long &x) { scanf("%lld", &x); }
      |      ^~~~~~~~~
a.cc:422:6: error: redefinition of 'void fast_scan(long long unsigned int&)'
  422 | void fast_scan(unsigned long long &x) { scanf("%llu", &x); }
      |      ^~~~~~~~~
a.cc:133:6: note: 'void fast_scan(long long unsigned int&)' previously defined here
  133 | void fast_scan(unsigned long long &x) { scanf("%llu", &x); }
      |      ^~~~~~~~~
a.cc:423:6: error: redefinition of 'void fast_scan(double&)'
  423 | void fast_scan(double &x) { scanf("%lf", &x); }
      |      ^~~~~~~~~
a.cc:134:6: note: 'void fast_scan(double&)' previously defined here
  134 | void fast_scan(double &x) { scanf("%lf", &x); }
      |      ^~~~~~~~~
a.cc:424:6: error: redefinition of 'void fast_scan(long double&)'
  424 | void fast_scan(long double &x) { scanf("%Lf", &x); }
      |      ^~~~~~~~~
a.cc:135:6: note: 'void fast_scan(long double&)' previously defined here
  135 | void fast_scan(long double &x) { scanf("%Lf", &x); }
      |      ^~~~~~~~~
a.cc:425:6: error: redefinition of 'void fast_scan(char&)'
  425 | void fast_scan(char &x) {
      |      ^~~~~~~~~
a.cc:136:6: note: 'void fast_scan(char&)' previously defined here
  136 | void fast_scan(char &x) {
      |      ^~~~~~~~~
a.cc:431:6: error: redefinition of 'void fast_scan(std::string&)'
  431 | void fast_scan(string &x) {
      |      ^~~~~~~~~
a.cc:142:6: note: 'void fast_scan(std::string&)' previously defined here
  142 | void fast_scan(string &x) {
      |      ^~~~~~~~~
a.cc:437:6: error: redefinition of 'template<class TFirst, class TSecond> void fast_scan(std::pair<_T1, _T2>&)'
  437 | void fast_scan(pair<TFirst, TSecond> &p) {
      |      ^~~~~~~~~
a.cc:148:6: note: 'template<class TFirst, class TSecond> void fast_scan(std::pair<_T1, _T2>&)' previously declared here
  148 | void fast_scan(pair<TFirst, TSecond> &p) {
      |      ^~~~~~~~~
a.cc:443:6: error: redefinition of 'template<class T> void fast_scan(std::vector<_Tp>&)'
  443 | void fast_scan(vector<T> &v) {
      |      ^~~~~~~~~
a.cc:154:6: note: 'template<class T> void fast_scan(std::vector<_Tp>&)' previously declared here
  154 | void fast_scan(vector<T> &v) {
      |      ^~~~~~~~~
a.cc:447:6: error: redefinition of 'void fast_print(const int&)'
  447 | void fast_print(const int &x) { printf("%d", x); }
      |      ^~~~~~~~~~
a.cc:158:6: note: 'void fast_print(const int&)' previously defined here
  158 | void fast_print(const int &x) { printf("%d", x); }
      |      ^~~~~~~~~~
a.cc:448:6: error: redefinition of 'void fast_print(const long long int&)'
  448 | void fast_print(const long long &x) { printf("%lld", x); }
      |      ^~~~~~~~~~
a.cc:159:6: note: 'void fast_print(const long long int&)' previously defined here
  159 | void fast_print(const long long &x) { printf("%lld", x); }
      |      ^~~~~~~~~~
a.cc:449:6: error: redefinition of 'void fast_print(const long long unsigned int&)'
  449 | void fast_print(const unsigned long long &x) { printf("%llu", x); }
      |      ^~~~~~~~~~
a.cc:160:6: note: 'void fast_print(const long long unsigned int&)' previously defined here
  160 | void fast_print(const unsigned long long &x) { printf("%llu", x); }
      |      ^~~~~~~~~~
a.cc:450:6: error: redefinition of 'void fast_print(const double&)'
  450 | void fast_print(const double &x) { printf("%.15lf", x); }
      |      ^~~~~~~~~~
a.cc:161:6: note: 'void fast_print(const double&)' previously defined here
  161 | void fast_print(const double &x) { printf("%.15lf", x); }
      |      ^~~~~~~~~~
a.cc:451:6: error: redefinition of 'void fast_print(const long double&)'
  451 | void fast_print(const long double &x) { printf("%.15Lf", x); }
      |      ^~~~~~~~~~
a.cc:162:6: note: 'void fast_print(const long double&)' previously defined here
  162 | void fast_print(const long double &x) { printf("%.15Lf", x); }
      |      ^~~~~~~~~~
a.cc:452:6: error: redefinition of 'void fast_print(const char&)'
  452 | void fast_print(const char &x) { printf("%c", x); };
      |      ^~~~~~~~~~
a.cc:163:6: note: 'void fast_print(const char&)' previously defined here
  163 | void fast_print(const char &x) { printf("%c", x); };
      |      ^~~~~~~~~~
a.cc:453:6: error: redefinition of 'void fast_print(const std::string&)'
  453 | void fast_print(const string &x) { printf("%s", x.c_str());}
      |      ^~~~~~~~~~
a.cc:164:6: note: 'void fast_print(const std::string&)' previously defined here
  164 | void fast_print(const string &x) { printf("%s", x.c_str());}
      |      ^~~~~~~~~~
a.cc:454:6: error: redefinition of 'void fast_print(const char*)'
  454 | void fast_print(const char v[]) { fast_print((string)v); }
      |      ^~~~~~~~~~
a.cc:165:6: note: 'void fast_print(const char*)' previously defined here
  165 | void fast_print(const char v[]) { fast_print((string)v); }
      |      ^~~~~~~~~~
a.cc:457:6: error: redefinition of 'template<class TFirst, class TSecond> void fast_print(const std::pair<_T1, _T2>&)'
  457 | void fast_print(const pair<TFirst, TSecond> &p) {
      |      ^~~~~~~~~~
a.cc:168:6: note: 'template<class TFirst, class TSecond> void fast_print(const std::pair<_T1, _T2>&)' previously declared here
  168 | void fast_print(const pair<TFirst, TSecond> &p) {
      |      ^~~~~~~~~~
a.cc:464:6: error: redefinition of 'template<class T> void fast_print(const std::vector<_Tp>&)'
  464 | void fast_print(const vector<T> &v) {
      |      ^~~~~~~~~~
a.cc:175:6: note: 'template<class T> void fast_print(const std::vector<_Tp>&)' previously declared here
  175 | void fast_print(const vector<T> &v) {
      |      ^~~~~~~~~~
a.cc:474:6: error: redefinition of 'template<class T> void fast_print(const std::vector<std::vector<_Tp> >&)'
  474 | void fast_print(const vector<vector<T>> &v) {
      |      ^~~~~~~~~~
a.cc:185:6: note: 'template<class T> void fast_print(const std::vector<std::vector<_Tp> >&)' previously declared here
  185 | void fast_print(const vector<vector<T>> &v) {
      |      ^~~~~~~~~~
a.cc:484:6: error: redefinition of 'template<class T> void fast_print(const T&)'
  484 | void fast_print(const T &v) {
      |      ^~~~~~~~~~
a.cc:195:6: note: 'template<class T> void fast_print(const T&)' previously declared here
  195 | void fast_print(const T &v) {
      |      ^~~~~~~~~~
a.cc:496:16: error: redefinition of 'std::string smart_io::print_start'
  496 |         string print_start = "";
      |                ^~~~~~~~~~~
a.cc:207:16: note: 'std::string smart_io::print_start' previously declared here
  207 |         string print_start = "";
      |                ^~~~~~~~~~~
a.cc:497:16: error: redefinition of 'std::string smart_io::sep'
  497 |         string sep = " ";
      |                ^~~
a.cc:208:16: note: 'std::string smart_io::sep' previously declared here
  208 |         string sep = " ";
      |                ^~~
a.cc:498:14: error: redefinition of 'bool smart_io::first_print'
  498 |         bool first_print = false;
      |              ^~~~~~~~~~~
a.cc:209:14: note: 'bool smart_io::first_print' previously defined here
  209 |         bool first_print = false;
      |              ^~~~~~~~~~~
a.cc:500:14: error: redefinition of 'void smart_io::precall_print()'
  500 |         void precall_print() {
      |              ^~~~~~~~~~~~~
a.cc:211:14: note: 'void smart_io::precall_print()' previously defined here
  211 |         void precall_print() {
      |              ^~~~~~~~~~~~~
a.cc:506:14: error: redefinition of 'void smart_io::_print(std::deque<std::__cxx11::basic_string<char> >)'
  506 |         void _print(deque<string>) {}
      |              ^~~~~~
a.cc:217:14: note: 'void smart_io::_print(std::deque<std::__cxx11::basic_string<char> >)' previously defined here
  217 |         void _print(deque<string>) {}
      |              ^~~~~~
a.cc:508:14: error: redefinition of 'template<class T, class ... Args> void smart_io::_print(std::deque<std::__cxx11::basic_string<char> >, T, Args ...)'
  508 |         void _print(deque<string> names, T kek, Args... args) {
      |              ^~~~~~
a.cc:219:14: note: 'template<class T, class ... Args> void smart_io::_print(std::deque<std::__cxx11::basic_string<char> >, T, Args ...)' previously declared here
  219 |         void _print(deque<string> names, T kek, Args... args) {
      |              ^~~~~~
a.cc:524:10: error: redefinition of 'template<class T> std::ostream& operator,(std::ostream&, const T&)'
  524 | ostream &operator,(ostream &os, const T &object) {
      |          ^~~~~~~~
a.cc:235:10: note: 'template<class T> std::ostream& operator,(std::ostream&, const T&)' previously declared here
  235 | ostream &operator,(ostream &os, const T &object) {
      |          ^~~~~~~~
a.cc:535:10: error: redefinition of 'template<class T> std::istream& operator,(std::istream&, T&)'
  535 | istream &operator,(istream &is, T &object) {
      |          ^~~~~~~~
a.cc:246:10: note: 'template<class T> std::istream& operator,(std::istream&, T&)' previously declared here
  246 | istream &operator,(istream &is, T &object) {
      |          ^~~~~~~~
a.cc:549:11: error: redefinition of 'template<class T> T numbers_operation::floor_mod(T, T)'
  549 |         T floor_mod(T a, T b) {
      |           ^~~~~~~~~
a.cc:260:11: note: 'template<class T> T numbers_operation::floor_mod(T, T)' previously declared here
  260 |         T floor_mod(T a, T b) {
      |           ^~~~~~~~~
a.cc:561:8: error: redefinition of 'int main(int, char**)