Problem diamond
User yongteckrice
Submission Time 2023-05-02 11:02:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

diamond.cpp: In function ‘int main()’:
diamond.cpp:11:14: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
11 | cout << "*"*((i-1)*2 +1) << "\n";
| ~~~^~~~~~~~~~~~~
| | |
| | int
| const char [2]
diamond.cpp:15:14: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
15 | cout << "*"*((i-1)*2 +1) << "\n";
| ~~~^~~~~~~~~~~~~
| | |
| | int
| const char [2]