QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#746214#9730. Elevator IIucup-team5637#Compile Error//C++143.2kb2024-11-14 13:52:242024-11-14 13:52:24

Details

answer.code:2:18: warning: extra tokens at end of #include directive
    2 | #include <cstdio>#include <algorithm>
      |                  ^
answer.code:117:11: error: redefinition of ‘const long long int N’
  117 | const int N = 5e5+10;
      |           ^
answer.code:13:11: note: ‘const long long int N’ previously defined here
   13 | const int N = 5e5+10;
      |           ^
answer.code:118:11: error: redefinition of ‘const long long int mod’
  118 | const int mod = 998244353;
      |           ^~~
answer.code:14:11: note: ‘const long long int mod’ previously defined here
   14 | const int mod = 998244353;
      |           ^~~
answer.code:119:11: error: redefinition of ‘const long long int infll’
  119 | const int infll = 0x3f3f3f3f3f3f3f3f;
      |           ^~~~~
answer.code:15:11: note: ‘const long long int infll’ previously defined here
   15 | const int infll = 0x3f3f3f3f3f3f3f3f;
      |           ^~~~~
answer.code:121:8: error: redefinition of ‘struct ss’
  121 | struct ss{
      |        ^~
answer.code:17:8: note: previous definition of ‘struct ss’
   17 | struct ss{
      |        ^~
answer.code:123:2: error: conflicting declaration ‘int p [500010]’
  123 | }p[N];
      |  ^
answer.code:19:2: note: previous declaration as ‘ss p [500010]’
   19 | }p[N];
      |  ^
answer.code:125:6: error: redefinition of ‘void work()’
  125 | void work(){
      |      ^~~~
answer.code:21:6: note: ‘void work()’ previously defined here
   21 | void work(){
      |      ^~~~
answer.code:179:8: error: redefinition of ‘int main()’
  179 | signed main() {
      |        ^~~~
answer.code:75:8: note: ‘int main()’ previously defined here
   75 | signed main() {
      |        ^~~~