Quote Originally Posted by Jatin Katyal
it doesn't matter with type of max coz its the size of array.
It is a syntax error to try and declare max without a type name.

Besides this, you are using pre-standard headers, e.g., <iostream.h> should be <iostream>. void main should be int main.