Time Exceeded

foo.cc: In function 'void fun(int, int)':
foo.cc:22:5: warning: unused variable 'i' [-Wunused-variable]
 int i;
     ^
foo.cc: In function 'int main()':
foo.cc:33:9: warning: unused variable 'i' [-Wunused-variable]
 int k=0,i,j,a;
         ^
foo.cc:33:11: warning: unused variable 'j' [-Wunused-variable]
 int k=0,i,j,a;
           ^
foo.cc:34:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&n);
 ~~~~~^~~~~~~~~
foo.cc:35:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&a);
 ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1197ms ≥480.0 KiB
#2 Time Exceeded ≥1192ms ≥664.0 KiB

信息

递交者
类型
递交
题目
P1143 编码中有多少个1
语言
C++
递交时间
2021-10-31 10:37:27
评测时间
2021-10-31 10:37:27
评测机
分数
0
总耗时
≥2390ms
峰值内存
≥664.0 KiB