使用solcjs编译.sol文件时出错

1.确定智能合约的版本与solcjs是否匹配兼容

 若出现如下错误,则表示版本不兼容,修改智能合约使用的版本

2.出现 Warning: SPDX license identifier not provided in source file. 警告,则在智能合约首行加入如下代码

// SPDX-License-Identifier: SimPL-2.0