This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: export | |
version: 0.1.0.0 | |
build-type: Simple | |
cabal-version: >= 1.10 | |
executable export | |
main-is: export.hs | |
build-depends: base | |
, aeson | |
, time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(int argc, char *argv[]) | |
{ | |
char response[20]; | |
scanf("%s", &response); | |
printf("aeiok\n"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
main :: IO () | |
main = do | |
l <- getLine | |
if l == "aei" | |
then putStrLn "aeiok\n" | |
else appendFile "/tmp/rabbocopLog" "failed\n" | |
appendFile "/tmp/rabbocopLog" l | |
appendFile "/tmp/rabbocopLog" (show $ l == "aei") |