Unable to compile test.cu file from Windows cmd

I have a test.c file on Windows desktop as simple as

#include<stdio.h>
int main(){
printf(“test\n”);
return 0;
}

When compiling it from cmd using “nvcc test.c -o test”, I got several errors as follows:

error LNK2019: unresolved external symbol ___acrt_iob_func referenced in function _printf
error LNK2019: unresolved external symbol ___stdio_common_vfprintf referenced in function __vfprintf_l
error LNK2001: unresolved external symbol _mainCRTStartup

How to fix it?

I can compile test.c using cl.exe within cmd without any problem. Doesn’t nvcc just pass .c file to the native compiler cl.exe? If so, why did I get those errors? Thanks in advance.