#include <bits/stdc++.h>
#define REP(i,a,b) for(i=a;i<=b;i++)
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int tt;
int array [tt];
int key;
int i;
int p;
cin >> tt;
REP(i,1,tt) cin >> array[i-1];
REP(i,1,tt-1){
key = array[i];
p = i-1;
while(p>=0 && array[p]>key){
array[p+1]=array[p];
p--;
}
array[p+1] = key;
}
REP(i,1,tt) cout << array[i-1] << " ";
}
在其他在线ide上运行,但不在CodeChef ide上运行。我不明白为什么会这样。如何在CodeChef ide上运行它? #include#为(...]定义REP(i,a,b)(...