Task: | Kyselyt |
Sender: | viktor |
Submission time: | 2017-10-04 22:53:03 +0300 |
Language: | Haskell |
Status: | COMPILE ERROR |
Compiler report
input/code.hs:7:25: Not in scope: `pure'
Code
import Control.Monad (replicateM, forM_) main = do let getNth n = concatMap show [1..] !! n rs <- readLn ns <- replicateM rs readLn forM_ ns $ putStrLn . pure . getNth . pred