error: expected ';' before '~~'

'~~' 함수전에 세미콜론(;)이 없을 때 발생했다.

 

 

#include <stdio.h>

void test(){
    // nothing
}

int main()
{
    test()	/*	error	*/
    test();	
}

 

visual studio, visual studio code에서는 친절하게 원인을 설명해준다.