记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:9: warning: statement with no effect [-Wunused-value]
    7 |         scanf str[100];
      |         ^~~~~
/in/foo.c:7:14: error: expected ';' before 'str'
    7 |         scanf str[100];
      |              ^~~~
      |              ;
/in/foo.c:11:27: warning: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   11 |                 if (str[i]="("){
      |                           ^
/in/foo.c:11:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   11 |                 if (str[i]="("){
      |                     ^~~
/in/foo.c:14:27: warning: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   14 |                 if (str[i]=")"){
      |                           ^
/in/foo.c:14:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   14 |                 if (str[i]=")"){
      |                     ^~~
/in/foo.c:18:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   18 |         if(k=j){
      |            ^

信息

递交者
类型
递交
题目
P1005 括号合法性检验
语言
C
递交时间
1 个月前
评测时间
1 个月前
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes