Nothing is compiled: OUTPUT exceeds.
CE了,怎么回事 本地能过
题目
#include <iostream>
using namespace std;
struct node{
int c = 0,h = 1000000010;
}a[1010][1010];
int n,m,k,x,y,h,c;
int main(){
cin >> n >> m >> k;
for(int i = 1;i <= k;i++){
cin >> x >> y >> h >> c;
if(a[x][y].h > h){
a[x][y].h = h;
a[x][y].c = c;
}
}
for(int i = 1;i <= n;i++){
for(int j = 1;j <= m;j++){
cout << a[i][j].c << ' ';
}
cout << endl;
}
return 0;
}