C:错误:预期')'之前';' 代币

aho*_*ota 11 c

这似乎是最简单的代码,但我不知道为什么它不会编译:

    switch(choice) {
        case 0:
            printf("%d", LOOP_LIMIT); /* this line gives the error */
            break;
        case 1:
Run Code Online (Sandbox Code Playgroud)

当我评论出这条线时,它编译得很好

nos*_*nos 38

你的代码有这样的东西:

#define LOOP_LIMIT 10;
                     ^
                    Remove this semicolon.
Run Code Online (Sandbox Code Playgroud)