记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:19:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    if(s(i)+s[j]+4+s[i+j]==n)
               ^
foo.cc:19:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    if(s(i)+s[j]+4+s[i+j]==n)
       ~~~~^~~~~
foo.cc:19:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    if(s(i)+s[j]+4+s[i+j]==n)
       ~~~~~~~~~^~
foo.cc:19:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    if(s(i)+s[j]+4+s[i+j]==n)
                        ^
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:03
评测时间
2021-01-28 21:35:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes