记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:13:12: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(c>='a'&&c<='z'||c>='A'&&c<='Z') word[pos]=c,pos++;
      ~~~~~~^~~~~~~~
/in/foo.c: In function 'find':
/in/foo.c:29:51: error: 'sum' undeclared (first use in this function)
  if(!flag&&strlen(b)) printf("%s",b),strcpy(words[sum],b),cnt++;
                                                   ^~~
/in/foo.c:29:51: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:29:58: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  if(!flag&&strlen(b)) printf("%s",b),strcpy(words[sum],b),cnt++;
                                                          ^

信息

递交者
类型
递交
题目
P1011 【字符】压缩文本文件
语言
C
递交时间
2019-12-16 19:37:48
评测时间
2019-12-16 19:38:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes