Compiler Messages

The compiler messages are basically of three kinds: hints, warnings and errors.

A hint

This message means that it is allowed but uncommon, and hence it is better to check if it was done on purpose.

A warning

This message means that it is allowed but should not happen in general.

For instance, if a signal is not used in any constraint, a warning message will be generated (when compiling the program with the --inspect option). Moreover, if it is an input signal x, then the compiler would suggest adding a constraint of the form x * 0 === 0;

pragma circom 2.0.0;

template A(N){
signal input in;
signal intermediate;
signal output out;
intermediate <== 1;
out <== intermediate;
}
component main {public [in]} = A(1);


An error

This message means that it is not allowed and the compilation of the program fails. For instance, one of the most common errors we can make when starting to program in circom is trying to assign a value to a signal using =.

pragma circom 2.0.0;

template A(){
signal in;
in = 1;
}

component main = A();


The compilation fails and the next error is received: "Assignee and assigned types do not match operator."
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.328152596950531, "perplexity": 2809.545370148934}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-49/segments/1669446710734.75/warc/CC-MAIN-20221130092453-20221130122453-00530.warc.gz"}