Problem snakesnack
User user123
Submission Time 2023-11-10 22:42:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snakesnack.cpp: In function ‘int main()’:
snakesnack.cpp:62:10: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
62 | puts(' ');
| ^~~
| |
| char
In file included from /usr/include/c++/9/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
from snakesnack.cpp:3:
/usr/include/stdio.h:632:30: note: initializing argument 1 of ‘int puts(const char*)’
632 | extern int puts (const char *__s);
| ~~~~~~~~~~~~^~~