[ create a new paste ] login | about

Link: http://codepad.org/kUKjAFSb    [ raw code | output | fork ]

C, pasted on Feb 19:
1
2
3
4
5
6
7
8
#include <stdio.h>
#include <assert.h>
#include <math.h>
int main(int argc, char **argv){
    assert( sqrt( 42 * 42) == 42 );
    assert( sqrt( -1 * -1) == -1 );
    return 0;
}


Output:
1
2
3
t: t.c:7: main: Assertion `sqrt( -1 * -1) == -1' failed.

Disallowed system call: SYS_kill


Create a new paste based on this one


Comments: