Problem | diamond |
---|---|
User | eliasxyz |
Submission Time | 2025-06-15 23:53:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
diamond.cpp: In function ‘int main()’:
diamond.cpp:8:12: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
8 | cout<<" "*(N-i)<<"*"*(2*i-1);
| ~~~^~~~~~
| | |
| | int
| const char [2]
diamond.cpp:8:23: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
8 | cout<<" "*(N-i)<<"*"*(2*i-1);
| ~~~^~~~~~~~
| | |
| | int
| const char [2]
diamond.cpp:11:12: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
11 | cout<<" "*i<<"*"*(2*N-2*i-1);
| ~~~^~
| | |
| | int
| const char [2]
diamond.cpp:11:19: error: invalid operands of types ‘const char [2]’ and ‘int’ to bi