/ Vijos /

记录详情

Compile Error

foo.cc: In function 'void calculate()':
foo.cc:24:5: error: 'memset' was not declared in this scope
     memset(o, false, sizeof(o));
     ^~~~~~
foo.cc:24:5: note: suggested alternative: 'wmemset'
     memset(o, false, sizeof(o));
     ^~~~~~
     wmemset
foo.cc: In function 'void getdata()':
foo.cc:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &n);
     ~~~~~^~~~~~~~~~
foo.cc:18:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d", &a[i]);
         ~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:43:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &t);
     ~~~~~^~~~~~~~~~

信息

递交者
类型
递交
题目
P2059 货币系统
语言
C++
递交时间
2021-02-07 11:14:59
评测时间
2021-02-07 11:14:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes