Problem conductslip
User asbx
Submission Time 2024-01-01 10:27:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

conductslip.cpp: In function ‘int main()’:
conductslip.cpp:43:14: error: too many arguments to function ‘int getchar()’
43 | getchar(c);
| ^
In file included from /usr/include/stdio.h:864,
from /usr/include/c++/9/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
from conductslip.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:47:1: note: declared here
47 | getchar (void)
| ^~~~~~~
conductslip.cpp:44:14: error: too many arguments to function ‘int getchar()’
44 | getchar(l);
| ^
In file included from /usr/include/stdio.h:864,
from /usr/include/c++/9/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
from conductslip.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:47:1: note: declared here
47 | getchar (void)
| ^~~~~~~