Read integers from standard input, separated by spaces or newlines. The number of values is not known in advance; reading ends when end of input (EOF) is reached.
Print to standard output, separated by a space, the maximum value and its position (first occurrence, counting from 1).
If no values are read, print the word vid.
Data is read from standard input (in the format described), not from a file. Use while (cin >> x) to detect end of input.