Language: C++

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var (
	c string
)

func main() {
	readVariables()
	fmt.Println(string(int(c[0]) + 1))
}

func readVariables() {
	c = nextStr()
}

/* Template */

var scanner *bufio.Scanner

func init() {
	Max := 1001001
	scanner = bufio.NewScanner(os.Stdin)
	scanner.Buffer(make([]byte, 0, Max), Max)
	scanner.Split(bufio.ScanWords)
}

//nextInt converts next token from stdin and returns integer value.
//nextInt panics when conversion into an integer fails.
func nextInt() int {
	if !scanner.Scan() {
		panic("No more token.")
	}
	num, err := strconv.Atoi(scanner.Text())
	if err != nil {
		panic("nextInt(): cannot convert to int: " + scanner.Text())
	}
	return num
}

func nextStr() string {
	if !scanner.Scan() {
		panic("No more token.")
	}
	return scanner.Text()
}

// MinInt returns minimum argument
func MinInt(x, y int) int {
	if x < y {
		return x
	} else {
		return y
	}
}

//MaxInt returns maximum argument
func MaxInt(x, y int) int {
	if x < y {
		return y
	} else {
		return x
	}
}

//AbsInt returns |x| for x
func AbsInt(x int) int {
	if x < 0 {
		return -x
	}
	return x
}

//ModPow calculates integer power with modulo operation
//if modulo <= 1, it powers w/o module operation
//if base < 0, return value might be negative too.
func ModPow(base, exponent, modulo int) (result int) {
	result = 1
	for exponent > 0 {
		if exponent%2 == 1 {
			result *= base
			if modulo > 1 {
				result %= modulo
			}
		}
		base *= base
		if modulo > 1 {
			base %= modulo
		}
		exponent /= 2
	}
	return
}

//Gcd
func Gcd(vals ...int) (result int) {
	if len(vals) == 0 {
		return
	}
	result = vals[0]
	for i := 1; i < len(vals); i++ {
		result = gcd(result, vals[i])
	}
	return
}

func gcd(x, y int) int {
	x, y = AbsInt(x), AbsInt(y)
	for y > 0 {
		x, y = y, x%y
	}
	return x
}

//Lcm
func Lcm(vals ...int) (result int) {
	if len(vals) == 0 {
		return
	}
	result = vals[0]
	for i := 1; i < len(vals); i++ {
		result = lcm(result, vals[i])
	}
	return
}

func lcm(x, y int) int {
	return x * y / gcd(x, y)
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:19:1: error: 'func' does not name a type
   19 | func readVariables() {
      | ^~~~
a.cc:25:1: error: 'var' does not name a type
   25 | var scanner *bufio.Scanner
      | ^~~
a.cc:36:1: error: 'func' does not name a type
   36 | func nextInt() int {
      | ^~~~
a.cc:47:1: error: 'func' does not name a type
   47 | func nextStr() string {
      | ^~~~
a.cc:55:1: error: 'func' does not name a type
   55 | func MinInt(x, y int) int {
      | ^~~~
a.cc:64:1: error: 'func' does not name a type
   64 | func MaxInt(x, y int) int {
      | ^~~~
a.cc:73:1: error: 'func' does not name a type
   73 | func AbsInt(x int) int {
      | ^~~~
a.cc:83:1: error: 'func' does not name a type
   83 | func ModPow(base, exponent, modulo int) (result int) {
      | ^~~~
a.cc:102:1: error: 'func' does not name a type
  102 | func Gcd(vals ...int) (result int) {
      | ^~~~
a.cc:113:1: error: 'func' does not name a type
  113 | func gcd(x, y int) int {
      | ^~~~
a.cc:122:1: error: 'func' does not name a type
  122 | func Lcm(vals ...int) (result int) {
      | ^~~~
a.cc:133:1: error: 'func' does not name a type
  133 | func lcm(x, y int) int {
      | ^~~~