记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
   scanf("%d%d",l,r);
                   ^
/in/foo.cc:15:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
/in/foo.cc:16:30: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   printf("%d",b[r] - b[l - 1]);
                              ^
/in/foo.cc:15:20: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized]
   scanf("%d%d",l,r);
                    ^
/in/foo.cc:15:20: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
# 状态 耗时 内存占用
#1 Runtime Error 15ms 640.0 KiB
#2 Runtime Error 35ms 1.066 MiB
#3 Runtime Error 12ms 552.0 KiB
#4 Runtime Error 11ms 540.0 KiB
#5 Runtime Error 17ms 620.0 KiB

信息

递交者
类型
递交
题目
【模板】序列前缀和
语言
C++
递交时间
2021-06-11 21:36:14
评测时间
2021-06-11 21:36:14
评测机
分数
0
总耗时
93ms
峰值内存
1.066 MiB