foo.cc: In function 'int main()':
foo.cc:43:14: error: too many arguments to function 'int getchar()'
getchar(s);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8.2/cstdio:42,
from /usr/include/c++/4.8.2/ext/string_conversions.h:43,
from /usr/include/c++/4.8.2/bits/basic_string.h:2815,
from /usr/include/c++/4.8.2/string:52,
from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
from /usr/include/c++/4.8.2/bits/ios_base.h:41,
from /usr/include/c++/4.8.2/ios:42,
from /usr/include/c++/4.8.2/ostream:38,
from /usr/include/c++/4.8.2/iostream:39,
from foo.cc:1:
/usr/include/bits/stdio.h:44:1: note: declared here
getchar (void)
^