In real embedded systems, you often store device status or sensor data in arrays of structs. You might need to filter only the relevant records based on a field — for example, sensors above a certain threshold.
Your task is to:
Struct Format
Each record contains:
Example-1
Input:
n = 4, threshold = 50
Sensors:
T1 45
T2 67
T3 10
T4 90
Output:
T2 67
T4 90
Example-2
Input:
n = 3, threshold = 100
Sensors:
A1 99
A2 100
A3 101
Output:
A2 100
A3 101
Input
4 50 T1 45 T2 67 T3 10 T4 90
Expected Output
T2 67 T4 90