#include <iostream>using namespace std; int main() { int main() { int n; cin>>n; int ans=0; for(int i=1;i<=n;i++){ for{int j=1;j<=5;j++) cout<<"爽" } cout<<endl; ans=ans+5; } cout<<"共有"<<ans<<"個中文字"<<endl; // your code goes here return 0;}
10
prog.cpp: In function ‘int main()’: prog.cpp:5:13: error: a function-definition is not allowed here before ‘{’ token int main() { ^ prog.cpp:22:1: error: expected ‘}’ at end of input } ^ prog.cpp:4:12: note: to match this ‘{’ int main() { ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!