0_0_30300115_19073.cpp:24:14: error: expected ')' before 'a'
bool cmp(pow a,pow b)
^
0_0_30300115_19073.cpp:24:20: error: expected ')' before 'b'
bool cmp(pow a,pow b)
^
0_0_30300115_19073.cpp:24:21: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(pow a,pow b)
^
0_0_30300115_19073.cpp:24:21: error: left operand of comma operator cannot resolve address of overloaded function
0_0_30300115_19073.cpp:24:21: error: no context to resolve type of 'std::pow'
0_0_30300115_19073.cpp:25:1: error: expected ',' or ';' before '{' token
{
^
0_0_30300115_19073.cpp:29:1: error: 'pow' does not name a type
pow pow[20001];
^
0_0_30300115_19073.cpp: In function 'int main()':
0_0_30300115_19073.cpp:114:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
cin>>pow[t].value;
^
0_0_30300115_19073.cpp:115:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[t].flag=1;
^
0_0_30300115_19073.cpp:116:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[t].i=i;
^
0_0_30300115_19073.cpp:118:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
cin>>pow[t].value;
^
0_0_30300115_19073.cpp:119:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[t].flag=0;
^
0_0_30300115_19073.cpp:120:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[t].i=i;
^
0_0_30300115_19073.cpp:123:18: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
sort(pow,pow+2*n,cmp);
^
0_0_30300115_19073.cpp:125:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(pow[0].flag)
^
0_0_30300115_19073.cpp:126:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
number[pow[0].i].l=c1;
^
0_0_30300115_19073.cpp:128:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
number[pow[0].i].r=c1;
^
0_0_30300115_19073.cpp:131:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(pow[i].value>pow[i-1].value)
^
0_0_30300115_19073.cpp:131:27: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(pow[i].value>pow[i-1].value)
^
0_0_30300115_19073.cpp:133:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(pow[i].flag)
^
0_0_30300115_19073.cpp:134:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
number[pow[i].i].l=c1;
^
0_0_30300115_19073.cpp:136:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
number[pow[i].i].r=c1;
^
|