Run id: 128354
Main.cc: In function 'int main()':
Main.cc:10:5: error: 'intarr' was not declared in this scope
intarr[n][n] = {0}; // 创建二维数组
^
Main.cc:11:9: error: 'introw' was not declared in this scope
for(introw = 0; row < n; row++) {
^
Main.cc:11:21: error: 'row' was not declared in this scope
for(introw = 0; row < n; row++) {
^
Main.cc:12:13: error: 'intcolumn' was not declared in this scope
for(intcolumn = 0; column <= row; column++) {
^
Main.cc:12:28: error: 'column' was not declared in this scope
for(intcolumn = 0; column <= row; column++) {
^
Main.cc:14:13: error: 'arr' was not declared in this scope
arr[row][column] = 1; // 首尾为1
^
Main.cc:16:13: error: 'arr' was not declared in this scope
arr[row][column] = arr[row-1][column] + arr[row-1][column-1]; // 计算中间值
^
Main.cc:18:23: error: 'arr' was not declared in this scope
printf("%d ", arr[row][column]); // 打印当前值
^
Main.cc:21:1: error: expected '}' at end of input
}
^
Main.cc:9:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n); // 输入行数
^