#include <iostream>
using namespace std;
int main() {
int x,y,i,k;
cout<< "Podaj wysokosc"<<endl;
cin>>x;
cout<< "podaj szerokosc"<<endl;
cin>>y;
for (int i=1; i<=x; i=i+1)
{ for (int k=1; k<=y; k=k+1)
{ if (i==1 || i==x || k==1 || k==y){
cout<<"#";
}
else
cout<<" "
}
cout<<"\n"}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgeCx5LGksazsKCWNvdXQ8PCAiUG9kYWogd3lzb2tvc2MiPDxlbmRsOwoJY2luPj54OwoJY291dDw8ICJwb2RhaiBzemVyb2tvc2MiPDxlbmRsOwoJY2luPj55OwoJZm9yIChpbnQgaT0xOyBpPD14OyBpPWkrMSkKCXsgZm9yIChpbnQgaz0xOyBrPD15OyBrPWsrMSkKCXsgaWYgKGk9PTEgfHwgaT09eCB8fCBrPT0xIHx8IGs9PXkpewoJCWNvdXQ8PCIjIjsKCX0KCWVsc2UgCgljb3V0PDwiICIKCX0KCWNvdXQ8PCJcbiJ9CglyZXR1cm4gMDsKfQ==
prog.cpp: In function ‘int main()’:
prog.cpp:17:2: error: expected ‘;’ before ‘}’ token
}
^
prog.cpp:18:12: error: expected ‘;’ before ‘}’ token
cout<<"\n"}
^
prog.cpp:5:10: warning: unused variable ‘i’ [-Wunused-variable]
int x,y,i,k;
^
prog.cpp:5:12: warning: unused variable ‘k’ [-Wunused-variable]
int x,y,i,k;
^