| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 142431 | 傅骏萧 | 扫雷游戏 | C++ | Compile Error | 0 MS | 0 KB | 554 | 2026-01-10 10:43:25 |
#include<bits\stdc++.h> using namespace std; int main() { int m=0,n=0; cin>>m>>n; const int M=m; const int N=n; char a[M+1][N+1]={}; for(int i=0;i<=m;i++){ for(int j=0;j<=m;j++){ cin>>a[i][j]; } } int h[8]={-1,-1,0,0,1,1,1}; int l[8]={-1,0,1,-1,1-1,0,1}; for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ int d=0; if(a[i][j]=='*'){ cout<<a[i][j]; } else{ for(int k=0;k<=7;k++){ if(a[i+h[k]][j+l[k]]=='*'){ d++; } cout<<d; } } } cout<<endl; } return 0; }
Main.cc:1:24: fatal error: bits\stdc++.h: No such file or directory
#include
^
compilation terminated.