Problem | diamond |
---|---|
User | seanLim |
Submission Time | 2025-01-22 17:06:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
diamond.cpp: In function ‘int main()’:
diamond.cpp:9:14: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
9 | cout << " "*(n-1-i) << "*"*(i+1) << " "*(n-1-i) << endl;
| ~~~^~~~~~~~
| | |
| | int
| const char [2]
diamond.cpp:9:29: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
9 | cout << " "*(n-1-i) << "*"*(i+1) << " "*(n-1-i) << endl;
| ~~~^~~~~~
| | |
| | int
| const char [2]
diamond.cpp:9:42: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
9 | cout << " "*(n-1-i) << "*"*(i+1) << " "*(n-1-i) << endl;
| ~