使用 g++ -std=c++14 -O2
指令编译以下两份代码,判断哪个运行时会 RE,哪个不会:
#include<bits/stdc++.h>
#define rept(i,a,b) for(int i=a;i<b;++i)
using namespace std;
signed main(){
int **a[10];
rept(i,0,10)rept(j,0,10)rept(k,0,10)a[i][j][k]=i+j-k;
rept(i,0,10)rept(j,0,10)rept(k,0,10)cout<<endl;
return 0;
}
#include<bits/stdc++.h>
#define rept(i,a,b) for(int i=a;i<b;++i)
using namespace std;
signed main(){
int **a[10];
rept(i,0,10)rept(j,0,10)rept(k,0,10)a[i][j][k]=i+j-k;
return 0;
}
标签:玄学,rept,初赛,int,include,CSP,define
From: https://www.cnblogs.com/zifanoi/p/18038455