EEPROM READER not working

I am trying to read the data on the “harddrive” but the serial monito does not give any data out.

could you please help me fix it?

#include <EEPROM.h>
#include <stdio.h>

void setup(void)
{
Serial.begin(9600);
}

int main(void){
int a;
int value;

for(a=0;a<512;a++)
{
value = EEPROM.read(a);

Serial.print(a);
Serial.print("\t");
Serial.print(value);
Serial.println();
}
}

Have you deliberately created a main() function to circumvent the normal Arduino environment ? Apart from anything else, the way that you have written it the setup() function will never be called and the hardware will not be initialised.

My teacher and i tried some difrent things, but we got it to work by making an endless waiting time instead of getting it to stop when it was done

What the?

If you don't fully understand it you (and your teacher) should just stick with setup() and loop() and don't mess around with main()!