oneandzeroteam / cs50

2017년 1학기 CS50 스터디
0 stars 0 forks source link

error: format specifies type 'int' but the argument has type #5

Open SangYeop-Lee opened 7 years ago

SangYeop-Lee commented 7 years ago
        int q = s[i] + NUM % 'z' + 'a';

라는 코드를 사용했을 때 뜨는 에러인데, 어느 부분이 잘못되었는지 모르겠습니다ㅠㅠ..

nicholaskim94 commented 7 years ago

에러 전체랑 코드를 보여주세요

SangYeop-Lee commented 7 years ago

image

SangYeop-Lee commented 7 years ago

앗 저 에러는 해결된 것 같습니다..

SangYeop-Lee commented 7 years ago

return 0; 를 하고 루프를 끝냈을 때 저 0 값을 불러오는 함수는 없나요?

SangYeop-Lee commented 7 years ago

image 빨간 글씨로 에러가 뜨는 것이 아니라 이런식으로 컴파일 도중에 에러가 뜨는데 해결 방법을 모르겠습니다ㅜㅜㅜㅜ..

nicholaskim94 commented 7 years ago

코드 전체를 보여주세요

SangYeop-Lee commented 7 years ago

/**

include

include

include "helpers.h"

/**

}

/**

nicholaskim94 commented 7 years ago

helpers.h 는 작성하셨나요?

SangYeop-Lee commented 7 years ago

앗..아니요... 어떻게 작성해야하나요...?

nicholaskim94 commented 7 years ago

http://stackoverflow.com/questions/7109964/creating-your-own-header-file-in-c

SangYeop-Lee commented 7 years ago

Whodunit 중 small.bmp 에서 3X3 픽셀을 pad를 넣어 3X4로 만들어 주어야 하나요?