/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:28:19: error: array must be initialized with a brace-enclosed initializer
   28 |     int num[numc]=t;
      |                   ^
foo.cc:42:34: error: expected ';' before '}' token
   42 |     num[numc-1]==num[numc-1]*temp
      |                                  ^
      |                                  ;
   43 |     }
      |     ~                             
foo.cc:42:16: warning: statement has no effect [-Wunused-value]
   42 |     num[numc-1]==num[numc-1]*temp
      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:46:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   46 |  for(int 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:53:03
评测时间
2022-03-18 19:53:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes