ofx simple Array of circles

Hi, I am having trouble creating an array of circles. What exactly am I doing wrong here?

#include “testApp.h”

int sampleArray[30];
int x=40;
int y=40;
int width= 1024;
int height= 768;

//--------------------------------------------------------------
void testApp::setup(){
ofBackground(50,180,255);

for (int i=0; i<30; i++){
sampleArray[i]=i*width/30;
}

for (int i=0; i<30; i++){
sampleArray[i]=i*height/30;
}
}

//--------------------------------------------------------------
void testApp::update(){

}

//--------------------------------------------------------------
void testApp::draw(){
for (int i=0; i<30; i++){
for (int j=0; j<30; j++){
}
}
ofCircle(x[i], y[j], 40);

}

Not sure what exactly you want to do, but your Array is wrong. It’s supposed to be like this: sampleArray[i]

Have a look: http://www.cplusplus.com/doc/tutorial/arrays/