import strutils proc solve(): int = var N = readLine(stdin).parseInt() return N echo(solve)
5
prog.nim(9, 10) Error: type mismatch: got (proc (): int) but expected one of: $(x: int64): string $(x: string): string $(x: bool): string $(x: ordinal[T]): string $(x: char): string $(x: cstring): string $(x: float): string $(x: int): string
Standard output is empty