#CCBCHBAHAI0000122. Phân loại truy cập a[n] (Classify the Access a[n])
Phân loại truy cập a[n] (Classify the Access a[n])
Classify the Access a[n]
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
An array contains exactly elements. With C's zero-based indexing, the valid elements are
Consider the access a[n]. Classify this access according to C array bounds. Do not attempt to predict a concrete value from memory outside the array.
Input
One line contains the integer .
Output
Print exactly UNDEFINED_BEHAVIOR.
Subtasks
Subtask 1 (100 points): .
Examples
Input
5
Output
UNDEFINED_BEHAVIOR
Explanation
For , valid indices are . Index is immediately past the last element. Reading a[5] is an out-of-bounds array access and has undefined behavior, so no numeric value may be predicted for it.