0_0_38199614_7419.cpp: In function 'int main()':
0_0_38199614_7419.cpp:69:50: error: expected '}' before ')' token
st.push(abs({2 * a[id] * newx + b[id]), id});
^
0_0_38199614_7419.cpp:69:55: error: expected ')' before '}' token
st.push(abs({2 * a[id] * newx + b[id]), id});
^
0_0_38199614_7419.cpp:69:56: error: expected primary-expression before ')' token
st.push(abs({2 * a[id] * newx + b[id]), id});
^
0_0_38199614_7419.cpp: At global scope:
0_0_38199614_7419.cpp:73:5: error: expected unqualified-id before 'while'
while (!st.empty()) {
^
0_0_38199614_7419.cpp:79:5: error: expected unqualified-id before 'for'
for (int i = 1; i <= n; i++)
^
0_0_38199614_7419.cpp:79:21: error: 'i' does not name a type
for (int i = 1; i <= n; i++)
^
0_0_38199614_7419.cpp:79:29: error: 'i' does not name a type
for (int i = 1; i <= n; i++)
^
0_0_38199614_7419.cpp:81:5: error: 'cout' does not name a type
cout << endl;
^
0_0_38199614_7419.cpp:82:5: error: 'cout' does not name a type
cout << sum << endl;
^
0_0_38199614_7419.cpp:83:5: error: expected unqualified-id before 'return'
return 0;
^
0_0_38199614_7419.cpp:84:1: error: expected declaration before '}' token
}
^
|