I would have expected a grade of 'F' in a C++ course!
Maybe even less than an 'F'!! (int main(){ return 0;})
int[5] arr;
int min = INT_MAX,max = 0;
I would expect a problem if the user enters all negative numbers.
Magic numbers? 'i' don't get it.
Hey, I entered "-#@&$" here!!
On Comeau? Did you mean, "It runs like a JAM." (more like 'jelly').
I think what you were trying to show was:
void Painfull(int ouch){
while(true){ for(;

{ Painfull(++ouch);}}
return;
}
int main(){
Painfull(42);
return 0;
}
Pass that one through your "conforming compiler"! <G>
Sorry Fred. The devil made me do it!!
(pretty mean, Fred!! Do you also pull the wings off of flies? :-} )
[ Thanks for the use of your post, osmium. (I didn't load that message.) ]