Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Integer-overflow/XPL0/integer-overflow.xpl0
Normal file
12
Task/Integer-overflow/XPL0/integer-overflow.xpl0
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
int N;
|
||||
[N:= -(-2147483647-1);
|
||||
IntOut(0, N); CrLf(0);
|
||||
N:= 2000000000 + 2000000000;
|
||||
IntOut(0, N); CrLf(0);
|
||||
N:= -2147483647 - 2147483647;
|
||||
IntOut(0, N); CrLf(0);
|
||||
N:= 46341 * 46341;
|
||||
IntOut(0, N); CrLf(0);
|
||||
N:= (-2147483647-1)/-1;
|
||||
IntOut(0, N); CrLf(0);
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue