proc solve(): int = var N = readLine(stdin).toInt() return N echo(solve)
5
prog.nim(3, 24) Error: type mismatch: got (string) but expected one of: toInt(f: float): int
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!