QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#282049#6655. 巧克力ucup-team2335#Compile Error//C++141.1kb2023-12-11 10:59:532023-12-11 10:59:54

详细

answer.code: In function ‘void add(long long int&, long long int)’:
answer.code:5:33: error: ‘mod’ was not declared in this scope
    5 | void add(int &x,int y) {x=(x+y)%mod;}
      |                                 ^~~
answer.code: In function ‘long long int get(long long int)’:
answer.code:8:9: error: ‘memset’ was not declared in this scope
    8 |         memset(f,0,sizeof(f));
      |         ^~~~~~
answer.code:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
  +++ |+#include <cstring>
    1 | #define int long long
answer.code: In function ‘void solve()’:
answer.code:36:9: error: ‘read’ was not declared in this scope
   36 |         read(n);read(m);
      |         ^~~~
answer.code:37:9: error: ‘memset’ was not declared in this scope
   37 |         memset(stat,0,sizeof(stat));
      |         ^~~~~~
answer.code:37:9: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
answer.code:42:26: error: ‘puts’ was not declared in this scope
   42 |         if (s==0) return puts("0"),void();
      |                          ^~~~
answer.code:46:49: error: ‘mod’ was not declared in this scope
   46 |         printf("%lld\n",(get(n)+get(m)-get(m-1)+mod)%mod);
      |                                                 ^~~
answer.code:46:9: error: ‘printf’ was not declared in this scope
   46 |         printf("%lld\n",(get(n)+get(m)-get(m-1)+mod)%mod);
      |         ^~~~~~
answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
  +++ |+#include <cstdio>
    1 | #define int long long
answer.code: In function ‘int main()’:
answer.code:50:9: error: ‘read’ was not declared in this scope
   50 |         read(T);while (T--) solve();
      |         ^~~~