Compile Error

soekhyun59 Reply 4 years 4 days ago
Visual Studio 2019 상에서는 문제 없이 작동되는데 Submit 했더니 아래와 같이 뜨네요... Main.c: In function 'main': Main.c:17:36: error: expected ')' before 'and' while (n[index] != a * a - b * b and a <= 10000) ^ 아무래도 C++에서는 작동하는데 C에서는 작동하지 않는 것 같아서 제가 짠 코드에서 and를 C에 맞게 고치려고 했는데 아무리 검색하고 수정해봐도 도저히 되지를 않습니다ㅠㅠㅠ C에서는 어떻게 구현해야 하나요...?
withcs2 Reply 4 years 3 days ago
C언어에는 and가 없어요 ㅠㅠㅠㅠ &&를 사용해보세요