I am stuck… I don’t know where is the bug.Can anyone help me out?

* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.

const n = parseInt(readline()); // the number of temperatures to analyse
var inputs = readline().split(' ');
var arr=[];
for (let i = 0; i < n; i++) {
    var t = parseInt(inputs[i]); // a temperature expressed as an integer ranging from -273 to 5526
     if(t<0){return 1}

var closeToZero=Math.min(...arr);
// if(closeToZero<0){return 1}

// Write an action using print()
// To debug: printErr('Debug messages...');


A post was merged into an existing topic: Temperatures puzzle discussion