GithubHelp home page GithubHelp logo

crashandcompile's Introduction

Crash and Compile

"A programming contest crossed with a drinking game. What can possibly go wrong?"

Crash And Compile is a ACM-style programming contest crossed with a drinking game, where teams of two people try to solve as many programming problems as they can. As teams compile and run their programs, each time their code fails to compile, produces the incorrect output or segfaults, the team must drink. Meanwhile, our lovely Team Distraction will be doing what they can to make the job of programming while intoxicated all the more difficult and/or enjoyable.

In previous years during this distinctive competition contestants have gone to such lengths as to weld basket-ball sized metal dice to choose their programming language by chance, have written their own language to solve the problems, and have chosen such unorthadox development environments as the clearly superior palm pilot, to a functioning robotic PDP-11/23 complete with antiquated green screen terminal... and in the most audacious of cases, have won the competition without looking at the screen.

Do you have what it takes to Crash And Compile?

The Problems

The /prob directory has the problems we used during the DEF CON Crash and Compile competition.

Input and Output

All programs should read input on standard input, and produce output on standard output. Your program will be run with its input and output redirected to files, and diff will be used to compare your output with the correct answer.

A simple program that does this in C would be:

    #include <stdio.h>

    int main() {
       int i;
       while( scanf("%d", &i) ) {
          printf("%d\n", i);
       }
       return 0;
    }

This would then be compiled by the grader:

    gcc sample.c

And run with sample inputs (in1.txt) and outputs (out1.txt)

in1.txt:

    1
    2
    3

out1.txt:

    1
    2
    3

Invocation:

    ./a.out < in1.txt | diff -wBb - out1.txt

The return code from diff is then used to determine if your program has passed or failed.

crashandcompile's People

Contributors

krux702 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.