Cohomology of supermanifolds, standard constraints and quantum anomalies