Qzy2307 @ 2024-11-23 10:52:23
using namespace std; int main(){ **
#include<bits/stdc++.h>
using namespace std;
int main(){
cout<<" ********"<<endl;
cout<<" ************"<<endl;
cout<<" ####....#."<<endl;
cout<<" #..###.....##...."<<endl;
cout<<" ###.......###### ### ###"<<endl;
cout<<" ........... #...# #...#"<<endl;
cout<<" ##*####### #.#.# #.#.#"<<endl;
cout<<" ####*******###### #.#.# #.#.#"<<endl;
cout<<" ...#***.****.*###.... #...# #...#"<<endl;
cout<<" ....**********##..... ### ###"<<endl;
cout<<" ....**** *****...."<<endl;
cout<<" #### ####"<<endl;
cout<<" ###### ######"<<endl;
cout<<" ##############################################################"<<endl;
cout<<" #...#......#.##...#......#.##...#......#.##------------------#"<<endl;
cout<<" ###########################################------------------#"<<endl;
cout<<" #..#....#....##..#....#....##..#....#....#####################"<<endl;
cout<<" ########################################## #----------#"<<endl;
cout<<" #.....#......##.....#......##.....#......# #----------#"<<endl;
cout<<" ########################################## #----------#"<<endl;
cout<<" #.#..#....#..##.#..#....#..##.#..#....#..# #----------#"<<endl;
cout<<" ########################################## ############"<<endl;
return 0;
}
** return 0; }
by zh_felix @ 2024-11-23 10:56:15
你每行前面都多了一个空格。
by gzxworld @ 2024-11-23 10:59:09
@Qzy2307 而且中间也是有多空格的
by renhonglin @ 2024-11-23 11:02:16
因空格而错,给你看一下我的代码:
#include<stdio.h>
int main() {
printf(
" ********\n"
" ************\n"
" ####....#.\n"
" #..###.....##....\n"
" ###.......###### ### ###\n"
" ........... #...# #...#\n"
" ##*####### #.#.# #.#.#\n"
" ####*******###### #.#.# #.#.#\n"
" ...#***.****.*###.... #...# #...#\n"
" ....**********##..... ### ###\n"
" ....**** *****....\n"
" #### ####\n"
" ###### ######\n"
"##############################################################\n"
"#...#......#.##...#......#.##...#......#.##------------------#\n"
"###########################################------------------#\n"
"#..#....#....##..#....#....##..#....#....#####################\n"
"########################################## #----------#\n"
"#.....#......##.....#......##.....#......# #----------#\n"
"########################################## #----------#\n"
"#.#..#....#..##.#..#....#..##.#..#....#..# #----------#\n"
"########################################## ############\n"
);
return 0;
}
https://www.luogu.com.cn/team/90501,请求你加入我的组
by Qzy2307 @ 2024-11-23 11:06:41
谢谢各位大佬,终于对了(感激涕零)
by yqh___crx @ 2024-11-26 21:02:09
加油
by mattguo @ 2024-11-26 21:35:12
0000
by xhy12123 @ 2024-12-07 21:39:55
6
by WZ_wujintian @ 2024-12-08 18:28:52
一个cout就够了