0_0_30981991_5066.cpp:21:1: error: 's' does not name a type s ^ 0_0_30981991_5066.cpp: In function 'int main()': 0_0_30981991_5066.cpp:63:26: error: 'calc' was not declared in this scope printf("%lld\n",(calc(R)-calc(L-1)+mod)%mod); ^