void main on-line judge compiler error?
Posted: Sun Mar 16, 2008 6:30 am
why following code on-line judge compiler error?
when I using following code, it's ok.
I want to ask, when I using int main(),
what value should I return?return 0? or other value?
and why I can't use void main instead of int main?
Code: Select all
void main(){
}
Code: Select all
int main(){
return 0;
}
what value should I return?return 0? or other value?
and why I can't use void main instead of int main?