submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s922792404
p03995
Java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.NoSuchElementException; public class Main { int R,C,N; int[] r,c,a; long[] min; ArrayList<Edge>[][] graph; boolean[][] used; int[][] b; private class Edge{ int t,w; public Edge(in...
Main.java:24: error: incompatible types: possible lossy conversion from long to int b[type&1][pos] = weight; ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
s870849838
p03995
C++
#include<bits/stdc++.h> using namespace std; typedef long long int64; const int64 INF = 1LL << 58; int main() { int H, W, N; vector< pair< int, int > > g[200000]; bool v[200000] = {}; int64 cost[200000]; scanf("%d %d", &H, &W); scanf("%d", &N); while(N--) { int x, y, z; scanf("%d %d %d", &x, &...
a.cc: In function 'int main()': a.cc:29:13: warning: overflow in conversion from 'long long int' to 'int' changes value from '288230376151711744' to '0' [-Woverflow] 29 | int L = INF, R = INF; | ^~~ a.cc:29:22: warning: overflow in conversion from 'long long int' to 'int' changes value from '28...
s782566455
p03995
C++
#include <string> #include <queue> #include <stack> #include <vector> #include <sstream> #include <algorithm> #include <deque> #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <list> #include <cstdio> #include <iostream> #include <cmath> #include <climits> #include <bitset> #incl...
a.cc: In function 'bool saiki(int, long long int, bool, std::pair<long long int, long long int>&)': a.cc:40:21: error: 'tated' was not declared in this scope 40 | if (tated[now]) { | ^~~~~ a.cc:41:29: error: 'tate' was not declared in this scope; did you mean 'istate'? 41...
s149406181
p03995
C++
#include <iostream> #include <iomanip> #include <vector> #include <algorithm> #include <numeric> #include <functional> #include <cmath> #include <queue> #include <stack> #include <set> #include <map> #include <sstream> #include <string> #define repd(i,a,b) for (int i=(int)(a);i<(int)(b);i++) #define rep(i,n) repd(i,0,n...
In file included from /usr/include/c++/14/string:49, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/includ...
s116025063
p03995
C++
#include <iostream> #include <iomanip> #include <vector> #include <algorithm> #include <numeric> #include <functional> #include <cmath> #include <queue> #include <stack> #include <set> #include <map> #include <sstream> #include <string> #define repd(i,a,b) for (int i=(int)(a);i<(int)(b);i++) #define rep(i,n) repd(i,0,n...
a.cc: In function 'int main()': a.cc:18:13: warning: overflow in conversion from 'long int' to 'int' changes value from '100000000000000000' to '1569325056' [-Woverflow] 18 | #define inf 100000000000000000 | ^~~~~~~~~~~~~~~~~~ a.cc:101:19: note: in expansion of macro 'inf' 101 | int row_min =...
s653088788
p03995
C++
#include <cstdio> #include <cstdlib> #include <algorithm> #include <vector> #include <cstring> #include <set> #include <queue> #define SIZE 100005 #define INF 1000000000000005LL using namespace std; typedef long long int ll; typedef pair <int,int> P; typedef pair <P,int> PP; struct edge { int to,cost; edge(int to=0...
a.cc: In function 'int main()': a.cc:41:26: error: no matching function for call to 'min(ll&, int&)' 41 | mn[y]=min(mn[y],a); | ~~~^~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, from a.cc:3: /usr/include/c++/14/bits/stl_algobase.h:233:5:...
s477454006
p03995
C++
#include <iostream> #include <queue> #include <map> #include <list> #include <vector> #include <string> #include <stack> #include <limits> #include <cassert> #include <fstream> #include <cstring> #include <cmath> #include <bitset> #include <iomanip> #include <algorithm> #include <functional> #include <cstdio> #include ...
a.cc:82:16: error: 'LLONG_MAX' was not declared in this scope 82 | const ll INF = LLONG_MAX / 2 - 1; | ^~~~~~~~~ a.cc:20:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 19 | #include <set> +++ |+#include <climits> 20 | #inclu...
s741497154
p03995
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0; i<(int)(n); ++i) #define FOR(i,k,n) for(int i=(k);i<(int)(n);++i) typedef long long int ll; using namespace std; int R, C, N; int wr[100001], wc[100001]; struct E{ int to, cost; E(int t, int c): to(t), cost(c) {}; }; vector<E> edge_r[100001], edge_c[100...
a.cc:73:2: error: stray '#' in program 73 | }#include <bits/stdc++.h> | ^ a.cc:73:3: error: 'include' does not name a type 73 | }#include <bits/stdc++.h> | ^~~~~~~ a.cc:81:5: error: redefinition of 'int R' 81 | int R, C, N; | ^ a.cc:9:5: note: 'int R' previously declared here 9 | i...
s115421015
p03995
C++
#include <cstdlib> #include <cmath> #include <climits> #include <cfloat> #include <map> #include <utility> #include <set> #include <iostream> #include <memory> #include <string> #include <vector> #include <algorithm> #include <functional> #include <sstream> #include <deque> #include <complex> #include <stack> #include ...
a.cc: In function 'int main()': a.cc:55:47: error: call of overloaded 'vector(int, <brace-enclosed initializer list>)' is ambiguous 55 | vector<vector<pii>> hols((signed)h, {}), vers((signed)w, {}); | ^ In file included from /usr/include/c++/14/vector:66, ...
s210132357
p03995
C++
#include <cstdlib> #include <cmath> #include <climits> #include <cfloat> #include <map> #include <utility> #include <set> #include <iostream> #include <memory> #include <string> #include <vector> #include <algorithm> #include <functional> #include <sstream> #include <deque> #include <complex> #include <stack> #include ...
a.cc: In function 'int main()': a.cc:55:39: error: call of overloaded 'vector(ll&, <brace-enclosed initializer list>)' is ambiguous 55 | vector<vector<pii>> hols(h, {}), vers(w, {}); | ^ In file included from /usr/include/c++/14/vector:66, from a.c...
s948240875
p03995
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; typedef pair<pii,int> piii; typedef pair<ll,ll> pll; #define reps(i,f,n) for(int i = int(f); i <= int(n); i++) #define rep(i,n) reps(i,0,int(n)-1) #define rrep(i,n) for(int i = n-1; i >= 0; i--) #define all(x) (x).begin(),...
a.cc: In function 'int main()': a.cc:60:8: error: conflicting declaration 'bool r' 60 | bool r = true; | ^ a.cc:46:7: note: previous declaration as 'int r' 46 | int r,c,n; | ^
s736212864
p03995
C++
class _in{struct my_iterator{int it;const bool rev;explicit constexpr my_iterator(int it_, bool rev=false):it(it_),rev(rev){}constexpr int operator*(){return it;}constexpr bool operator!=(my_iterator& r){return it!=r.it;}void operator++(){rev?--it:++it;}};const my_iterator i,n;public:explicit constexpr _in(int n):i(0),...
a.cc: In function 'void dfs(int, i64&, i64&)': a.cc:18:9: error: expected initializer before 'tie' 18 | tie(nxt_v, cost) = e; | ^~~ a.cc:19:17: error: 'cost' was not declared in this scope; did you mean 'cosl'? 19 | i64 w = cost - weight[cur_v]; | ^~~~ | ...
s260916677
p03995
C
//Task D /* Grid and Integers Magic Sum/REctangles */ #include <stdio.h> #include <stdlib.h> int main(){ int R, C; scanf("%d %d",&R,&C); int N; scanf("%d"&N); int r = 0; int c = 0; int a = 0; int** array = calloc(R,sizeof(int)); int x = 0; //generic counter while(x...
main.c: In function 'main': main.c:13:15: error: invalid operands to binary & (have 'char *' and 'int') 13 | scanf("%d"&N); | ~~~~^ | | | char *
s621509649
p03995
C
//Task D /* Grid and Integers Magic Sum/REctangles */ #include <stdio.h> #include <stlib.h> int main(){ int R, C; scanf("%d %d",&R,&C); int N; scanf("%d"&N); int r = 0; int c = 0; int a = 0; int** array = calloc(R,sizeof(int)); int x = 0; //generic counter while(x <...
main.c:7:10: fatal error: stlib.h: No such file or directory 7 | #include <stlib.h> | ^~~~~~~~~ compilation terminated.
s230305528
p03995
C++
#include <bits/stdc++.h> using namespace std; typedef vector<int> VI; typedef vector<VI> VVI; typedef vector<string> VS; typedef pair<int, int> PII; typedef long long LL; typedef pair<LL, LL> PLL; #define ALL(a) (a).begin(),(a).end() #define RALL(a) (a).rbegin(), (a).rend() #define PB push_back #define EB emplace_ba...
a.cc:35:10: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts' 35 | void dfs(auto& G, int u, int p, vector<LL>& xs, LL& mr, LL& mc){ | ^~~~ a.cc: In instantiation of 'void dfs(auto:28&, int, int, std::vector<long long int>&, LL&, LL&) [with auto:28 = std::...
s608238662
p03995
C++
#include <bits/stdc++.h> using namespace std; const long long inf = 1e17; const int MAX = 100010; int R, C, N; bool used[MAX + MAX]; long long val[MAX + MAX]; vector< tuple<int, long long> > G[MAX + MAX]; long long minr, minc; void dfsc(int c, long long a){ used[c] = true; minc = min( minc, a ); val[c] = a; ...
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/c++allocator.h:33, from /usr/include/c++/14/bits/allocator.h:46, from /usr/include/c++/14/string:43, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc...
s786555998
p03995
C++
#include <iostream> #include <map> #define int long long using namespace std; int h, w; int n; int r, c, a; typedef pair<int, int> P; map<int, int> dict_r[100000]; map<int, int> dict_c[100000]; map<int, int>::iterator it, it2; bool solveH(int pre) { for (int i = 0; i < h; i++) { if (i == pre) continue; //i行目...
a.cc: In function 'int main()': a.cc:89:9: error: 'assert' was not declared in this scope 89 | assert(0); | ^~~~~~ a.cc:3:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>' 2 | #include <map> +++ |+#include <cassert> 3 | #define...
s899059423
p03995
C++
#include <vector> #include <iostream> #include <utility> #include <algorithm> #include <string> #include <deque> #include <tuple> #include <queue> #include <functional> #include <cmath> #include <iomanip> #include <set> #include <map> #include <numeric> #include <unordered_map> #include <unordered_set> #include <comple...
a.cc:143:1: error: 'singned' does not name a type; did you mean 'signed'? 143 | singned main() { | ^~~~~~~ | signed
s081702336
p03995
C++
#include <vector> #include <iostream> #include <utility> #include <algorithm> #include <string> #include <deque> #include <tuple> #include <queue> #include <functional> #include <cmath> #include <iomanip> #include <set> #include <map> #include <numeric> #include <unordered_map> #include <unordered_set> #include <comple...
cc1plus: error: '::main' must return 'int'
s205403411
p03995
C++
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int,int> pii; typedef pair<int,pii> piii; #define rep(i,n) for(ll i=0;i<(ll)(n);i++) #define all(a) (a).begin(),(a).end() #define pb push_back #define INF (1e9+1) //#define INF (1LL<<59) struct edge{int to,cost;}; struct st{int pos,num;...
a.cc: In function 'void dfs(int, int*, std::map<std::pair<int, std::pair<int, int> >, bool>&)': a.cc:31:36: error: expected primary-expression before ')' token 31 | if() | ^
s139184710
p03995
C++
#include <cstdio> #include <iostream> #include <cmath> #include <cstring> #include <sstream> #include <algorithm> #include <cstdlib> #include <map> #include <queue> #include <utility> #include <vector> #include <set> #include <memory.h> #include <iomanip> #include <bitset> #include <list> #include <stack> using name...
a.cc: In function 'int main()': a.cc:31:19: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'push_back' 31 | retsu[rr].push_back(make_pair(cc, a)); | ^~~~~~~~~ a.cc:32:18:...
s496337793
p03995
C++
#include <iostream> #include <sstream> #include <string> #include <vector> #include <stack> #include <queue> #include <set> #include <map> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <cctype> #include <cmath> #include <cassert> using namespace std; #define all(c) (c).begin(), ...
a.cc: In function 'int main()': a.cc:79:12: error: expected '}' at end of input 79 | return 0; | ^ a.cc:29:11: note: to match this '{' 29 | int main(){ | ^
s388754790
p03995
C
#include <stdio.h> #include <stdlib.h> #include <time.h> int main() { srand(time(0)); int R, C, N; scanf("%d%d%d", &R, &C, &N); int r, c, a; for( int i = 0; i < N; ++i ){ scanf("%d%d%d", &r, &c, &n); } if( rand() & 1 ) printf("Yes\n"); else printf("No\n"); return 0; ...
main.c: In function 'main': main.c:16:34: error: 'n' undeclared (first use in this function) 16 | scanf("%d%d%d", &r, &c, &n); | ^ main.c:16:34: note: each undeclared identifier is reported only once for each function it appears in
s020734179
p03995
C++
#include <iostAream> #include <sstream> #include <string> #include <vector> #include <stack> #include <queue> #include <set> #include <map> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <cctype> #include <cmath> #include <cassert> using namespace std; #define all(c) (c).begin(),...
a.cc:1:10: fatal error: iostAream: No such file or directory 1 | #include <iostAream> | ^~~~~~~~~~~ compilation terminated.
s559295599
p03995
C
#include <stdio.h> #include <stdlib.h> #include <time.h> using namespace std; int main() { srand(time(0)); int R, C, N; scanf("%d%d%d", &R, &C, &N); int r, c, a; for( int i = 0; i < N; ++i ){ scanf("%d%d%d", &r, &c, &n); } if( rand() & 1 ) printf("Yes\n"); else printf("N...
main.c:8:1: error: unknown type name 'using' 8 | using namespace std; | ^~~~~ main.c:8:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std' 8 | using namespace std; | ^~~ main.c: In function 'main': main.c:20:34: error: 'n' undeclared (first use in this function) ...
s633063188
p03995
C++
#include <iostAream> #include <sstream> #include <string> #include <vector> #include <stack> #include <queue> #include <set> #include <map> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <cctype> #include <cmath> #include <cassert> using namespace std; #define all(c) (c).begin(),...
a.cc:1:10: fatal error: iostAream: No such file or directory 1 | #include <iostAream> | ^~~~~~~~~~~ compilation terminated.
s627307084
p03995
C++
#include <iostAream> #include <sstream> #include <string> #include <vector> #include <stack> #include <queue> #include <set> #include <map> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <cctype> #include <cmath> #include <cassert> using namespace std; #define all(c) (c).begin(),...
a.cc:1:10: fatal error: iostAream: No such file or directory 1 | #include <iostAream> | ^~~~~~~~~~~ compilation terminated.
s251222357
p03995
C++
#!/usr/bin/ruby $m=Hash.new{|h,k|h[k]=[]} $memo={} def dfs(now,goal,d) v=$m[now] v.size.times{|i| if v[i][0]==goal&&v[i][1]!=d return false end if !$memo.has_key?(v[i][0]) $memo[v[i][0]]=1 if !dfs(v[i][0],goal,d-v[i][1]) return false end end } return true end r,c=gets.split.map(&:to_i) h=Ha...
a.cc:1:2: error: invalid preprocessing directive #! 1 | #!/usr/bin/ruby | ^ a.cc:40:30: warning: multi-character character constant [-Wmultichar] 40 | puts 'No' | ^~~~ a.cc:54:30: warning: multi-character character constant [-Wmultichar] 54 | ...
s791500419
p03995
C++
#include<bits/stdc++.h> using namespace std; #define int long long typedef long long int64; const int64 INF = 1LL << 58; int H, W, N; vector< int > y, x, c; int64 uku[100000], ku[100000]; map< pair< int, int >, int64 > hashed; map< pair< int, int >, int64 > hashed2; void E() { puts("No"); exit(0); } signed ma...
a.cc: In function 'int main()': a.cc:43:30: error: 'ya' was not declared in this scope; did you mean 'qa'? 43 | y[i] = lower_bound(begin(ya), end(ya), y[i]) - begin(ya); | ^~ | qa
s343998258
p03995
C++
#include <algorithm> #include <cstdio> #include <cstdlib> #include <cctype> #include <cmath> #include <iostream> #include <queue> #include <list> #include <stack> #include <map> #include <numeric> #include <set> #include <sstream> #include <string> #include <vector> using namespace std; #define REP(i,a,n) for(int i=(a)...
a.cc: In function 'bool check2x2()': a.cc:110:10: error: 'y' was not declared in this scope; did you mean 'y2'? 110 | if(y<R-1 && x<C-1){ | ^ | y2 a.cc:110:19: error: 'x' was not declared in this scope; did you mean 'x2'? 110 | if(y<R-1 && x<C-1){ | ...
s273620741
p03995
C++
#include <stdio.h> #include <vector> #include <iostream> #include <string> #include <random> using namespace std; random_device rnd(2,0); int R; int C; int N; int rs; int cs; int as; bool dame=false; int main(){ scanf("%d %d %d",&R,&C,&N); vector< vector<int> > D(C, vector<int>(R, -1)); for(int i=0;i<R...
a.cc:9:22: error: no matching function for call to 'std::random_device::random_device(int, int)' 9 | random_device rnd(2,0); | ^ In file included from /usr/include/c++/14/random:48, from a.cc:5: /usr/include/c++/14/bits/random.h:1763:5: note: candidate: 'std::random_devic...
s525697310
p03995
C++
#include <iostream> using namespace std; long long map[100000][100000]; int main(){ int R,C; int N; int black=0; int white=0; cin >> R >> C; cin >> N; for(int i=0;i<N;i++){ int r,c; cin >> r >> c; cin >> map[r][c]; for(int i=0;i<R-1;i++){ for(int j=0;j<C-1;j++){ if(map[i][j]+map...
a.cc: In function 'int main()': a.cc:26:2: error: expected '}' at end of input 26 | } | ^ a.cc:7:11: note: to match this '{' 7 | int main(){ | ^
s728377569
p03995
C++
#include <cstdio> #include <iostream> #include <cmath> #include <cstring> #include <sstream> #include <algorithm> #include <cstdlib> #include <map> #include <queue> #include <utility> #include <vector> #include <set> #include <memory.h> #include <iomanip> #include <bitset> #include <list> #include <stack> using name...
a.cc: In function 'int main()': a.cc:60:17: error: request for member 'size' in 'gyou', which is of non-class type 'std::vector<std::pair<int, int> > [100001]' 60 | if(gyou.size() == 0) continue; | ^~~~
s645647647
p03995
C++
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author RiaD */ #include <iostream> #include <fstream> #include <iostream> #include <vector> #include <iterator> #include <string> #include <stdexcept> #ifndef SPCPPL_ASSERT #ifdef SPCPPL_DEBUG #define SPCPPL_ASSERT(c...
a.cc:48:36: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations] 48 | class IntegerIterator: public std::iterator<std::input_iterator_tag, T, std::ptrdiff_t, T*, T> { | ...
s733697458
p03995
C++
#<ll>include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0;i<n;i++) #define rep(i,n) for(int i=0;i<n;i++) #define INF 1<<29 #define LINF LLONG_MAX/3 #define MP make_pair #define PB push_back #define EB emplace_back #define ALL(v) (v).begin(),(v).end() #define all(v) (v).begin(),(v).end() #define de...
a.cc:1:2: error: invalid preprocessing directive #< 1 | #<ll>include <bits/stdc++.h> | ^ a.cc:16:22: error: 'ostream' does not name a type 16 | template<typename T> ostream& operator<<(ostream& os,const vector<T>& vec){ os << "["; for(const auto& v : vec){ os << v << ","; } os << "]"; return os; } |...
s669347761
p03995
C++
#include <iostream> #include <sstream> #include <string> #include <vector> #include <stack> #include <queue> #include <set> #include <map> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <cctype> #include <cmath> #include <cassert> using namespace std; #define all(c) (c).begin(), ...
a.cc: In function 'int main()': a.cc:50:7: error: conflicting declaration 'int t' 50 | int t=0; | ^ a.cc:34:7: note: previous declaration as 'int t [r][c]' 34 | int t[r][c]; | ^ a.cc:73:9: error: lvalue required as increment operand 73 | if(t++>10000000){printf("Yes\n"); return...
s388633914
p03995
C++
#include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0;i<n;i++) #define rep(i,n) for(int i=0;i<n;i++) #define INF 1<<29 #define LINF LLONG_MAX/3 #define MP make_pair #define PB push_back #define EB emplace_back #define ALL(v) (v).begin(),(v).end() #define all(v) (v).begin(),(v).end() #define debug(...
a.cc: In function 'int main()': a.cc:88:11: error: invalid type argument of unary '*' (have 'll' {aka 'long long int'}) 88 | if(RR**CC>10000000){ | ^~~
s954415576
p03995
C++
#include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0;i<n;i++) #define rep(i,n) for(int i=0;i<n;i++) #define INF 1<<29 #define LINF LLONG_MAX/3 #define MP make_pair #define PB push_back #define EB emplace_back #define ALL(v) (v).begin(),(v).end() #define all(v) (v).begin(),(v).end() #define debug(...
a.cc: In function 'int main()': a.cc:88:11: error: invalid type argument of unary '*' (have 'll' {aka 'long long int'}) 88 | if(RR**CC>10000000){ | ^~~
s119725036
p03995
C++
#include <bits/stdc++.h> using namespace std; unordered_set<pair<int,int>> s; map<pair<int,int>,int> mp; map<pair<int,int>,int>::iterator map_find(pair<int,int> x){ auto y = mp.lower_bound(x); if(y != mp.upper_bound(x)){ return *y } return mp.end(); } int main(){ int r,c,c; cin >> r >> c; cin >> n; for(in...
a.cc:5:30: error: use of deleted function 'std::unordered_set<_Value, _Hash, _Pred, _Alloc>::unordered_set() [with _Value = std::pair<int, int>; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]' 5 | unordered_set<pair<int,int>> s; ...
s985706593
p03995
Java
/* * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.util; import java.io.IOException; import java.io.InvalidObjectException; import java.io.S...
Main.java:26: error: package exists in another module: java.base package java.util; ^ Main.java:137: error: class HashMap is public, should be declared in a file named HashMap.java public class HashMap<K,V> extends AbstractMap<K,V> ^ Main.java:137: error: cannot find symbol public class HashMap<K,V> extends Abst...
s801656428
p03995
C++
#include <iostream> #include <cstring> #include <random> using namespace std; int map[100001][100001]; int main() { memset(map, -1, (unsigned long long)100001 * (unsigned long long)100001); int R, C, N; cin >> R >> C >> N; for(int i = 0; i < N; i++) { int r, c, a; cin >> r >> c >> a; map[r - 1]...
a.cc: In function 'int main()': a.cc:58:22: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 58 | random_device rnd(); | ^~ a.cc:58:22: note: remove parentheses to default-initialize a variable 58 | random_device rnd(); | ...
s153186978
p03995
C++
#include <iostream> #include <cstring> #include <random> using namespace std; int map[100001][100001]; int main() { //memset(map, -1, 100001 * 100001); int R, C, N; cin >> R >> C >> N; for(int i = 0; i < N; i++) { int r, c, a; cin >> r >> c >> a; map[r - 1][c - 1] = a; } bool flag = true; ...
a.cc: In function 'int main()': a.cc:58:22: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 58 | random_device rnd(); | ^~ a.cc:58:22: note: remove parentheses to default-initialize a variable 58 | random_device rnd(); | ...
s271778310
p03995
C++
#define _USE_MATH_DEFINES #include <iostream> #include <string> #include <algorithm> #include <cmath> #include <cstdio> #include <climits> #include <cstdlib> #include <vector> #include <queue> #include <unordered_map> #include <iomanip> using namespace std; #define ALL(a) (a).begin(),(a).end() #define FOR(i,a,b) for (...
a.cc: In function 'int main()': a.cc:108:28: error: no match for 'operator>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int') 108 | } if (cout > 1) flag = true; | ~~~~ ^ ~ | | | | | ...
s427950074
p03995
C++
#include <iostream> #include <random> using namespace std; int map[100001][100001]; int main() { memset(map, -1, 100001 * 100001); int R, C, N; cin >> R >> C >> N; for(int i = 0; i < N; i++) { int r, c, a; cin >> r >> c >> a; map[r - 1][c - 1] = a; } bool flag = true; for(int i = 0; i < ...
a.cc: In function 'int main()': a.cc:8:26: warning: integer overflow in expression of type 'int' results in '1410265409' [-Woverflow] 8 | memset(map, -1, 100001 * 100001); | ~~~~~~~^~~~~~~~ a.cc:8:3: error: 'memset' was not declared in this scope 8 | memset(map, -1, 100001 * 100001);...
s697722642
p03995
C++
1000000000000000000
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 1000000000000000000 | ^~~~~~~~~~~~~~~~~~~
s503009349
p03995
C++
#include<iostream> #include<iomanip> #include<algorithm> #include<array> #include<bitset> #include<cassert> #include<cctype> #include<cmath> #include<cstdio> #include<cstring> #include<functional> #include<limits> #include<list> #include<map> #include<numeric> #include<set> #include<stack> #include<string> #include<sst...
a.cc: In function 'int main()': a.cc:113:48: error: 'r' was not declared in this scope 113 | if (z != -1 && r >= 3) { | ^ a.cc:115:113: error: 'i' was not declared in this scope 115 | if (w -...
s080196962
p03995
C
#include<stdio.h> #define RMAX 100001 #define CMAX 100001 #define NMAX 100000 unsigned long a[RMAX][CMAX], isfilled[RMAX][CMAX]; int r[NMAX], c[NMAX]; int main(void){ long i, j; long R, C, N, anow; scanf("%ld", &R); scanf("%ld", &C); scanf("%ld", &N); for(i = 0; i < N; i++...
/tmp/ccucahyJ.o: in function `main': main.c:(.text+0x75): relocation truncated to fit: R_X86_64_PC32 against symbol `r' defined in .bss section in /tmp/ccucahyJ.o main.c:(.text+0xa2): relocation truncated to fit: R_X86_64_PC32 against symbol `c' defined in .bss section in /tmp/ccucahyJ.o main.c:(.text+0xee): relocation...
s153039256
p03995
C++
#include <iostream> #include <string> #include <algorithm> #include <vector> #include <utility> using namespace std; int main() { int R,C,N; cin >> R >> C; cin >> N; int a[R][C]; for(int i=0;i<R;i++) { for(int j=0;j<C;j++) { a[i][j]=-1; } } int r,c,num; int sum = 0; for(int i=0;i<N;i++) { cin >> ...
a.cc: In function 'int main()': a.cc:22:26: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 22 | cin >> r << c << num; | ~~~~~~~~ ^~ ~ | | | | ...
s825921587
p03995
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; template<typename T> using Graph = vector<vector<T>>; #define REP(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define rep(i, a) REP(i, 0, a) #define EACH(i, a) for (auto i: a) #define ITR(x, a) for (__typeof(a.begin()) x = a.begin(); x != a.end...
a.cc:41:77: error: redefinition of 'int r4' 41 | bool check_cell(int r1, int c1, int r2, int c2, int r3, int c3, int r4, int r4) { | ~~~~^~ a.cc:41:69: note: 'int r4' previously declared here 41 | bool check_cell(int r1, int c1, int r2,...
s405111242
p03995
C++
#include<bits/stdc++.h> #define REP(i,s,n) for(int i=s;i<n;i++) #define rep(i,n) REP(i,0,n) using namespace std; const string YES = "Yes"; const string NO = "No"; struct Data { int x,y; bool operator < ( const Data& data ) const { if( x != data.x ) return x < data.x; return y < data.y; } bool opera...
a.cc: In function 'int main()': a.cc:61:52: error: expected ';' before ':' token 61 | if( cnt >= 100 ) { cout << NO << endl; return 0: } | ^ | ; a.cc:61:52: error: expected primary-expression before ...
s605980415
p03995
C++
/* * Created by KeigoOgawa */ #include <cstdio> #include <iostream> #include <algorithm> #include <queue> #include <map> #include <set> #include <cassert> #include <cmath> typedef long long ll; #define INF (int)1e10 #define EPS 1e-10 #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define RFOR(i, a, b) for (i...
g++: internal compiler error: File size limit exceeded signal terminated program as Please submit a full bug report, with preprocessed source (by using -freport-bug). See <file:///usr/share/doc/gcc-14/README.Bugs> for instructions.
s249653508
p03995
C++
/* * Created by KeigoOgawa */ #include <cstdio> #include <iostream> #include <algorithm> #include <queue> #include <map> #include <set> #include <cassert> #include <cmath> typedef long long ll; #define INF (ll)1e10 #define EPS 1e-10 #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define RFOR(i, a, b) for (in...
g++: internal compiler error: File size limit exceeded signal terminated program as Please submit a full bug report, with preprocessed source (by using -freport-bug). See <file:///usr/share/doc/gcc-14/README.Bugs> for instructions.
s360565983
p03995
C++
#include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <complex> #include <string> #include <vector> #include <list> #include <deque> #include <stack> #include <queue> #include <set> #include <map> #include <bitset> #include <functional> #include <utility> #include <algorithm> #inc...
a.cc: In function 'int main()': a.cc:132:2: error: expected '}' at end of input 132 | } | ^ a.cc:68:15: note: to match this '{' 68 | int main(void){ | ^
s337501851
p03995
C++
#include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <complex> #include <string> #include <vector> #include <list> #include <deque> #include <stack> #include <queue> #include <set> #include <map> #include <bitset> #include <functional> #include <utility> #include <algorithm> #inc...
a.cc: In function 'int main()': a.cc:127:2: error: expected '}' at end of input 127 | } | ^ a.cc:68:15: note: to match this '{' 68 | int main(void){ | ^
s406772947
p03995
C++
#include <cstdio> #include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <string> #include <iostream> #include <cmath> #include <string> #include <map> #include <unordered_map> #include <queue> using namespace std; typedef long long LL; const int dx[] = {0, 1, 1, 0}; const int dy[] = {0...
a.cc: In function 'int main()': a.cc:55:7: error: reference to 'data' is ambiguous 55 | data[i][j] = -1; | ^~~~ In file included from /usr/include/c++/14/vector:69, from a.cc:5: /usr/include/c++/14/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr cons...
s023753027
p03995
C++
#include <cstdio> #include <vector> #include <map> using namespace std; using pii=pair<int, int>; using ppi=pair<pii, int>; using mpi=map<pii, int>; static const int di[]={-1, -1, 1, 1}, dj[]={-1, 1, -1, 1}; bool is_valid(const ppi &item, mpi &dict, mpi &extdict) { int i=item.first.first, j=item.first.second; ...
a.cc: In function 'int main()': a.cc:78:48: error: 'find' was not declared in this scope 78 | if (dict.find(item.first)!=dict.end()&&find[item.first]!=item.second) { | ^~~~
s976032224
p03995
C++
#include <stdio.h> #include <vector> #include <iostream> #include <string> using namespace std; int R; int C; int N; int rs; int cs; long int as; bool dame=false; int po(char o){ return (int)o; } int main(){ scanf("%d %d %d",&R,&C,&N); vector< vector<int> > D(C, vector<int>(R, -1)); for(i=0;i<R && dame=...
a.cc: In function 'int main()': a.cc:28:13: error: 'i' was not declared in this scope 28 | for(i=0;i<R && dame==false;i++){ | ^
s278036005
p03995
C++
#include <bits/stdc++.h> using namespace std; using LL = long long int; int vx[4] = {-1, -1, +1, +1}; int vy[4] = {-1, +1, -1, +1}; int main(){ int R, C, N; cin >> R >> C >> N; vector<int> r(N), c(N), a(N); vector<vector<LL>> state(R+2, vector<LL>(C+2, -1)), cond(R+2, vector<LL>(C+2, -1)); for(int i = 0; i < N; ...
a.cc: In function 'int main()': a.cc:26:57: error: expected ';' before '}' token 26 | return 0 | ^ | ; 27 | ...
s050313018
p03995
C++
#include <iostream> using namespace std; int R, C, N; int r[100000], c[100000], a[100000]; int field[100000][100000]; bool filled[100000][100000]; const int dx[] = {1, 1, -1, -1}; const int dy[] = {1, -1, 1, -1}; bool isIllegal(int i) { int ri = r[i]; int ci = c[i]; int ai = a[i]; for (int j = 0; j ...
/tmp/ccyafRfv.o: in function `isIllegal(int)': a.cc:(.text+0xe9): relocation truncated to fit: R_X86_64_PC32 against symbol `filled' defined in .bss section in /tmp/ccyafRfv.o a.cc:(.text+0x111): relocation truncated to fit: R_X86_64_PC32 against symbol `filled' defined in .bss section in /tmp/ccyafRfv.o a.cc:(.text+0x...
s996351935
p03995
C++
#include<bits/stdc++.h> #define f first #define s second using namespace std; typedef long long ll; typedef pair<int,int> P; int main(){ int R,C,n; pair<P,int> o[100000]; map<P,int> mp; cin>>R>>C; cin>>n; for(int i=0;i<n;i++){ cin>>o[i].f.f>>o[i].f.s>>o[i].s; mp[o[i]]=o[i].s; } sort(o,o+n); ...
a.cc: In function 'int main()': a.cc:15:7: error: no match for 'operator[]' (operand types are 'std::map<std::pair<int, int>, int>' and 'std::pair<std::pair<int, int>, int>') 15 | mp[o[i]]=o[i].s; | ^ In file included from /usr/include/c++/14/map:63, from /usr/include/x86_64-linux-gn...
s061918420
p03995
C++
#include <cstdio> #include <numeric> #include <iostream> #include <vector> #include <set> #include <cstring> #include <string> #include <map> #include <cmath> #include <ctime> #include <algorithm> #include <bitset> #include <queue> #include <sstream> #include <deque> using namespace std; #define mp make_pair #define ...
a.cc:231:16: error: expected constructor, destructor, or type conversion before '(' token 231 | printf ("Yes\n"); | ^ a.cc:232:9: error: expected unqualified-id before 'return' 232 | return 0; | ^~~~~~ a.cc:233:1: error: expected declaration before '}' token 233 ...
s997082990
p03996
C++
#include <cmath> #include <cassert> #include <functional> #include <algorithm> template <typename T> class SegmentTree { using FuncType = std::function<T(const T&, const T&)>; private: T* val_p_m; const T init_val_m; const int size_m; const int rank_m; const FuncType func_m; T Query_rec(int range_left, int r...
a.cc: In instantiation of 'SegmentTree<T>::SegmentTree(int, const T&, const FuncType&) [with T = int; FuncType = std::function<int(const int&, const int&)>]': a.cc:160:39: required from here 160 | SegmentTree<int> S(M, INF, Min<int>()); | ^ a.cc:48:13: erro...
s186414743
p03996
C++
#ifndef __UNION_FIND_H__0004__ #define __UNION_FIND_H__0004__ class UnionFindTree { int whole_size_m; int* parent_p_m; // 根である場合は自分自身の添え字を入れる int* rank_p_m; int* size_p_m; // 集合のサイズ(根に大きさを書く) bool Is_valid_index(int index); int Root_of_rec(int index); public: UnionFindTree(int whole_size); ~UnionFindTree(); ...
a.cc: In constructor 'SegmentTree<T>::SegmentTree(int, const T&, const FuncType&)': a.cc:65:64: error: 'log2' is not a member of 'std' 65 | : init_val_m(init_val), size_m(size), rank_m((int)std::log2(size) + 1), func_m(func) { | ^~~~ a.cc: ...
s021907420
p03996
C++
//#include "IntMod.h" //typedef IntMod<1000000007> MInt; #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <string> #include <vector> #include <list> #include <utility> #include <algorithm> #include <functional> #include <cmath> #include <stack> #include <queue> #include <set> #inclu...
a.cc:54:10: fatal error: Union_Find.h: No such file or directory 54 | #include "Union_Find.h" | ^~~~~~~~~~~~~~ compilation terminated.
s115258363
p03996
C++
/+ dub.sdl: name "A" dependency "dcomp" version=">=0.4.0" +/ import std.stdio, std.algorithm, std.conv; // import dcomp.scanner; // import dcomp.container.deque; int main() { auto sc = new Scanner(stdin); int n, m, q; int[] a; sc.read(n, m, q, a); bool solve() { int[] co, idx = n...
a.cc:37:21: error: too many decimal points in number 37 | foreach (i; 0..m) { | ^~~~ a.cc:63:9: error: stray '@' in program 63 | @property bool empty() const { return length == 0; } | ^ a.cc:74:25: error: too many decimal points in number 74 | ...
s771165398
p03996
C++
#include <iostream> #include <vector> using namespace std; int main(){ int n, m; cin >> n >> m; int q; cin >> q; vector<int> a(q); for(int i = 0; i < q; i++){ cin >> a[i]; a[i]--; } vector<int> b(m); vector<int> pos(m); vector<int> freq(m + 1); freq[0] = n; freq[m] = 0; int known = 0;...
a.cc: In function 'int main()': a.cc:55:2: error: 'sort' was not declared in this scope; did you mean 'short'? 55 | sort(all.begin(), all.end()); | ^~~~ | short
s443864370
p03996
C++
#include <iostream> #include <vector> int main(){ int n, m; cin >> n >> m; int q; cin >> q; vector<int> a(q); for(int i = 0; i < q; i++){ cin >> a[i]; a[i]--; } vector<int> b(m); vector<int> pos(m); vector<int> freq(m + 1); int known = 0; for(int it = q - 1; it >= 0; it--){ int ...
a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> n >> m; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked t...
s533345409
p03996
C++
#include <cstdio> #include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <string> #include <iostream> #include <cmath> #include <string> #include <map> #include <unordered_map> #include <queue> #include <climits> using namespace std; typedef pair<int, int> PII; const int M = 100005; in...
a.cc: In function 'void add(int)': a.cc:33:13: error: 'i' was not declared in this scope 33 | if (cnt[i] > 0) { | ^ a.cc:40:13: error: 'i' was not declared in this scope 40 | if (cnt[i] > 0) { | ^
s024824754
p03996
C++
#include <Windows.h> #include <stdio.h> const int max0=100010; int n,m,a,i; int count[max0],data[max0],ans[max0],top; int dic[max0],p1; bool had[max0],wrong; int main() { scanf("%d%d%d",&n,&m,&a); for(i=0;i<a;i++) scanf("%d",&data[i]); p1=-1; for(i=a-1;i>=0;i--) if(had[data[i]]==0){ had[d...
a.cc:1:10: fatal error: Windows.h: No such file or directory 1 | #include <Windows.h> | ^~~~~~~~~~~ compilation terminated.
s191321391
p03996
C++
#include<stdio.h>   int main() { puts("Yes"); }
a.cc:2:1: error: extended character   is not valid in an identifier 2 |   | ^ a.cc:2:1: error: '\U000000a0' does not name a type 2 |   | ^
s084003445
p03996
C++
//ProblemE.cpp #include <iostream> static std::istream & ip = std::cin; static std::ostream & op = std::cout; #if OJ_MYPC #include <ojio.h> #endif #ifndef OPENOJIO #define OPENOJIO #endif #if 1 || DEFINE /***************************************************************/ typedef unsigned long long u64; typedef long ...
a.cc: In function 'int main(int, char**)': a.cc:124:14: error: redeclaration of 'bool rst' 124 | bool rst = cl[m] == n; | ^~~ a.cc:112:14: note: 'bool rst' previously declared here 112 | bool rst = true; | ^~~
s366794380
p03996
C++
#include<stdio.h> #include<vector> using namespace std; int N,M,Q,MIN; int a[111111]; int LST[111111]; vector<int> pos[111111]; bool valid[111111]; struct Node{ int prev,next; int val; } node[111111]; int head,tail,Z; int pnt[111111],cnt_bad; int nodelen; int bit[111111]; int lowbit(int x){ return x&-x; } void add...
a.cc: In function 'bool chk()': a.cc:72:9: error: 'memset' was not declared in this scope 72 | memset(bit,0,sizeof(bit)); | ^~~~~~ a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include<vector> +++ |+#include <cstrin...
s559363418
p03996
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<math.h> #include<map> #define rep(i,n,m) for(int i=n;i<(int)(m);i++) using namespace std; int main() { int n,m,q; cin...
a.cc: In function 'int main()': a.cc:21:13: error: expected primary-expression before ')' token 21 | if(m%2==)cout<<"Yes"<<endl; | ^
s898106174
p03996
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<math.h> #include<map> #define rep(i,n,m) for(int i=n;i<(int)(m);i++) using namespace std; int main() { int n,m,q; cin >>>n>>m>>q; vector<int>num(q); rep(i,0,q){ cin>>num[i]; } i...
a.cc: In function 'int main()': a.cc:15:7: error: expected primary-expression before '>' token 15 | cin >>>n>>m>>q; | ^ a.cc:21:9: error: expected primary-expression before ')' token 21 | if(m%2==)cout<<"Yes"<<endl; | ^
s859362914
p03996
C++
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x<(to);x++) #define FORR(x,arr) for(auto& x:arr) #define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define ALL(a) (a.begin()),(a.end()) #define ZER...
a.cc:18:17: error: 'int index [101010]' redeclared as different kind of entity 18 | int index[101010]; | ^ In file included from /usr/include/string.h:462, from /usr/include/c++/14/cstring:43, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121, ...
s726966931
p03996
C++
d'd
a.cc:1:2: warning: missing terminating ' character 1 | d'd | ^ a.cc:1:2: error: missing terminating ' character 1 | d'd | ^~ a.cc:1:1: error: 'd' does not name a type 1 | d'd | ^
s080634462
p03996
C++
#include <stdio.h> int main(){ int n,m,q; int a[100000]; int x[100000]; int i,j; int ans; scanf("%d %d",&n,&m); scanf("%d",&q); for(i=0;i<n;++i){ x[i]=0; } for(i=0;i<n;++i){ ++x[a[i]]; } ans=1; if(x[a[n-1]]<n){ ans=0; } printf("%s\n",(flag?"Yes":"No")...
a.cc: In function 'int main()': a.cc:26:19: error: 'flag' was not declared in this scope 26 | printf("%s\n",(flag?"Yes":"No")); | ^~~~
s815092153
p03996
Java
import java.util.*; public class Main3 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int numArrays = sc.nextInt(); int upperLimit = sc.nextInt(); int[][] arr = new int[numArrays][upperLimit]; for (int i = 0; i < numArrays; i++) { for (int j = 0; j < upperLimit; j++) {...
Main.java:3: error: class Main3 is public, should be declared in a file named Main3.java public class Main3 { ^ 1 error
s311026284
p03996
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<ll, ll> P; #define EACH(i,a) for (auto& i : a) #define FOR(i,a,b) for (ll i=(a);i<(b);i++) #define RFOR(i,a,b) for (ll i=(b)-1;i>=(a);i--) #define REP(i,n) for (ll i=0;i<(n);i++) #...
a.cc: In function 'int main()': a.cc:80:9: error: 'ans' was not declared in this scope; did you mean 'abs'? 80 | ans = false; | ^~~ | abs
s061163242
p03996
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<ll, ll> P; #define EACH(i,a) for (auto& i : a) #define FOR(i,a,b) for (ll i=(a);i<(b);i++) #define RFOR(i,a,b) for (ll i=(b)-1;i>=(a);i--) #define REP(i,n) for (ll i=0;i<(n);i++) #...
a.cc: In function 'int main()': a.cc:80:9: error: 'ans' was not declared in this scope; did you mean 'abs'? 80 | ans = false; | ^~~ | abs
s258419930
p03996
C++
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(int)(n);i++) #define rep1(i,n) for(int i=1;i<=(int)(n);i++) #define all(c) c.begin(),c.end() #define pb push_back #define fs first #define sc second #define show(x) cout << #x << " = " << x << endl #define chmin(x,y) x=min(x,y) #define chmax(x,y) x=max(x,y) using...
a.cc: In function 'bool solve()': a.cc:61:54: error: expected ';' before '}' token 61 | while(top<M&&done[top]) top++ | ^ | ; 62 | } | ...
s342458356
p03996
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<ll, ll> P; #define EACH(i,a) for (auto& i : a) #define FOR(i,a,b) for (ll i=(a);i<(b);i++) #define RFOR(i,a,b) for (ll i=(b)-1;i>=(a);i--) #define REP(i,n) for (ll i=0;i<(n);i++) #...
a.cc: In function 'int main()': a.cc:70:22: error: 'i' was not declared in this scope 70 | { set<ll> s; RPE(i, m) s.insert(seq[i]); assert(s.size() == m); } | ^ a.cc:70:18: error: 'RPE' was not declared in this scope; did you mean 'REP'? 70 | { set<ll> s; RPE(i, m) s.insert(seq[...
s287857036
p03996
C++
/*N M Q a1 a2 … aQ*/ #include <iostream> #include <string> #include <algorithm> #include <vector> #include <utility> using namespace std; int main() { int N,M,Q; cin >> N >> M; cin >> Q; int a[M]; int sum =0; for(int i=0;i<M;i++) { cin >> a[i]; sum+=a[i]; } string s; cin >> s; cin >> K; if(sum%2==...
a.cc: In function 'int main()': a.cc:24:16: error: 'K' was not declared in this scope 24 | cin >> K; | ^
s713209570
p03996
C++
#define FNAME "" #include <bits/stdc++.h> #define hash padjf9srpi #define y0 sdkfaslhagaklsldk #define y1 aasdfasdfasdf #define yn askfhwqriuperikldjk #define j1 assdgsdgasghsf #define tm sdfjahlfasfh #define lr asgasgash #define pb push_back #define mp make_pair #define forn(i, n) for (int i = 0; i < (n); i++) #defi...
a.cc: In function 'int main()': a.cc:70:29: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?) 70 | forn(i, (int) order.size) | ...
s041068325
p03996
C++
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstdio> #include <iostream> #include <map> #include <set> #include <utility> #include <vector> using namespace std; int main(){ int N, M; scanf("%d%d", &N, &M); int Q; scanf("%d", &Q); map<int,vector<int> > am; vector<int> av; for (int i...
a.cc: In function 'int main()': a.cc:37:19: error: expected primary-expression before ')' token 37 | if (temp != 1)){ | ^
s601815963
p03996
C++
#ifndef __clang__ #pragma GCC optimize ("-O3") #endif #ifdef ONLINE_JUDGE #define NDEBUG 1 #endif #define _GLIBCXX_USE_CXX11_ABI 0 #include <stdio.h> #include <bits/stdc++.h> #define DESTRUCT2(p, a, b) \ auto a = get<0>(p); \ auto b = get<1>(p); #define DESTRUCT3(p, ...
a.cc: In function 'int main(int, char**)': a.cc:217:15: error: 'endV' was not declared in this scope 217 | bool remEnd=endV<=S.size(); int endV = S.back(); | ^~~~
s762830949
p03997
C++
#include<stdio.h> #include<iostream> #include<string> #include<vector> #include<map> #include<algorithm> #include<cmath> #include<bitset> #define Vsort(a) sort(a.begin(), a.end()) #define Vreverse(a) reverse(a.begin(), a.end()) #define Srep(n) for(int i = 0; i < (n); i++) #define Lrep(i,a,n) for(int i = (a); i < (n);...
a.cc: In function 'int main()': a.cc:29:26: error: expected ';' before '}' token 29 | cout << (a + b) * h / 2 | ^ | ; 30 | } | ~
s649805796
p03997
C++
#include <iostream> using namespace std; int main(){ int a; cin >> a; int b: cin >> b; int h; cin >> h; cout << (a+b)*h/2; }
a.cc: In function 'int main()': a.cc:7:8: error: found ':' in nested-name-specifier, expected '::' 7 | int b: | ^ | :: a.cc:7:7: error: 'b' has not been declared 7 | int b: | ^ a.cc:8:7: error: qualified-id in declaration before '>>' token 8 | cin >> b; | ...
s063836662
p03997
C++
#include <iostream> using namespace std; int main(){ int a; cin >> a; int b; cin >> b; int h; cin >> h; cout << (a+b)*h/2 }
a.cc: In function 'int main()': a.cc:12:20: error: expected ';' before '}' token 12 | cout << (a+b)*h/2 | ^ | ; 13 | } | ~
s276807819
p03997
C++
#include <iostream> using namespace std; int main(){ int a; cin >> a; int b; cin >> b; int h; cin >> h; cout << (a+b)h/2 << endl; }
a.cc: In function 'int main()': a.cc:12:16: error: expected ';' before 'h' 12 | cout << (a+b)h/2 << endl; | ^ | ;
s581821095
p03997
C++
#include <iostream> using namespace std; int main(){ int a.b.h; cin >> a; cin >> b; cin >> h; cout << (a+b)h/2 << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: expected initializer before '.' token 6 | int a.b.h; | ^ a.cc:7:9: error: 'a' was not declared in this scope 7 | cin >> a; | ^ a.cc:8:9: error: 'b' was not declared in this scope 8 | cin >> b; | ^ a.cc:9:9: error: 'h...
s056423713
p03997
C++
#include <iostream> using namespace std; int main(){ int a.b.h; cin >> a; cin >> b; cin >> c; cout << (a+b)h/2 << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: expected initializer before '.' token 6 | int a.b.h; | ^ a.cc:7:9: error: 'a' was not declared in this scope 7 | cin >> a; | ^ a.cc:8:9: error: 'b' was not declared in this scope 8 | cin >> b; | ^ a.cc:9:9: error: 'c...
s204920491
p03997
C++
#include <iostream> using namespace std; int main(){ int a.b.h; cin << a << b << h << endl; cout << (a+b)h/2 << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: expected initializer before '.' token 6 | int a.b.h; | ^ a.cc:7:10: error: 'a' was not declared in this scope 7 | cin << a << b << h << endl; | ^ a.cc:7:15: error: 'b' was not declared in this scope 7 | cin << a << b << h << en...
s547065019
p03997
C++
#include <iostream> using namespace std; int main(){ int a.b.h; cout << (a+b)h/2 << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: expected initializer before '.' token 6 | int a.b.h; | ^ a.cc:7:12: error: 'a' was not declared in this scope 7 | cout << (a+b)h/2 << endl; | ^ a.cc:7:14: error: 'b' was not declared in this scope 7 | cout << (a+b)h/2 << endl...
s766018016
p03997
C++
#include <iostream> using namespace std; int main(){ int a.b.h; cin >> a,b,h; cout << (a+b)h/2 << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: expected initializer before '.' token 6 | int a.b.h; | ^ a.cc:7:11: error: 'a' was not declared in this scope 7 | cin >> a,b,h; | ^ a.cc:7:13: error: 'b' was not declared in this scope 7 | cin >> a,b,h; | ^...
s908631265
p03997
C++
#include <iostream> using namespace std; int main(){ int a.b.h; cin >> a,b,h; cout << (a+b)*h/2 << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: expected initializer before '.' token 6 | int a.b.h; | ^ a.cc:7:11: error: 'a' was not declared in this scope 7 | cin >> a,b,h; | ^ a.cc:7:13: error: 'b' was not declared in this scope 7 | cin >> a,b,h; | ^...
s665735894
p03997
C++
#include <iostream> using namespace std; int main(){ int a,b,h; cin >> a >> endl >> b >> endl >> h >> endl; cout << (a+b)h/2 << endl; }
a.cc: In function 'int main()': a.cc:7:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 7 | cin >> a >> endl >> b >> endl >> h >> endl; | ~~~~~~~~~^~~~~~~ In file included from /...
s830366583
p03997
C++
#include <iostream> using namespace std; int main(){ int a,b,h; cin >> a; cin >> b; cin >> h; cout << (a+b)h/2 << endl; }
a.cc: In function 'int main()': a.cc:10:16: error: expected ';' before 'h' 10 | cout << (a+b)h/2 << endl; | ^ | ;
s414752987
p03997
C++
#include <iostream> using namespace std; int main(){ int a,b,h; cin >> a,b,h; cout << (a+b)h/2 << endl; }
a.cc: In function 'int main()': a.cc:8:16: error: expected ';' before 'h' 8 | cout << (a+b)h/2 << endl; | ^ | ;
s569077995
p03997
C++
#include <iostream> using namespace std; int main(){ int a,b,h; cin >> a,b,h; cout << (a+b)h/2 << endl; }
a.cc: In function 'int main()': a.cc:8:16: error: expected ';' before 'h' 8 | cout << (a+b)h/2 << endl; | ^ | ;