Skip to content

Instantly share code, notes, and snippets.

@thomas-holmes
Created December 1, 2018 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomas-holmes/4bb8469019efcf8db78718867c405fa6 to your computer and use it in GitHub Desktop.
Save thomas-holmes/4bb8469019efcf8db78718867c405fa6 to your computer and use it in GitHub Desktop.
C:\Users\Thomas\Documents>gcc foo.c
foo.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
main(t,_,a)
^~~~
foo.c: In function 'main':
foo.c:2:1: warning: type of 't' defaults to 'int' [-Wimplicit-int]
foo.c:2:1: warning: type of '_' defaults to 'int' [-Wimplicit-int]
C:\Users\Thomas\Documents>./a.exe
'.' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Thomas\Documents>a.exe
On the first day of Christmas my true love gave to me
a partridge in a per tree.
On the second day of Christmas my true love gave to me
two turtle doves
and a partridge in a per tree.
On the third day of Christmas my true love gave to me
three french hens, two turtle doves
and a partridge in a per tree.
On the fourth day of Christmas my true love gave to me
four calling birds, three french hens, two turtle doves
and a partridge in a per tree.
On the fifth day of Christmas my true love gave to me
five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a per tree.
On the sixth day of Christmas my true love gave to me
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a per tree.
On the seventh day of Christmas my true love gave to me
seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a per tree.
On the eigth day of Christmas my true love gave to me
eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a per tree.
On the ninth day of Christmas my true love gave to me
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a per tree.
On the tenth day of Christmas my true love gave to me
ten lords a-leaping,
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a per tree.
On the eleventh day of Christmas my true love gave to me
eleven pipers piping, ten lords a-leaping,
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a per tree.
On the twelfth day of Christmas my true love gave to me
twelve drummers drumming, eleven pipers piping, ten lords a-leaping,
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a per tree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment