/ AKIOI OJ /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
         scanf("%d%d%d", &b, &p, &k);
                                   ^
/in/foo.cc:9:35: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:9:35: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
/in/foo.cc:17:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
         printf("%d\n", ans);//输出
                           ^
/in/foo.cc:8:24: warning: variable 'a' set but not used [-Wunused-but-set-variable]
         long long b=0, a=0, p=0, k=0, ans=1, c=0;
                        ^
/in/foo.cc:8:46: warning: variable 'c' set but not used [-Wunused-but-set-variable]
         long long b=0, a=0, p=0, k=0, ans=1, c=0;
                                              ^
# 状态 耗时 内存占用
#1 Accepted 5ms 332.0 KiB
#2 Accepted 3ms 336.0 KiB

信息

递交者
类型
递交
题目
P1005 灰灰的KPS / 【模板】快速幂
语言
C++
递交时间
2023-10-09 07:58:43
评测时间
2023-10-09 07:58:43
评测机
分数
100
总耗时
8ms
峰值内存
336.0 KiB