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)提供评测服务