Language: C++

#include <algorithm>
#include <string>
#include<vector>

//AtCoderC++.cpp

using namespace std;

template<typename T> void Show(const vector<vector<T>>& v, string delimiter = " ") {
	for (int i = 0; i < v.size(); i++) {
		for (int j = 0; j < v[i].size(); j++) {
			cout << v[i][j];
			if (j != v[i].size() - 1) {
				cout << delimiter;
			} else {
				cout << endl;
			}
		}
	}
}
template<typename T> void Show(const vector<T>& v, string delimiter = " ") {
	for (int i = 0; i < v.size(); i++) {
		cout << v[i];
		if (i != v.size() - 1) {
			cout << delimiter;
		} else {
			cout << endl;
		}
	}
}
template<typename T> vector<T> getUniform(T value, int n) {
	vector<vector<T>> ts;
	ts.resize(n);
	for (int i = 0; i < n; i++) {
		ts[i] = value;
	}
	return ts;
}
template<typename T> vector<vector<T>> getUniform(T value, int row, int col) {
	vector<vector<T>> ts;
	ts.resize(row);
	for (int i = 0; i < row; i++) {
		ts[i].resize(col);
		for (int j = 0; j < col; j++) {
			ts[i][j] = value;
		}
	}
	return ts;
}
bool All(vector<vector<bool>> ts) {
	int h = ts.size();
	int w = ts[0].size();
	for (int i = 0; i < h; i++)
		for (int j = 0; j < w; j++)
			if (!ts[i][j])return false;
	return true;
}


vector<string> split(string& content, char delim) {
	auto ss = vector<string>();
	string s = "";
	for (size_t i = 0; i < content.length(); i++) {
		if (content[i] == delim) {
			ss.push_back(s);
			s = "";
			continue;
		}
		s += content[i];
	}
	if (s != "")ss.push_back(s);
	return ss;
}

int main() {
	int A, B; cin >> A >> B;
	if (A < 6)cout << 0 << endl;
	else if (A < 13)cout << B / 2 << endl;
	else cout << B << endl;
}


Compiler output:
a.cc: In function 'void Show(const std::vector<std::vector<T> >&, std::string)':
a.cc:12:25: error: 'cout' was not declared in this scope
   12 |                         cout << v[i][j];
      |                         ^~~~
a.cc:4:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include<vector>
  +++ |+#include <iostream>
    4 | 
a.cc:16:41: error: 'endl' was not declared in this scope
   16 |                                 cout << endl;
      |                                         ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include<vector>
  +++ |+#include <ostream>
    4 | 
a.cc: In function 'void Show(const std::vector<T>&, std::string)':
a.cc:23:17: error: 'cout' was not declared in this scope
   23 |                 cout << v[i];
      |                 ^~~~
a.cc:23:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:33: error: 'endl' was not declared in this scope
   27 |                         cout << endl;
      |                                 ^~~~
a.cc:27:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc: In function 'int main()':
a.cc:76:19: error: 'cin' was not declared in this scope
   76 |         int A, B; cin >> A >> B;
      |                   ^~~
a.cc:76:19: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:77:19: error: 'cout' was not declared in this scope
   77 |         if (A < 6)cout << 0 << endl;
      |                   ^~~~
a.cc:77:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:77:32: error: 'endl' was not declared in this scope
   77 |         if (A < 6)cout << 0 << endl;
      |                                ^~~~
a.cc:77:32: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:78:25: error: 'cout' was not declared in this scope
   78 |         else if (A < 13)cout << B / 2 << endl;
      |                         ^~~~
a.cc:78:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:78:42: error: 'endl' was not declared in this scope
   78 |         else if (A < 13)cout << B / 2 << endl;
      |                                          ^~~~
a.cc:78:42: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:79:14: error: 'cout' was not declared in this scope
   79 |         else cout << B << endl;
      |              ^~~~
a.cc:79:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:79:27: error: 'endl' was not declared in this scope
   79 |         else cout << B << endl;
      |                           ^~~~
a.cc:79:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'