CPKit
v1.6.1

Integer Overflow Checker

Memory CheckMedium

Verify which standard signed and unsigned data types can fit a specific integer without wrapping or overflows.

Alt+8

Overflow Comparison Panel

TypeAlias (C++)Bounds RangeStatus
int8char / int8_t-128 to 127
uint8unsigned char / uint8_t0 to 255
int16short / int16_t-32768 to 32767
uint16unsigned short / uint16_t0 to 65535
int32int / int32_t-2147483648 to 2147483647
uint32unsigned int / uint32_t0 to 4294967295
int64long long / int64_t-9223372036854775808 to 9223372036854775807
uint64unsigned long long / uint64_t0 to 18446744073709551615

Example Test Cases

Signed 8-bit Max Limit
Input:127
Output:Fits in int8
Load Case
16-bit Bound Transition
Input:32768
Output:Overflows int16, fits in uint16
Load Case
32-bit Bound Transition
Input:2147483648
Output:Overflows int32, fits in uint32
Load Case

Complexity Specs

Time ComplexityO(1)
Space ComplexityO(1)

Contest Notes & Bounds

  • Evaluates integer overflow bounds for standard 8, 16, 32, and 64-bit types.
  • Decimals, variables, or floating values are ignored in check calculations.
  • Aliases show equivalents for char, short, int, long long and unsigned variations in C++.