Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
1
Task/Integer-overflow/Perl/integer-overflow-1.pl
Normal file
1
Task/Integer-overflow/Perl/integer-overflow-1.pl
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include <stdio.h>
|
||||
11
Task/Integer-overflow/Perl/integer-overflow-2.pl
Normal file
11
Task/Integer-overflow/Perl/integer-overflow-2.pl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use integer;
|
||||
use feature 'say';
|
||||
|
||||
say("Testing 64-bit signed overflow:");
|
||||
say(-(-9223372036854775807-1));
|
||||
say(5000000000000000000+5000000000000000000);
|
||||
say(-9223372036854775807 - 9223372036854775807);
|
||||
say(3037000500 * 3037000500);
|
||||
say((-9223372036854775807-1) / -1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue