QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#846416 | #9971. 新本格魔法少女りすか | guestxd | Compile Error | / | / | C++98 | 6.3kb | 2025-01-07 08:17:02 | 2025-01-07 08:17:07 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:108:2: error: stray ‘#’ in program 108 | }#include <bits/stdc++.h> | ^ answer.code:108:3: error: ‘include’ does not name a type 108 | }#include <bits/stdc++.h> | ^~~~~~~ answer.code:110:19: error: conflicting declaration ‘typedef long long int ll’ 110 | typedef long long ll; | ^~ answer.code:3:28: note: previous declaration as ‘typedef long long unsigned int ll’ 3 | typedef unsigned long long ll; | ^~ answer.code:112:6: error: redefinition of ‘bool _t(const char&)’ 112 | bool _t(const char &cc) {return cc=='-' || (cc<='9' && cc>='0');} | ^~ answer.code:5:6: note: ‘bool _t(const char&)’ previously defined here 5 | bool _t(const char &cc) {return cc>='0';} | ^~ answer.code:123:5: error: conflicting declaration ‘int wstk [45]’ 123 | int wstk[45]={},wtp; | ^~~~ answer.code:13:5: note: previous declaration as ‘int wstk [21]’ 13 | int wstk[21],wtp; | ^~~~ answer.code:123:17: error: redefinition of ‘int wtp’ 123 | int wstk[45]={},wtp; | ^~~ answer.code:13:14: note: ‘int wtp’ previously declared here 13 | int wstk[21],wtp; | ^~~ answer.code:135:5: error: redefinition of ‘int n’ 135 | int n,q,a[500005],bel[500005]; | ^ answer.code:22:5: note: ‘int n’ previously declared here 22 | int n,wn,q,a[N],bel[N]; | ^ answer.code:135:7: error: redefinition of ‘int q’ 135 | int n,q,a[500005],bel[500005]; | ^ answer.code:22:10: note: ‘int q’ previously declared here 22 | int n,wn,q,a[N],bel[N]; | ^ answer.code:135:9: error: redefinition of ‘int a [500005]’ 135 | int n,q,a[500005],bel[500005]; | ^ answer.code:22:12: note: ‘int a [500005]’ previously declared here 22 | int n,wn,q,a[N],bel[N]; | ^ answer.code:135:19: error: redefinition of ‘int bel [500005]’ 135 | int n,q,a[500005],bel[500005]; | ^~~ answer.code:22:17: note: ‘int bel [500005]’ previously declared here 22 | int n,wn,q,a[N],bel[N]; | ^~~ answer.code:136:11: error: redefinition of ‘const int BW’ 136 | const int BW=300; | ^~ answer.code:23:11: note: ‘const int BW’ previously defined here 23 | const int BW=575; | ^~ answer.code:137:5: error: conflicting declaration ‘int lb [1705]’ 137 | int lb[1705],rb[1705],tot=0; | ^~ answer.code:24:5: note: previous declaration as ‘int lb [874]’ 24 | int lb[N/BW+5],rb[N/BW+5],tot=0; | ^~ answer.code:137:14: error: conflicting declaration ‘int rb [1705]’ 137 | int lb[1705],rb[1705],tot=0; | ^~ answer.code:24:16: note: previous declaration as ‘int rb [874]’ 24 | int lb[N/BW+5],rb[N/BW+5],tot=0; | ^~ answer.code:137:23: error: redefinition of ‘int tot’ 137 | int lb[1705],rb[1705],tot=0; | ^~~ answer.code:24:27: note: ‘int tot’ previously defined here 24 | int lb[N/BW+5],rb[N/BW+5],tot=0; | ^~~ answer.code:149:8: error: redefinition of ‘struct seg’ 149 | struct seg {int l,r;}; | ^~~ answer.code:34:8: note: previous definition of ‘struct seg’ 34 | struct seg {int l,r,gl,gr;}; | ^~~ answer.code:150:13: error: conflicting declaration ‘std::vector<seg> qry [500005]’ 150 | vector<seg> qry[500005]; | ^~~ answer.code:38:5: note: previous declaration as ‘seg qry [500005]’ 38 | seg qry[N]; | ^~~ answer.code:152:4: error: redefinition of ‘ll ans [500005]’ 152 | ll ans[500005]; | ^~~ answer.code:35:4: note: ‘ll ans [500005]’ previously declared here 35 | ll ans[N]; | ^~~ answer.code:153:5: error: redefinition of ‘int cnt [500005]’ 153 | int cnt[500005]; | ^~~ answer.code:36:5: note: ‘int cnt [500005]’ previously declared here 36 | int cnt[N]; | ^~~ answer.code:154:4: error: redefinition of ‘ll s [500005]’ 154 | ll s[500005]; | ^ answer.code:37:4: note: ‘ll s [500005]’ previously declared here 37 | ll s[N]; | ^ answer.code:157:6: error: redefinition of ‘void wk()’ 157 | void wk() { | ^~ answer.code:43:6: note: ‘void wk()’ previously defined here 43 | void wk() { | ^~ answer.code: In function ‘void wk()’: answer.code:167:20: error: ‘struct seg’ has no member named ‘push_back’ 167 | qry[i].push_back((seg){l,r}); | ^~~~~~~~~ answer.code:192:29: error: ‘struct seg’ has no member named ‘begin’ 192 | for(iter=qry[j].begin();iter!=qry[j].end();++iter) { | ^~~~~ answer.code:192:50: error: ‘struct seg’ has no member named ‘end’ 192 | for(iter=qry[j].begin();iter!=qry[j].end();++iter) { | ^~~ answer.code: At global scope: answer.code:207:8: error: ...