Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
21107 孙文谦 星号等腰三角形 C++ 编译错误 0 0 MS 0 KB 216 2021-06-26 16:23:06

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int n; int mian(){ cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n-i;j++) cout<<" "; for(int j=1;j<=2*i-1;j++) cout<<"*"; cout<<endl; } return 0; }


测评信息:

/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status