Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:31: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%ld%ld%ld", &a, &b, &c);
                               ^
/in/foo.cc:5:31: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:5:31: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'long long int*' [-Wformat=]
/in/foo.cc:6:25: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%ld\n", (a+b)/c);
                         ^
# 状态 耗时 内存占用
#1 Accepted 1ms 328.0 KiB
#2 Accepted 1ms 400.0 KiB
#3 Accepted 1ms 332.0 KiB
#4 Accepted 1ms 344.0 KiB

信息

递交者
类型
递交
题目
P2312 1.3.3:计算(a+b)/c的值
语言
C++
递交时间
2024-06-08 16:33:13
评测时间
2024-06-08 16:33:13
评测机
分数
100
总耗时
6ms
峰值内存
400.0 KiB