QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#342043#21608. 行列式yoy68#Compile Error//C++141.1kb2024-03-01 08:15:162024-03-01 08:15:18

Details

answer.code:55:9: error: expected initializer before ‘in’
   55 |         in(n);
      |         ^~
answer.code:14:22: error: expected unqualified-id before ‘for’
   14 | #define For(i, l, r) for(int i = l; i <= r; i ++)
      |                      ^~~
answer.code:56:9: note: in expansion of macro ‘For’
   56 |         For(i, 1, n) For(j, 1, n) in(a[i][j]);
      |         ^~~
answer.code:56:13: error: ‘i’ does not name a type
   56 |         For(i, 1, n) For(j, 1, n) in(a[i][j]);
      |             ^
answer.code:14:37: note: in definition of macro ‘For’
   14 | #define For(i, l, r) for(int i = l; i <= r; i ++)
      |                                     ^
answer.code:56:13: error: ‘i’ does not name a type
   56 |         For(i, 1, n) For(j, 1, n) in(a[i][j]);
      |             ^
answer.code:14:45: note: in definition of macro ‘For’
   14 | #define For(i, l, r) for(int i = l; i <= r; i ++)
      |                                             ^
answer.code:56:26: error: ‘j’ does not name a type
   56 |         For(i, 1, n) For(j, 1, n) in(a[i][j]);
      |                          ^
answer.code:14:37: note: in definition of macro ‘For’
   14 | #define For(i, l, r) for(int i = l; i <= r; i ++)
      |                                     ^
answer.code:56:26: error: ‘j’ does not name a type
   56 |         For(i, 1, n) For(j, 1, n) in(a[i][j]);
      |                          ^
answer.code:14:45: note: in definition of macro ‘For’
   14 | #define For(i, l, r) for(int i = l; i <= r; i ++)
      |                                             ^
answer.code:57:15: error: expected constructor, destructor, or type conversion before ‘(’ token
   57 |         printf("%lld\n", det());
      |               ^
answer.code:58:9: error: ‘cerr’ does not name a type
   58 |         cerr << (&WEI - &TOU) * 1.0 / 1024 / 1024 << endl;
      |         ^~~~
answer.code:59:9: error: expected unqualified-id before ‘return’
   59 |         return 0;
      |         ^~~~~~
answer.code:60:1: error: expected declaration before ‘}’ token
   60 | }
      | ^