c调试出现 error: 'test' was not declared in this scope

这样子,在别人电脑上没问题,自己电脑上

图片说明

没有声明函数test

#include<stdio.h>
int test();
int main(){
  test();
}
int test(){
  printf("hello");
  return 0;
}
不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^

有个函数的定义不对。

main函数的格式不对,应该是 void main()。