/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:8:8: warning: unused variable 's' [-Wunused-variable]
    8 |  int n,s;scanf("%d",&n);
      |        ^
foo.cc:6:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    6 |  freopen("chiptest.in","r",stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:7:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    7 |  freopen("chiptest.out","w",stdout);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:8:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |  int n,s;scanf("%d",&n);
      |          ~~~~~^~~~~~~~~
foo.cc:11:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |    scanf("%d",&a[j][i]);
      |    ~~~~~^~~~~~~~~~~~~~~
Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1 > 1 3 \ No newline at end 3ms 256.0 KiB
#2 Wrong Answer 0a1 > 2 3 \ No newline at end 3ms 256.0 KiB
#3 Wrong Answer 0a1 > 1 3 2ms 384.0 KiB
#4 Wrong Answer 0a1 > 1 \ No newline at end of 1ms 384.0 KiB
#5 Wrong Answer 0a1 > 2 3 5 \ No newline at en 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1034 芯片测试
题目数据
下载
语言
C++
递交时间
2022-02-19 20:32:07
评测时间
2022-02-19 20:32:07
评测机
分数
0
总耗时
13ms
峰值内存
384.0 KiB