记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:19:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    if(s(i)+s[j]+s[i+j]==n-4)
               ^
/in/foo.cc:19:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
/in/foo.cc:19:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    if(s(i)+s[j]+s[i+j]==n-4)
                      ^
/in/foo.cc:19:16: error: invalid operands of types 'int (*)(int)' and 'int(int)' to binary 'operator+'
    if(s(i)+s[j]+s[i+j]==n-4)
       ~~~~~~~~~^~~~~~~

信息

递交者
类型
递交
题目
P1170 火柴棒等式
语言
C++
递交时间
2021-01-28 21:36:33
评测时间
2021-01-28 21:36:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes