Wrong Answer

foo.c: In function ‘main’:
foo.c:6:20: warning: ‘ans’ may be used uninitialized [-Wmaybe-uninitialized]
    6 |                 ans-=x;
      |                 ~~~^~~
foo.c:3:27: note: ‘ans’ was declared here
    3 |         int n,x;long long ans;scanf("%d",&n);
      |                           ^~~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Wrong Answer Read -4931435116, expect 9785444374916389.... 1ms 288.0 KiB
#2 Wrong Answer Read -68888024852, expect 5433075237957947.... 5ms 288.0 KiB
#3 Wrong Answer Read -693934613152, expect 5671371002046099.... 48ms 324.0 KiB
#4 Wrong Answer Read -518689539549, expect 5671084590749982.... 49ms 520.0 KiB
#5 Wrong Answer Read 100001, expect 1000000000000000.... 77ms 288.0 KiB

信息

递交者
类型
递交
题目
P1172 LJM没实力
语言
C
递交时间
2024-06-26 16:47:53
评测时间
2024-06-26 16:47:53
评测机
分数
0
总耗时
181ms
峰值内存
520.0 KiB