| Problem | diamond | 
|---|---|
| User | god | 
| Submission Time | 2025-07-10 10:05:33 | 
| Score | 0 | 
| Max Time | N/A | 
| Max Memory | N/A | 
Owl Get a Life
 diamond.cpp: In function ‘int main()’:
diamond.cpp:8:24: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘int’ in assignment
    8 |  max_length = to_string(max_length)
      |               ~~~~~~~~~^~~~~~~~~~~~
      |                        |
      |                        std::string {aka std::__cxx11::basic_string<char>}
diamond.cpp:11:30: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
   11 |   string to_be_printed = "*" * length;
      |                          ~~~ ^ ~~~~~~
      |                          |     |
      |                          |     int
      |                          const char [2]
diamond.cpp:12:10: error: ‘cut’ was not declared in this scope
   12 |   printf(cut, to_be_printed);
      |          ^~~
diamond.cpp:18:30: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
   18 |   string to_be_printed