Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我编译时,我不断收到这个错误。
mario.c:4:1: error: expected identifier or '('
我试过改变东西,然后修复它们,改变其他东西,然后修复它们,但似乎没有任何帮助。我是新来的。任何人都可以帮忙吗?
#include <stdio.h> #include <cs50.h> int main(void); { int n; do { n = GetInt(); } while (n=<0); }
改变
int main(void); ^Remove the semicolon
至
int main(void)
也改变
while (n=<0);
while (n <= 0);