sgy7315   2년 전

진짜 코린이 초보자입니다..

시간초과는 블로그 여기저기보고 해결했는데 왜 틀렸는지 이해가 안갑니다.

protarie   2년 전

다음과 같은 경고가 출력됩니다.

main.cpp: In function ‘int main()’:
main.cpp:40:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=]
   40 |         printf("%d\n",&arr[i]);
      |                 ~^    ~~~~~~~
      |                  |    |
      |                  int  int*
      |                 %n

댓글을 작성하려면 로그인해야 합니다.