중요한건 이거용

#include<stdio.h>
#include<stdlib.h>
{
 
 int* p2 = (int*)malloc(4);
 int* p1 = (int*)calloc(sizeof(4),1));

 printf("p1의 값 : %d \n",*p1);
 printf("p2의 값 : %d \n",*p2);

 free(p1);
 p1 = NULL;

 free(p2);
 p2 = NULL;

 return 0;
}



라고 쳣는데요

소스가 잘못된것도 아닌거같은데 자꾸 컴파일에러에 이게뜨면서 실행이 안돼요 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ

D:\asd\1.cpp(3) : error C2447: missing function header (old-style formal list?)

아 ㅠㅠ 미치게승ㅁ ㅠㅠ