/ Vijos /

记录详情

Compile Error

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)
 ^

信息

递交者
类型
递交
题目
P1656 萌萌赶考
语言
C++
递交时间
2020-11-01 16:53:19
评测时间
2020-11-01 16:53:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes