fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int main() {
  6. int n;
  7. cin>>n;
  8.  
  9. int ans=0;
  10. for(int i=1;i<=n;i++){
  11. for{int j=1;j<=5;j++)
  12. cout<<"爽"
  13. }
  14. cout<<endl;
  15. ans=ans+5;
  16.  
  17. }
  18. cout<<"共有"<<ans<<"個中文字"<<endl;
  19.  
  20. // your code goes here
  21. return 0;
  22. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
10
compilation info
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() {
            ^
stdout
Standard output is empty