Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:15: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%d",&n);
               ^
/in/foo.cc:7:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%d",&a[i]);
                   ^
/in/foo.cc:9:36: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%d %d %d %d",&m,&p1,&s1,&s2);
                                    ^
/in/foo.cc:9:36: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:9:36: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
/in/foo.cc:9:36: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long int*' [-Wformat=]
/in/foo.cc:39:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d ",ans);
                  ^
/tmp/ccaTK8Qd.o: In function `main':
foo.cc:(.text.startup+0x5): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccaTK8Qd.o
foo.cc:(.text.startup+0x2f): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccaTK8Qd.o
foo.cc:(.text.startup+0x5b): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccaTK8Qd.o
foo.cc:(.text.startup+0x95): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccaTK8Qd.o
foo.cc:(.text.startup+0xbe): relocation truncated to fit: R_X86_64_PC32 against symbol `dragon' defined in .bss section in /tmp/ccaTK8Qd.o
foo.cc:(.text.startup+0xc9): relocation truncated to fit: R_X86_64_PC32 against symbol `tiger' defined in .bss section in /tmp/ccaTK8Qd.o
foo.cc:(.text.startup+0x171): relocation truncated to fit: R_X86_64_PC32 against symbol `ans' defined in .bss section in /tmp/ccaTK8Qd.o
foo.cc:(.text.startup+0x1de): relocation truncated to fit: R_X86_64_PC32 against symbol `ans' defined in .bss section in /tmp/ccaTK8Qd.o
foo.cc:(.text.startup+0x1fb): relocation truncated to fit: R_X86_64_PC32 against symbol `ans' defined in .bss section in /tmp/ccaTK8Qd.o
foo.cc:(.text.startup+0x254): relocation truncated to fit: R_X86_64_PC32 against symbol `dragon' defined in .bss section in /tmp/ccaTK8Qd.o
foo.cc:(.text.startup+0x25b): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
P2232 龙虎斗
语言
C++
递交时间
2021-10-24 10:04:26
评测时间
2021-10-24 10:04:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes