compile error

onground Reply 3 years 42 weeks ago
어디에서 컴파일 에러가 나는 것인가요? dev c++에서는 잘 작동합니다...
withcs2 Reply 3 years 42 weeks ago
ground[size]처럼 변수를 사용하여 배열 크기를 지정할 경우 ={0}으로 초기화하면 안됩니다. int ground[100]={0}; 이나 malloc으로 선언해보는 건 어떨까요?