QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#164266#7106. Infinite Parenthesis Sequenceucup-team577Compile Error//C++4.3kb2023-09-04 21:06:412023-09-04 21:06:42

Details

answer.code: In function ‘int main()’:
answer.code:168:30: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  168 |                 register int k, rl, rr;
      |                              ^
answer.code:168:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  168 |                 register int k, rl, rr;
      |                                 ^~
answer.code:168:37: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  168 |                 register int k, rl, rr;
      |                                     ^~
answer.code:183:52: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  183 |                                 register long long l = -5e9, r = 5e9, mid;
      |                                                    ^
answer.code:183:62: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  183 |                                 register long long l = -5e9, r = 5e9, mid;
      |                                                              ^
answer.code:183:71: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  183 |                                 register long long l = -5e9, r = 5e9, mid;
      |                                                                       ^~~
answer.code:201:37: error: ‘ans1’ was not declared in this scope; did you mean ‘ansl’?
  201 |                                 l - ans1 + 1 == 0 ? putchar('0') : write(l - ansl + 1);
      |                                     ^~~~
      |                                     ansl