invalid types 'float[int]' for array subscript

Hi I am very new to coding and working on a project dealing with an array and I’m confused about the error I’m getting. I couldn’t get the full code in because the actual pressureProfile is too long but what I replaced it with is exactly like I have just a lot shorter.

float pressureProfile[10] = {10, 9 , 8, 7, 6, 5, 4, 3, 2, 1};

void setup() {
  for(int t = 0; t <= 1000; t++){
    float currentPressure = pressureProfile[t][0];
  Serial.println("Shot sequence is done");

void loop() {
  // put your main code here, to run repeatedly:


This declares a one-dimensional array.

float pressureProfile[10]

This tries to access pressureProfile as a two-dimensional array.

    float currentPressure = pressureProfile[t][0];


Thanks a lot! Got it working.