sculpture.cpp: In function 'bool can(int)':
sculpture.cpp:19:45: error: too many arguments to function 'bool check(long long int)'
valid[i][j] = check(X, pre[j] - pre[i]);
^
sculpture.cpp:12:6: note: declared here
bool check(long long T) {
^~~~~
sculpture.cpp:26:23: error: too many arguments to function 'bool check(long long int)'
if(check(X, pre[j])) {
^
sculpture.cpp:12:6: note: declared here
bool check(long long T) {
^~~~~
sculpture.cpp: In function 'int main()':
sculpture.cpp:66:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &N, &A, &B);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
sculpture.cpp:68:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &pre[i]);
~~~~~^~~~~~~~~~~~~~~~~