QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#499995#8516. LED MatrixHuangHanShengCompile Error//C++14689b2024-07-31 20:59:072024-07-31 20:59:09

Details

answer.code: In function ‘int main()’:
answer.code:33:25: error: expected ‘}’ before ‘else’
   33 |                         else
      |                         ^~~~
answer.code:30:99: note: to match this ‘{’
   30 |                 if (matrix1[i].find('-') != string::npos && matrix2[i].find('*') != string::npos) {
      |                                                                                                   ^
answer.code: At global scope:
answer.code:39:9: error: ‘cout’ does not name a type
   39 |         cout << result << endl;
      |         ^~~~
answer.code:41:9: error: expected unqualified-id before ‘return’
   41 |         return 0;
      |         ^~~~~~
answer.code:42:1: error: expected declaration before ‘}’ token
   42 | }
      | ^