로그인 바로가기 하위 메뉴 바로가기 본문 바로가기

[해외명강] 컴퓨터 과학 교양 강좌: CS50

임시 이미지 커넥트재단 커넥트재단
http://www.edwith.org/cs50/forum/126325
좋아요 595 수강생 19936

이해가 잘 안되어서 어디서부터 질문을 드려야할지 모르겠습니다. 제가 짠 코드인데 어디가 틀렸는지 피드백 부탁드립니다.


Error:  /usercode/file.cpp:11:11: warning: missing terminating " character [enabled by default]
     scanf("%d,&num_1);
           ^
/usercode/file.cpp:11:5: error: missing terminating " character
     scanf("%d,&num_1);
     ^
/usercode/file.cpp: In function ‘int main()’:
/usercode/file.cpp:7:13: error: ‘o’ was not declared in this scope
   int num_1=o;
             ^
/usercode/file.cpp:13:3: error: expected primary-expression before ‘return’
   return 0; //main 함수를 종료합니다.
   ^