| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76101 | 刘世杰 | 打印菱形 | C++ | Compile Error | 0 MS | 0 KB | 34027 | 2024-06-01 16:48:25 |
# include<iostream> # include<cstdio> using namespace std; int main() { for(int j = 0;j < int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin >> n; for(int i = 0;i < n;i++){ for(int k = 1;k < n - i;k++ ){ printf(" "); } for(int j = 0;j <= i;j++){ printf("*"); } printf("\n"); } int n; cin >> n; for(int i = 1;i <= n;i++){ for(int j = 0;j < n - i;j++){ cout << " "; } for(int j = 0;j < i * 2 - 1;j++){ cout << "*"; } cout << endl;int n; cin
Main.cc: In function 'int main()':
Main.cc:8:1: error: expected primary-expression before 'int'
int n;
^
Main.cc:8:1: error: expected ';' before 'int'
Main.cc:8:1: error: expected primary-expression before 'int'
Main.cc:8:1: error: expected ')' before 'int'
Main.cc:8:5: warning: unused variable 'n' [-Wunused-variable]
int n;
^
Main.cc:9:8: error: 'n' was not declared in this scope
cin >> n;
^
Main.cc:29:5: error: redeclaration of 'int n'
int n;
^
Main.cc:17:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:50:5: error: redeclaration of 'int n'
int n;
^
Main.cc:38:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:71:5: error: redeclaration of 'int n'
int n;
^
Main.cc:59:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:92:5: error: redeclaration of 'int n'
int n;
^
Main.cc:80:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:113:5: error: redeclaration of 'int n'
int n;
^
Main.cc:101:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:134:5: error: redeclaration of 'int n'
int n;
^
Main.cc:122:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:155:5: error: redeclaration of 'int n'
int n;
^
Main.cc:143:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:176:5: error: redeclaration of 'int n'
int n;
^
Main.cc:164:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:197:5: error: redeclaration of 'int n'
int n;
^
Main.cc:185:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:218:5: error: redeclaration of 'int n'
int n;
^
Main.cc:206:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:239:5: error: redeclaration of 'int n'
int n;
^
Main.cc:227:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:260:5: error: redeclaration of 'int n'
int n;
^
Main.cc:248:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:281:5: error: redeclaration of 'int n'
int n;
^
Main.cc:269:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:302:5: error: redeclaration of 'int n'
int n;
^
Main.cc:290:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:323:5: error: redeclaration of 'int n'
int n;
^
Main.cc:311:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:344:5: error: redeclaration of 'int n'
int n;
^
Main.cc:332:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:365:5: error: redeclaration of 'int n'
int n;
^
Main.cc:353:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:386:5: error: redeclaration of 'int n'
int n;
^
Main.cc:374:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:407:5: error: redeclaration of 'int n'
int n;
^
Main.cc:395:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:428:5: error: redeclaration of 'int n'
int n;
^
Main.cc:416:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:449:5: error: redeclaration of 'int n'
int n;
^
Main.cc:437:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:470:5: error: redeclaration of 'int n'
int n;
^
Main.cc:458:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:491:5: error: redeclaration of 'int n'
int n;
^
Main.cc:479:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:512:5: error: redeclaration of 'int n'
int n;
^
Main.cc:500:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:533:5: error: redeclaration of 'int n'
int n;
^
Main.cc:521:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:554:5: error: redeclaration of 'int n'
int n;
^
Main.cc:542:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:575:5: error: redeclaration of 'int n'
int n;
^
Main.cc:563:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:596:5: error: redeclaration of 'int n'
int n;
^
Main.cc:584:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:617:5: error: redeclaration of 'int n'
int n;
^
Main.cc:605:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:638:5: error: redeclaration of 'int n'
int n;
^
Main.cc:626:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:659:5: error: redeclaration of 'int n'
int n;
^
Main.cc:647:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:680:5: error: redeclaration of 'int n'
int n;
^
Main.cc:668:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:701:5: error: redeclaration of 'int n'
int n;
^
Main.cc:689:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:722:5: error: redeclaration of 'int n'
int n;
^
Main.cc:710:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:743:5: error: redeclaration of 'int n'
int n;
^
Main.cc:731:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:764:5: error: redeclaration of 'int n'
int n;
^
Main.cc:752:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:785:5: error: redeclaration of 'int n'
int n;
^
Main.cc:773:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:806:5: error: redeclaration of 'int n'
int n;
^
Main.cc:794:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:827:5: error: redeclaration of 'int n'
int n;
^
Main.cc:815:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:848:5: error: redeclaration of 'int n'
int n;
^
Main.cc:836:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:869:5: error: redeclaration of 'int n'
int n;
^
Main.cc:857:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:890:5: error: redeclaration of 'int n'
int n;
^
Main.cc:878:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:911:5: error: redeclaration of 'int n'
int n;
^
Main.cc:899:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:932:5: error: redeclaration of 'int n'
int n;
^
Main.cc:920:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:953:5: error: redeclaration of 'int n'
int n;
^
Main.cc:941:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:974:5: error: redeclaration of 'int n'
int n;
^
Main.cc:962:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:995:5: error: redeclaration of 'int n'
int n;
^
Main.cc:983:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1016:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1004:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1037:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1025:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1058:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1046:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1079:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1067:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1100:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1088:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1121:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1109:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1142:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1130:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1163:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1151:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1184:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1172:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1205:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1193:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1226:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1214:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1247:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1235:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1268:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1256:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1289:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1277:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1310:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1298:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1331:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1319:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1352:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1340:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1373:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1361:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1394:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1382:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1415:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1403:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1436:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1424:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1457:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1445:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1478:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1466:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1499:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1487:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1520:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1508:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1541:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1529:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1562:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1550:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1583:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1571:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1604:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1592:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1625:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1613:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1646:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1634:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1667:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1655:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1688:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1676:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1709:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1697:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1730:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1718:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1751:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1739:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1772:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1760:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1793:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1781:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1814:5: error: redeclaration of 'int n'
int n;
^
Main.cc:1802:22: note: 'int n' previously declared here
cout << endl;int n;
^
Main.cc:1824:1: error: expected ';' at end of input
cin
^
Main.cc:1824:1: warning: statement has no effect [-Wunused-value]
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1823:22: warning: unused variable 'n' [-Wunused-variable]
cout << endl;int n;
^
Main.cc:1824:1: error: expected '}' at end of input
cin
^
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input
Main.cc:1824:1: error: expected '}' at end of input