An explicit-shape-spec in an ALLOCATE statement is incorrect.
时间: 2024-03-16 22:42:45 浏览: 179
This error message usually occurs when you use an invalid shape specification in an ALLOCATE statement. The shape specification must be a comma-separated list of integer expressions enclosed in parentheses. For example:
```
ALLOCATE (A(10, 20))
```
Here, A is an array with dimensions 10 and 20. If you use an invalid shape specification such as a non-integer expression or a missing parenthesis, you will get the "explicit-shape-spec in an ALLOCATE statement is incorrect" error message.
Make sure to check your ALLOCATE statements and ensure that the shape specification is valid. If you still cannot resolve the error, please provide more context or code snippets so I can help you better.
阅读全文