0_0_21750210_4872.cpp: In function 'int main()': 0_0_21750210_4872.cpp:37:60: error: 'ad' was not declared in this scope else if(op[0] == 'S') scanf("%d%d", &x, &val), ad d(x, -val); ^