Language: C

package main

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

func main() {
	k := readi()
	a := readi()
	b := readi()

	for i := a; i <= b; i++ {
		if i%k == 0 {
			fmt.Println("OK")
			return
		}
	}
	fmt.Println("NG")
}

func mod(a, b float64) float64 {
	for a >= b {
		a -= b
	}
	return a
}

// IO---------------------------------------------------

func readi() (n int) {
	fmt.Scan(&n)
	return
}

func readf() (n float64) {
	fmt.Scan(&n)
	return
}

func reads() (n string) {
	fmt.Scan(&n)
	return
}

var rdr = bufio.NewReaderSize(os.Stdin, 1000000)

func readLine() string {
	buf := make([]byte, 0, 1000000)
	for {
		l, p, e := rdr.ReadLine()
		if e != nil {
			panic(e)
		}
		buf = append(buf, l...)
		if !p {
			break
		}
	}
	return string(buf)
}

func readSlice() []string {
	return strings.Split(readLine(), " ")
}

func atoi(a []string) (b []int) {
	b = make([]int, len(a))
	for i := range a {
		b[i], _ = strconv.Atoi(a[i])
	}
	return
}

func atof(a []string) (b []float64) {
	b = make([]float64, len(a))
	for i := range a {
		b[i], _ = strconv.ParseFloat(a[i], 64)
	}
	return
}

func readSlice2(n int) (a []int, b []int) {
	a = make([]int, n)
	b = make([]int, n)
	for i := 0; i < n; i++ {
		fmt.Scan(&a[i], &b[i])
	}
	return
}

func readFloatSlice2(n int) (a []float64, b []float64) {
	a = make([]float64, n)
	b = make([]float64, n)
	for i := 0; i < n; i++ {
		fmt.Scan(&a[i], &b[i])
	}
	return
}

func yesOrNo(b bool) {
	if b {
		fmt.Println("Yes")
		return
	}
	fmt.Println("No")
}

func yesorNO(b bool) {
	if b {
		fmt.Println("YES")
		return
	}
	fmt.Println("NO")
}

func yesorno(b bool) {
	if b {
		fmt.Println("yes")
		return
	}
	fmt.Println("no")
}

// calc---------------------------------------------------

func abs(a int) int {
	if a > 0 {
		return a
	}
	return -a
}

func ave(a []int) (ave int) {
	for i := 0; i < len(a); i++ {
		ave += a[i]
	}
	ave /= len(a)
	return
}

func eq(a []string, b []string) bool {
	for i := 0; i < len(a); i++ {
		if a[i] != b[i] {
			return false
		}
	}
	return true
}

func gcd(a, b int) int {
	if b == 0 {
		return a
	}
	return gcd(b, a%b)
}

func max(a ...int) int {
	max := a[0]
	for i := 1; i < len(a); i++ {
		if max < a[i] {
			max = a[i]
		}
	}
	return max
}

func min(a ...int) int {
	min := a[0]
	for i := 1; i < len(a); i++ {
		if min > a[i] {
			min = a[i]
		}
	}
	return min
}

func mid(a []int) int {
	sort.Ints(a)
	return a[len(a)/2]
}

func sum(a []int) (ans int) {
	for i := range a {
		ans += a[i]
	}
	return
}


Compiler output:
main.c:1:1: error: unknown type name 'package'
    1 | package main
      | ^~~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    3 | import (
      | ^~~~~~
main.c:26:1: error: unknown type name 'func'
   26 | func mod(a, b float64) float64 {
      | ^~~~
main.c:26:14: error: expected ')' before 'float64'
   26 | func mod(a, b float64) float64 {
      |              ^~~~~~~~
      |              )
main.c:35:1: error: unknown type name 'func'
   35 | func readi() (n int) {
      | ^~~~
main.c:35:15: error: unknown type name 'n'
   35 | func readi() (n int) {
      |               ^
main.c:40:1: error: unknown type name 'func'
   40 | func readf() (n float64) {
      | ^~~~
main.c:40:15: error: unknown type name 'n'
   40 | func readf() (n float64) {
      |               ^
main.c:45:1: error: unknown type name 'func'
   45 | func reads() (n string) {
      | ^~~~
main.c:45:15: error: unknown type name 'n'
   45 | func reads() (n string) {
      |               ^
main.c:50:1: error: unknown type name 'var'
   50 | var rdr = bufio.NewReaderSize(os.Stdin, 1000000)
      | ^~~
main.c:50:11: error: 'bufio' undeclared here (not in a function)
   50 | var rdr = bufio.NewReaderSize(os.Stdin, 1000000)
      |           ^~~~~
main.c:50:31: error: 'os' undeclared here (not in a function)
   50 | var rdr = bufio.NewReaderSize(os.Stdin, 1000000)
      |                               ^~
main.c:52:1: error: expected ',' or ';' before 'func'
   52 | func readLine() string {
      | ^~~~
main.c:67:1: error: unknown type name 'func'
   67 | func readSlice() []string {
      | ^~~~
main.c:67:6: error: 'readSlice' declared as function returning an array
   67 | func readSlice() []string {
      |      ^~~~~~~~~
main.c: In function 'readSlice':
main.c:67:20: error: expected declaration specifiers before 'string'
   67 | func readSlice() []string {
      |                    ^~~~~~
main.c:71:1: error: unknown type name 'func'
   71 | func atoi(a []string) (b []int) {
      | ^~~~
main.c:71:11: error: unknown type name 'a'
   71 | func atoi(a []string) (b []int) {
      |           ^
main.c:79:1: error: unknown type name 'func'
   79 | func atof(a []string) (b []float64) {
      | ^~~~
main.c:79:11: error: unknown type name 'a'
   79 | func atof(a []string) (b []float64) {
      |           ^
main.c:87:1: error: unknown type name 'func'
   87 | func readSlice2(n int) (a []int, b []int) {
      | ^~~~
main.c:87:17: error: unknown type name 'n'
   87 | func readSlice2(n int) (a []int, b []int) {
      |                 ^
main.c:96:1: error: unknown type name 'func'
   96 | func readFloatSlice2(n int) (a []float64, b []float64) {
      | ^~~~
main.c:96:22: error: unknown type name 'n'
   96 | func readFloatSlice2(n int) (a []float64, b []float64) {
      |                      ^
main.c:105:1: error: unknown type name 'func'
  105 | func yesOrNo(b bool) {
      | ^~~~
main.c:105:14: error: unknown type name 'b'
  105 | func yesOrNo(b bool) {
      |              ^
main.c:113:1: error: unknown type name 'func'
  113 | func yesorNO(b bool) {
      | ^~~~
main.c:113:14: error: unknown type name 'b'
  113 | func yesorNO(b bool) {
      |              ^
main.c:121:1: error: unknown type name 'func'
  121 | func yesorno(b bool) {
      | ^~~~
main.c:121:14: error: unknown type name 'b'
  121 | func yesorno(b bool) {
      |              ^
main.c:131:1: error: unknown type name 'func'
  131 | func abs(a int) int {
      | ^~~~
main.c:131:10: error: unknown type name 'a'
  131 | func abs(a int) int {
      |          ^
main.c:138:1: error: unknown type name 'func'
  138 | func ave(a []int) (ave int) {
      | ^~~~
main.c:138:10: error: unknown type name 'a'
  138 | func ave(a []int) (ave int) {
      |          ^
main.c:146:1: error: unknown type name 'func'
  146 | func eq(a []string, b []string) bool {
      | ^~~~
main.c:146:9: error: unknown type name 'a'
  146 | func eq(a []string, b []string) bool {
      |         ^
main.c:146:21: error: unknown type name 'b'
  146 | func eq(a []string, b []string) bool {
      |                     ^
main.c:155:1: error: unknown type name 'func'
  155 | func gcd(a, b int) int {
      | ^~~~
main.c:155:14: error: expected ')' before 'int'
  155 | func gcd(a, b int) int {
      |              ^~~~
      |              )
main.c:162:1: error: unknown type name 'func'
  162 | func max(a ...int) int {
      | ^~~~
main.c:162:11: error: expected ')' before '...' token
  162 | func max(a ...int) int {
      |           ^~~~
      |           )
main.c:172:1: error: unknown type name 'func'
  172 | func min(a ...int) int {
      | ^~~~
main.c:172:11: error: expected ')' before '...' token
  172 | func min(a ...int) int {
      |           ^~~~
      |           )
main.c:182:1: error: unknown type name 'func'
  182 | func mid(a []int) int {
      | ^~~~
main.c:182:10: error: unknown type name 'a'
  182 | func mid(a []int) int {
      |          ^
main.c:187:1: error: unknown type name 'func'
  187 | func sum(a []int) (ans int) {
      | ^~~~
main.c:187:10: error: unknown type name 'a'
  187 | func sum(a []int) (ans int) {
      |          ^
main.c:193: error: expected '{' at end of input