出了一次从没出过的报错不知道为什么
查看原帖
出了一次从没出过的报错不知道为什么
403145
Along_Dog楼主2022/6/18 19:55
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath> 
using namespace std;
int n,m,k,t;
int Map[100010][100010];
int x[51],y[51];
bool ifelse(int x1,int x2,int y1,int y2){
	if(sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<=t) return true;
	else return false;
}
int main(){
	memset(Map,0,sizeof(Map));
	scanf("%d%d%d%d",&n,&m,&k,&t);
	int sum=0;
	for(int i=1;i<=k;++i){
		scanf("%d%d",&x[i],&y[i]);
	}
	for(int i=1;i<=n;++i){
		for(int j=1;j<=m;++j){
			if(Map[i][j]) continue;
			for(int l=1;l<=k;++l){
				if(Map[i][j]) break;
				if(ifelse(i,j,x[i],y[i])) Map[i][j]+=1;
			}
		}
	}
	for(int i=1;i<=n;++i){
		for(int j=1;j<=m;++j){
			if(Map[i][j]) sum++;
		}
	}
	printf("%d\n",sum);
	return 0;
} 

TLE了也应该是出了exe之后卡住吧我这个直接无语了真的

错误如下

C:\Users\a\AppData\Local\Temp\ccImXZjc.s Assembler messages: 182 C:\Users\a\AppData\Local\Temp\ccImXZjc.s Error: value of 0000000950a9a667 too large for field of 4 bytes at 0000000000000167 187 C:\Users\a\AppData\Local\Temp\ccImXZjc.s Error: value of 0000000950a9a57e too large for field of 4 bytes at 000000000000017e 236 C:\Users\a\AppData\Local\Temp\ccImXZjc.s Error: value of 0000000950a9a73a too large for field of 4 bytes at 000000000000023a 241 C:\Users\a\AppData\Local\Temp\ccImXZjc.s Error: value of 0000000950a9a652 too large for field of 4 bytes at 0000000000000252 370 C:\Users\a\AppData\Local\Temp\ccImXZjc.s Error: value of 0000000950a9a94c too large for field of 4 bytes at 0000000000000380 394 C:\Users\a\AppData\Local\Temp\ccImXZjc.s Error: value of 0000000950a9a97c too large for field of 4 bytes at 00000000000003b0

全部报错了,求助大佬

2022/6/18 19:55
加载中...