Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4941 | alpha | 数字金字塔 | C++ | Compile Error | 0 MS | 0 KB | 245 | 2024-10-07 11:02:07 |
#include <iostream> int main(void){ short s; std::cin>>s; short b=1+2*s; for (short i=1;i<=s;i++){ for (short j=1;j<=(b-2i+1)/2)a{std::cout<<" ";} std::cout<<i<<"\n";} return 0;}
Main.cc: In function 'int main()': Main.cc:8:35: error: unable to find numeric literal operator 'operator"" i' for (short j=1;j<=(b-2i+1)/2)a{std::cout<<" ";} ^ Main.cc:8:42: error: expected ';' before ')' token for (short j=1;j<=(b-2i+1)/2)a{std::cout<<" ";} ^ Main.cc:8:43: error: 'a' was not declared in this scope for (short j=1;j<=(b-2i+1)/2)a{std::cout<<" ";} ^ Main.cc:8:44: error: expected ';' before '{' token for (short j=1;j<=(b-2i+1)/2)a{std::cout<<" ";} ^