Comeau C/C++ 4.3.10.1 (Oct 6 2008 11:28:09) for ONLINE_EVALUATION_BETA2
Copyright 1988-2008 Comeau Computing. All rights reserved.
MODE:strict errors C++ C++0x_extensions
"ComeauTest.c", line 11: error: type name is not allowed
cin>> int x;
^
"ComeauTest.c", line 11: error: expected a ";" (perhaps on the previous statement)
cin>> int x;
^
"ComeauTest.c", line 14: error: type name is not allowed
cin>> int y;
^
"ComeauTest.c", line 14: error: expected a ";" (perhaps on the previous statement)
cin>> int y;
^
"ComeauTest.c", line 16: warning: variable "y" is used before its value is set
cout<<"your age is:"<< age ( x, 2011 - y ) <<"\n";
^
"ComeauTest.c", line 16: warning: variable "x" is used before its value is set
cout<<"your age is:"<< age ( x, 2011 - y ) <<"\n";
^
"ComeauTest.c", line 21: error: expected a declaration
Wild guess: Should this be in a function block?
{
^
5 errors detected in the compilation of "ComeauTest.c".