/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;
}