/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:13: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[200]' [-Wformat=]
    7 |     scanf("%s",&a);
      |            ~^  ~~
      |             |  |
      |             |  char (*)[200]
      |             char*
foo.cc:49:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   49 |  for(i=0;i<num;i++){
      |            ^~~
foo.cc:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    7 |     scanf("%s",&a);
      |     ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1849 表达式求值
语言
C++
递交时间
2022-03-18 19:54:59
评测时间
2022-03-18 19:54:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes