Problem modulochain
User Jinxuan
Submission Time 2023-12-23 11:46:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modulochain.cpp: In function ‘int32_t main()’:
modulochain.cpp:24:30: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
24 | output(b); putchar_unlocked(" "); output(c); putchar_unlocked(" "); output(d);
| ^~~
| |
| const char*
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 modulochain.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:108:23: note: initializing argument 1 of ‘int putchar_unlocked(int)’
108 | putchar_unlocked (int __c)
| ~~~~^~~
modulochain.cpp:24:64: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
24 | output(b); putchar_unlocked(" "); output(c); putchar_unlocked(" "); output(d);
|