不懂就问(违规紫衫)
  • 板块灌水区
  • 楼主ZJY1207
  • 当前回复8
  • 已保存回复8
  • 发布时间2025/1/27 09:47
  • 上次更新2025/1/27 14:56:37
查看原帖
不懂就问(违规紫衫)
1372344
ZJY1207楼主2025/1/27 09:47
/tmp/compiler_yvprac96/src:1:9: 致命错误:bits/stdc++.h :No such file or directory
    1 | #include<bits/stdc++.h >
      |         ^~~~~~~~~~~~~~~~
编译中断。

为什么会出现这个错误呀? 源代码

#include<bits/stdc++.h >
using namespace std;
int weishu(int qwer){
	int ans=0;
	while(qwer!=0){
		qwer/=10;
		ans++;
	}
	return ans;
}
int main(){
	int ans=0;
	for(int i=1;i<=9;i++){
		for(int j=1;j<=9;j++){
			for(int k=1;k<=9;k++){
				int a=i*100+j*10+k;
				int b=a*2;
				int c=a*3;
				if(weishu(b)<=3&&weishu(c)<=3){
					cout<<a<<" "<<b<<" "<<c<<endl;
				}
			}
		}
	}
	return 0;
}
2025/1/27 09:47
加载中...