记录详情

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]+4+s[i+j]==n)
               ^
/in/foo.cc:19:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
/in/foo.cc:19:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    if(s(i)+s[j]+4+s[i+j]==n)
                 ^
/in/foo.cc:19:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    if(s(i)+s[j]+4+s[i+j]==n)
                        ^
/in/foo.cc:19:18: error: invalid operands of types 'int (*)(int)' and 'int(int)' to binary 'operator+'
    if(s(i)+s[j]+4+s[i+j]==n)
       ~~~~~~~~~~~^~~~~~~

信息

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