submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s140567456
p02022
C++
#include <bits/stdc++.h> using namespace std; int main(){ long long a,b; cin>>a>>b; int e=0; for(int i=0;i<a;i++){ long long c[100000]; cin>>c[i]; for(int j=0;j<b;j++){ long long d[100000]; cin>>d[j]; int l=i*j; int f[l] e+=f[l]; } } cout<<e<<endl; }
a.cc: In function 'int main()': a.cc:16:25: error: expected initializer before 'e' 16 | e+=f[l]; | ^
s329637454
p02022
C++
#include <iostream> using namespace std; long int main(void){ int N, M, A[100001]={}, B[100001]={}, sum_A=0, sum_B=0; cin >> N >> M; for(int i=1; i<=N; i++){ cin >> A[i]; sum_A += A[i]; } for(int j=1; j<=M; j++){ cin >> B[j]; sum_B += B[j]; } cout <<...
a.cc:3:6: error: '::main' must return 'int' 3 | long int main(void){ | ^~~
s659229569
p02023
C++
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s220810923
p02023
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < n; i++) #define inf 1000000007 #define int long long signed main() { int n; vector<pair<int, int>> v; rep(i, n) { int a, b; cin >> a >> b; v.push_back(make_pair(a, 1)); v.push_back(make_pair(b + 1, -1)); } sort(v.begin(), v...
a.cc: In function 'int main()': a.cc:19:13: error: declaration of 'auto i' has no initializer 19 | for(auto i; v) { | ^~~~ a.cc:19:21: error: could not convert 'v' from 'std::vector<std::pair<long long int, long long int> >' to 'bool' 19 | for(auto i; v) { | ...
s223038652
p02023
C++
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s608275748
p02023
C++
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s625824896
p02023
C++
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s761913027
p02023
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> using namespace std; int main() { long long int n; cin >> n; vector<vector<long long int>> w(n, vector<int>(2)); long long int max = 0; for (long long int i = 0; i < n; i++) { for (int j = 0; j < 2; j++) { cin >> w.at(i).at(j); ...
a.cc: In function 'int main()': a.cc:10:58: error: no matching function for call to 'std::vector<std::vector<long long int> >::vector(long long int&, std::vector<int>)' 10 | vector<vector<long long int>> w(n, vector<int>(2)); | ^ In file included...
s185917012
p02023
C++
//↓template↓ #include "bits/stdc++.h" using namespace std; #define Would #define you #define all(n) n.begin(),n.end() const long long INF = 1e18; const long long MOD = 1e9 + 7; const double pi = acos(-1); const int SIZE = 1 << 17; int dx[] = { 1,0 }, dy[] = { 0,1 }, alp[30]; long long fac[200005], finv[200005], inv[2...
a.cc: In function 'int main()': a.cc:49:37: error: 'class std::map<int, int>' has no member named 'second' 49 | for (auto i : m) { mon += m.second; ans = max(ans, mon); } | ^~~~~~
s222721896
p02024
C++
#include <string> #include <iostream> #include <math.h> #include <algorithm> #include <vector> #include <iomanip> #include <map> #include <set> typedef long long ll; const int mod=1e9+7; #define lol(i,n) for(int i=0;i<n;i++) using namespace std; int a,b,c,d; int main() { cin >> a>>b >> c>>d; if(((a%2==1||b%2==...
a.cc: In function 'int main()': a.cc:17:38: error: expected ';' before 'cout' 17 | if(((a%2==1||b%2==1)&&(c+d)%2==1)cout << "No"<< endl; | ^~~~ | ; a.cc:18:5: error: expected primary-expression before 'else' 18 | else co...
s959964838
p02024
C++
#include <string> #include <iostream> #include <math.h> #include <algorithm> #include <vector> #include <iomanip> #include <map> #include <set> typedef long long ll; const int mod=1e9+7; #define lol(i,n) for(int i=0;i<n;i++) using namespace std; int a,b,c,d; int main() { cin >> a>>b >> c>>d; if(((a%2==1||b%2==...
a.cc: In function 'int main()': a.cc:17:38: error: expected ';' before 'cout' 17 | if(((a%2==1||b%2==1)&&(c+d)%2==1)cout << "No"<< endl; | ^~~~ | ; a.cc:18:5: error: expected primary-expression before 'else' 18 | else co...
s780788386
p02024
C++
#include <cstdio> #include <iostream> #include <cstdio> #include <cassert> #include <algorithm> #include <functional> #include <iomanip> #include<string> #include <numeric> using namespace std; #define rep(i,n) for(long long i=0;i<n;i++) int main() { long long a, b, c, d; cin >> a >> b >> c >> d; if (a%2!=0&&b%2!=0(...
a.cc: In function 'int main()': a.cc:15:27: error: expression cannot be used as a function 15 | if (a%2!=0&&b%2!=0(c == 1 || d == 1) && ((c == (a + 1) / 2) || (d == (a + 1) / 2))) { cout << "No" << endl; } | ~^~~~~~~~~~~~~~~~~~
s751164607
p02024
C++
#include <cstdio> #include <iostream> #include <cstdio> #include <cassert> #include <algorithm> #include <functional> #include <iomanip> #include<string> #include <numeric> using namespace std; #define rep(i,n) for(long long i=0;i<n;i++) int main() { long long a, b, c, d; cin >> a >> b >> c >> d; if (a%2!=0&&b%2!=0(...
a.cc: In function 'int main()': a.cc:15:27: error: expression cannot be used as a function 15 | if (a%2!=0&&b%2!=0(c == 1 || d == 1) && ((c == (a + 1) / 2) || (d == (a + 1) / 2))) { cout << "No" << endl; } | ~^~~~~~~~~~~~~~~~~~
s665667370
p02024
C++
#include <bits/stdc++.h> #define f(i,n) for(int i=0;i<(n);i++) #define P pair<int,int> #define mod 1000000007 #define S second #define F first #define int long long using namespace std; vector<int> v; int x[200010],b[100010],c[100010]; void mutu(int a,int aa){ int l=0,r=(int)(v.size()); while(r-l>=1){ int i=(r+l)/2...
a.cc: In function 'int main()': a.cc:36:83: error: lvalue required as left operand of assignment 36 | if((a==3&&b==3&&abs(c-d)==1)||((a==3||a==5)&&(b==5||b==3)&&a!=b&&c=(a+1)/2&&d=(b+1)/2))puts("No"); | ~~~~~~~^~~
s611801162
p02028
C++
#include <bits/stdc++.h> #define f(i,n) for(int i=0;i<(n);i++) #define P pair<int,int> #define mod 1000000007 #define S second #define F first #define int long long using namespace std; int x[500],y[500]; signed main(){ f(;;){} return 0; }
a.cc:11:13: error: macro "f" requires 2 arguments, but only 1 given 11 | f(;;){} | ^ a.cc:2:9: note: macro "f" defined here 2 | #define f(i,n) for(int i=0;i<(n);i++) | ^ a.cc: In function 'int main()': a.cc:11:9: error: 'f' was not declared in this scope 11 | f(...
s512440534
p02028
C++
#include <bits/stdc++.h> #define f(i,n) for(int i=0;i<(n);i++) #define P pair<int,int> #define mod 1000000007 #define S second #define F first #define int long long using namespace std; int x[500],y[500]; signed main(){ f(;;){} return 0; }
a.cc:11:13: error: macro "f" requires 2 arguments, but only 1 given 11 | f(;;){} | ^ a.cc:2:9: note: macro "f" defined here 2 | #define f(i,n) for(int i=0;i<(n);i++) | ^ a.cc: In function 'int main()': a.cc:11:9: error: 'f' was not declared in this scope 11 | f(...
s722125602
p02029
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < n; i++) #define inf 1000000007 #define int long long signed main() { int n, m; cin >> n >> m; vector<pair<int, int>> ba(n); rep(i, n) { cin >> ba[i].second >> ba[i].first; } vector<pair<int, int>> cd(m); rep(i, m) { cin >> cd...
a.cc: In function 'int main()': a.cc:18:9: error: 'multi_set' was not declared in this scope 18 | multi_set<int> se; | ^~~~~~~~~ a.cc:5:13: error: expected primary-expression before 'long' 5 | #define int long long | ^~~~ a.cc:18:19: note: in expansion of macro 'int' 18...
s339877570
p02029
C++
#include<bits/stdc++.h> typedef long long ll; using namespace std; ll n,m,a[2e5],b[2e5],j,k,ans; priority_queue<ll> Q; void Ad(ll c,ll d){ for(;j<n&&a[j]<c;j++)Q.push(b[j]); for(;k>d;k--)if(!Q.empty()){ans+=Q.top(); Q.pop();} } int main(){ cin>>n>>m; for(int i=0;i<n;i++)cin>>a[i]>>b[i]; j=0,k=n+1,an...
a.cc:4:10: error: conversion from 'double' to 'long unsigned int' in a converted constant expression 4 | ll n,m,a[2e5],b[2e5],j,k,ans; | ^~~ a.cc:4:10: error: could not convert '2.0e+5' from 'double' to 'long unsigned int' 4 | ll n,m,a[2e5],b[2e5],j,k,ans; | ^~~ | | ...
s701419175
p02098
C++
#include<iostream> using namespace std; int main(){ double a,b; cin>>a>>b; cout<<(a+b>=360?a+b-360:a+b/2<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:34: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<' 6 | cout<<(a+b>=360?a+b-360:a+b/2<<endl; | ~~~~~^~~~~~ a.cc:6:40: error: expected ')' before ';' token 6 | cout<<(a+b>...
s710282864
p02099
C
/* * ID: 3001 * Proble: GPA janken, combination */ #include <stdio.h> int main(void) { float a[500000]; int c[4001] = {}; int s[4001] = {}; int n; scanf("%d", &n); int i; for (i = 0; i < n; i++) scanf("%f", a + i); for (i = 0; i < n; i++) c[(int)(a[i] * 1000)]++;...
main.c: In function 'main': main.c:33:25: error: array subscript is not an integer 33 | printf("%d\n", s[a[i] * 1000]); | ^
s900089510
p02099
C++
#include<iostream> #include<vector> using namespace std; #define rep(i,n) for(i=0;i<n;i++) int main(){ int n,i; cin>>n; vector<double> a(n),tmp(n); rep(i,n)cin>>a[i]; tmp=a; sort(tmp.begin(),tmp.end()); /* rep(i,n) cout<<tmp[i]<<end...
a.cc: In function 'int main()': a.cc:12:3: error: 'sort' was not declared in this scope; did you mean 'short'? 12 | sort(tmp.begin(),tmp.end()); | ^~~~ | short a.cc:20:10: error: 'upper_bound' was not declared in this scope 20 | ans+=upper_bound(tmp.begin(),tmp.end(),a[i])-lower_bound(tmp.be...
s667519890
p02099
C++
#include<iostream> #include<vector> using namespace std; #define rep(i,n) for(i=0;i<n;i++) int main(){ int n,i; cin>>n; vector<double> a(n),tmp(n); rep(i,n)cin>>a[i]; tmp=a; sort(tmp.begin(),tmp.end()); rep(i,n){ int ans=lower_bound(tmp.begin(),tmp.end(),a[i])-tmp.begin(); ans*=3; ans+=upper_...
a.cc: In function 'int main()': a.cc:12:3: error: 'sort' was not declared in this scope; did you mean 'short'? 12 | sort(tmp.begin(),tmp.end()); | ^~~~ | short a.cc:16:10: error: 'upper_bound' was not declared in this scope 16 | ans+=upper_bound(tmp.begin(),tmp.end(),a[i])-lower_bound(tmp.be...
s877628170
p02099
C++
#include<bits/stdc++.h> using namespace std; double x; int a[5002]; int b[5002],c[5002]; main(){ int n; cin>>n; for(int i=0;i<n;i++){ cin>>x; x*=1000; a[I]=(int)x; } for(int i=0;i<n;i++){ b[(int)(a[i])]++; c[(int)(a[i])]++; } for(int i=1;i<=4000;i++)b[...
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:12:11: error: 'I' was not declared in this scope 12 | a[I]=(int)x; | ^
s922475463
p02099
C++
#include<bits/stdc++.h> using namespace std; double x; int a[5002]; int b[5002],c[5002]; main(){ int n; cin>>n; for(int i=0;i<n;i++){ scanf("%lf",&x); x*=1000; a[i]=x; b[x]++; } for(int i=0;i<n;i++) c[i]=b[i]; for(int i=1;i<=4000;i++) b[i]+=b[i-1]; for(int i=0...
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:13:10: error: invalid types 'int [5002][double]' for array subscript 13 | b[x]++; | ^
s451665706
p02099
C++
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s650138126
p02100
C++
#include <iostream> #include <string> #include <vector> #include <sstream> using namespace std; #define rep(i,n) for(int i = 0;i < n;i++) #define int long long string tostr(int i) { stringstream ss(i); return ss.str(); } int toint(string s) { stringstream ss(s); int i; ss >> i; return i; } signed main() { ...
a.cc: In function 'std::string tostr(long long int)': a.cc:13:25: error: invalid conversion from 'long long int' to 'std::ios_base::openmode' [-fpermissive] 13 | stringstream ss(i); | ^ | | | long long int In file inclu...
s275852907
p02100
C++
#include <iostream> #include <vector> using namespace std; bool test(vector<int> &K, int a, int n){ for(int i=n;i>0;i--){ K[i-1]-=K[i]*a; } if(!K[0]){ for(int i=0;i<n;i++){ K[i]=K[i+1]; } K.pop_back(); return true; } return false; } int main(){ ...
a.cc: In function 'int main()': a.cc:62:5: error: 'sort' was not declared in this scope; did you mean 'short'? 62 | sort(ans.begin(), ans.end()); | ^~~~ | short
s259163921
p02100
C++
s
a.cc:1:1: error: 's' does not name a type 1 | s | ^
s142852825
p02101
C++
#include<bits/stdc++.h> using namespace std; int N, P; int X[100], Y[100]; map< pair< int, int >, int > dp[100]; int rec(int idx, int p, int pre) { if(idx == N) return (0); if(dp[idx].count(make_tuple(p, pre))) return (dp[idx][make_tuple(p, pre)]); int ret = rec(idx + 1, p, 0); int get = max(0, Y[idx] - max...
a.cc: In function 'int rec(int, int, int)': a.cc:13:19: error: no matching function for call to 'std::map<std::pair<int, int>, int>::count(std::tuple<int, int>)' 13 | if(dp[idx].count(make_tuple(p, pre))) return (dp[idx][make_tuple(p, pre)]); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ In file included from /us...
s752767514
p02101
C++
#include<bits/stdc++.h> using namespace std; #define INF 1000000000 #define REP(i,n) for(int (i)=0;(i)<(int)(n);(i)++) typedef long long LL; int N; int P; int X[111]; int Y[111]; int dp[111][111][111]; int cal(int x,int y){ x--;y--; if(x==y)return max(Y[x]-X[x],0); int need=max(Y[x]-X[x],0);//?????\?????...
a.cc: In function 'int cal(int, int)': a.cc:17:27: error: 'ans' was not declared in this scope; did you mean 'abs'? 17 | int nX=max(0,X[i]-ans); | ^~~ | abs
s454728701
p02101
C++
N,P=map(int,input().split()) xs=[] ys=[] dp=[[[1e9 for i in range(N+1)] for j in range(N+1)] for k in range(N+1)] memo=[[0 for i in range(N+1)] for j in range(N+1)] for i in range(N): x,y=map(int,input().split()) xs.append(x) ys.append(y) for start in range(N): for now in range(start,N+1): if(n...
a.cc:1:1: error: 'N' does not name a type 1 | N,P=map(int,input().split()) | ^
s964466633
p02101
C++
#include <stdio.h> #include <cmath> #include <algorithm> #include <cfloat> #include <stack> #include <queue> #include <vector> #include <string> #include <iostream> #include <set> #include <map> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define MOD 1000000007 #define EPS 0...
a.cc: In function 'int main()': a.cc:58:25: error: incompatible types in assignment of 'int' to 'int [2]' 58 | next_dp[pre_no] = 0; | ~~~~~~~~~~~~~~~~^~~ a.cc:59:26: error: incompatible types in assignment of 'int' to 'int [2]' 59 | next_dp[pre_yes] = 0; | ~~~~~~~~~~~~~...
s150278104
p02102
C++
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef long long ll; struct Edge{ int from, to; ll len, rou; double cost; }; struct UF{ int n; vi d, r; UF(int n) : n(n), d(n, -1), r(n, 0){}; int root(int i) { if(d[i] < 0) return i; return d[i] = root(d[i]); } bool same(int x, int...
a.cc: In lambda function: a.cc:63:43: error: 'EPS' was not declared in this scope 63 | if(abs(ea.cost-eb.cost) < EPS) { | ^~~ a.cc:67:9: warning: control reaches end of non-void function [-Wreturn-type] 67 | }); | ^
s191072995
p02102
C++
#error "tsurai" #include <cstdio> #include <cstdint> #include <algorithm> #include <queue> #include <functional> template <class T> using pqueue=std::priority_queue<T, std::vector<T>, std::greater<T>>; struct Edge { size_t a, b; intmax_t c, d; Edge(size_t a, size_t b, intmax_t c, intmax_t d): a(a), b(b), c(c),...
a.cc:1:2: error: #error "tsurai" 1 | #error "tsurai" | ^~~~~
s154424375
p02103
Java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.NoSuchElementException; import java.util.TreeMap; import java.util.TreeSet; public class Main { int MAX = 1000000; class Pos implements Comparable<Pos> { ...
Main.java:177: error: integer number too large for (int i = 0; i < 3000000000; i++) { ^ 1 error
s739604651
p02103
C++
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <map> #include <queue> #include <sstream> #include <string> #include <tuple> #include <unordered_set> #include <vector> using namespace std; using ll = long long; #define al...
a.cc:34:7: error: explicit specialization of 'template<class _Tp> struct std::hash' outside its namespace must use a nested-name-specifier [-fpermissive] 34 | class hash<P> { | ^~~~~~~ a.cc:45:7: error: explicit specialization of 'template<class _Tp> struct std::hash' outside its namespace must use a nes...
s881277069
p02103
C++
16 19 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 2 2 3 3 4 3 5 1 6 6 7 6 8 7 8 8 9 8 10 10 11 11 12 12 10 1 13 13 14 14 15 15 13 14 16 15 16
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 16 19 | ^~
s429185238
p02103
C++
#include <map> #include <vector> #include <cstdlib> using namespace std; vector <map <int,int> > li(100000); int n,m,k,r=2; void dfs1(int y,int x){ if(li[y][x]==0||li[y][x]==2) return; if(y==n-1||x==0){ r=0; return; } li[y][x]=2; for(int i=-2;i<=2;i++) for(int j=-2;j<=2;j++) if(abs(i)==2||ab...
a.cc: In function 'int main()': a.cc:38:3: error: 'cin' was not declared in this scope 38 | cin>>n>>m>>k; | ^~~ a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 3 | #include <cstdlib> +++ |+#include <iostream> 4 | using namespa...
s427871752
p02105
C++
#include<iostream> #include<sstream> #include<vector> #include<deque> #include<cstdio> #include<map> #include<set> #include<cassert> #include<algorithm> #define REP(i,s,n) for(int i=s;i<n;++i) #define rep(i,n) REP(i,0,n) using namespace std; typedef long long ll; #define MAX 600 typedef pair<ll,ll> ii; int N; ll A,B...
a.cc: In function 'int main()': a.cc:61:25: error: 'LLONG_MAX' was not declared in this scope 61 | ii aaa = ii(v.first,-LLONG_MAX); | ^~~~~~~~~ a.cc:10:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 9 | #include<algo...
s017216784
p02105
C++
#include <stdio.h> #include <cmath> #include <algorithm> #include <cfloat> #include <stack> #include <queue> #include <vector> #include <string> #include <iostream> #include <set> #include <map> #include <time.h> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define MOD 100000...
a.cc: In function 'int main()': a.cc:83:33: error: no match for 'operator[]' (operand types are 'std::map<long long int, int>' and '__gnu_cxx::__alloc_traits<std::allocator<Info>, Info>::value_type' {aka 'Info'}) 83 | if(count[G[1][add_index]] == 0)SET.erase(G[1][add_index].value); | ...
s296299754
p02106
C++
#include<bits/stdc++.h> using namespace std; const int backet = 333; int N, Q; vector< int > g[100000]; int in[100000], out[100000], ptr; int sz[(10000 + backet - 1) / backet][10]; int convert[(10000 + backet - 1) / backet][10]; int data[100000]; void tour(int idx, int par = -1) { in[idx] = ptr++; for(int &to ...
a.cc: In function 'void push(int)': a.cc:25:5: error: reference to 'data' is ambiguous 25 | data[i] = convert[k][data[i]]; | ^~~~ In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/std...
s797557154
p02106
C++
#include<bits/stdc++.h> using namespace std; const int backet = 333; int N, Q; vector< int > g[100000]; int in[100000], out[100000], ptr; int sz[(10000 + backet - 1) / backet][10]; int convert[(10000 + backet - 1) / backet][10]; int data[100000]; void tour(int idx, int par = -1) { in[idx] = ptr++; for(int &to ...
a.cc: In function 'void push(int)': a.cc:25:5: error: reference to 'data' is ambiguous 25 | data[i] = convert[k][data[i]]; | ^~~~ In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/std...
s733222709
p02106
C++
#include<bits/stdc++.h> using namespace std; const int backet = 333; int N, Q; vector< int > g[150000]; int in[150000], out[150000], ptr; int sz[(150000 + backet - 1) / backet][10]; int convert[(150000 + backet - 1) / backet][10]; int data[150000]; void tour(int idx, int par = -1) { in[idx] = ptr++; for(int &t...
a.cc: In function 'void push(int)': a.cc:25:5: error: reference to 'data' is ambiguous 25 | data[i] = convert[k][data[i]]; | ^~~~ In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/std...
s471455381
p02106
C++
#include<bits/stdc++.h> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define MOD 1000000007 #define EPS 0.000000001 using namespace std; #define NUM 300001 int N = 1; int index,root; int num_count[NUM][10],change_table[NUM][10]; int LEFT[100000],RIGHT[100000]; vector<int>...
a.cc:14:5: error: 'int index' redeclared as different kind of entity 14 | int index,root; | ^~~~~ 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, from a.cc:1...
s455965095
p02106
C++
#include<bits/stdc++.h> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define MOD 1000000007 #define EPS 0.000000001 using namespace std; #define NUM 300001 int N = 1; int index,root; int num_count[NUM][10],change_table[NUM][10]; int LEFT[100000],RIGHT[100000]; vector<int>...
a.cc:14:5: error: 'int index' redeclared as different kind of entity 14 | int index,root; | ^~~~~ 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, from a.cc:1...
s787871945
p02106
C++
#include<bits/stdc++.h> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define MOD 1000000007 #define EPS 0.000000001 using namespace std; #define NUM 600001 int N = 1; int euler_index,root; int num_count[NUM][10],change_table[NUM][10]; int LEFT[100005],RIGHT[100005]; vecto...
a.cc: In function 'void update(int, int, int, int, int, int, int)': a.cc:54:39: error: invalid types 'int [10][int [10]]' for array subscript 54 | next_num_count[change_table[i]] += num_count[node_id][i]; | ^
s997208003
p02108
C++
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int,int> pii; #define rep(i,n) for(ll i=0;i<(ll)(n);i++) #define all(a) (a).begin(),(a).end() #define pb emplace_back #define INF (1e9+1) #define MAX_V 200000 vector<int> G[MAX_V]; vector<int> rG[MAX_V]; vector<string> str; void ad...
a.cc: In lambda function: a.cc:109:19: error: 'v' is not captured 109 | if(e>=v)continue; | ^ a.cc:106:21: note: the lambda has no capture-default 106 | const auto f = [](vector<int> &list, vector<int> &cost ){ | ^ a.cc:75:9: note: 'int v' declared h...
s715575932
p02108
C++
#include "bits/stdc++.h" #include <unordered_set> using namespace std; typedef long long ll; typedef pair<int,int> pii; #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 MAX_V 200000 vector<int> G[MAX_V]; vector<int> rG[MAX_V]; vector<int...
a.cc: In function 'int main()': a.cc:119:18: error: no match for call to '(const main()::<lambda(std::vector<int>&, std::vector<int>&, int)>) (std::vector<int>&, std::vector<int>&)' 119 | nc[i] = f(each_scc[i],c); | ~^~~~~~~~~~~~~~~ a.cc:119:18: note: candidate: 'int (*)(std::vector<int>...
s735851494
p02111
C++
#include<iostream> using namespace std;
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s157588713
p02113
C++
#include<iostream> #include<vector> #include<string> using namespace std; int main(){ int n,l; cin >> n >> l; vector<string> in(n); for(int i=0;i<n;i++)cin >> in[i]; string ans; vector<int> frg(n); sort(in.begin(),in.end()); for(int i=0;i<n;i++){ if(frg[i]==1)continue; ...
a.cc: In function 'int main()': a.cc:16:5: error: 'sort' was not declared in this scope; did you mean 'short'? 16 | sort(in.begin(),in.end()); | ^~~~ | short a.cc:23:13: error: 'reverse' was not declared in this scope 23 | reverse(tmp.begin(),tmp.end()); | ^~~...
s759909328
p02113
C++
#include<iostream> #include<vector> #include<string> using namespace std; int main(){ int n,l; cin >> n >> l; vector<string> in(n); for(int i=0;i<n;i++)cin >> in[i]; string ans; vector<int> frg(n); sort(in.begin(),in.end()); for(int i=0;i<n;i++){ if(frg[i]==1)continue; ...
a.cc: In function 'int main()': a.cc:16:5: error: 'sort' was not declared in this scope; did you mean 'short'? 16 | sort(in.begin(),in.end()); | ^~~~ | short a.cc:23:13: error: 'reverse' was not declared in this scope 23 | reverse(tmp.begin(),tmp.end()); | ^~~...
s515883100
p02113
C++
#include<vector> #include<string> #include<cstring> #include<iostream> using namespace std; vector<string> pa; vector<string> lp; vector<string> str; #define pb push_back bool kaibun(string s) { int i; int len=s.length(); for(i=0;i<len/2;i++) if(s[i]!=s[len-i-1]) return false; return true; } string...
a.cc: In function 'std::string rev(std::string)': a.cc:24:3: error: 'reverse' was not declared in this scope 24 | reverse(s.begin(),s.end()); | ^~~~~~~ a.cc: In function 'int main()': a.cc:46:3: error: 'sort' was not declared in this scope; did you mean 'short'? 46 | sort(str.begin(),str.end()); ...
s309318681
p02113
C++
#include<vector> #include<string> #include<cstring> #include<iostream> using namespace std; vector<string> pa; vector<string> lp; vector<string> str; #define pb push_back bool kaibun(string s) { int i; int len=s.length(); for(i=0;i<len/2;i++) if(s[i]!=s[len-i-1]) return false; return true; } string...
a.cc: In function 'std::string rev(std::string)': a.cc:24:3: error: 'reverse' was not declared in this scope 24 | reverse(s.begin(),s.end()); | ^~~~~~~ a.cc: In function 'int main()': a.cc:46:3: error: 'sort' was not declared in this scope; did you mean 'short'? 46 | sort(str.begin(),str.end()); ...
s868685167
p02113
C++
#include<vector> #include<string> #include<cstring> #include<iostream> using namespace std; vector<string> pa; vector<string> lp; vector<string> str; #define pb push_back bool kaibun(string s) { int i; int len=s.length(); for(i=0;i<len/2;i++) if(s[i]!=s[len-i-1]) return false; return true; } string...
a.cc: In function 'std::string rev(std::string)': a.cc:24:3: error: 'reverse' was not declared in this scope 24 | reverse(s.begin(),s.end()); | ^~~~~~~ a.cc: In function 'int main()': a.cc:46:3: error: 'sort' was not declared in this scope; did you mean 'short'? 46 | sort(str.begin(),str.end()); ...
s560703539
p02113
C++
include<bits/stdc++.h> using namespace std; typedef pair<string,string> P; string s[1001]; bool b[1001]; vector<P>v; vector<string>a; int n,m; main(){ cin>>n>>m; for(int i=0;i<n;i++)cin>>s[i]; for(int i=0;i<n;i++)if(!b[i]){ reverse(s[i].begin(),s[i].end()); for(int j=i+1;j<n;j++)if(!b[j]&&s[j]==s[i]){ ...
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc:3:9: error: 'pair' does not name a type 3 | typedef pair<string,string> P; | ^~~~ a.cc:4:1: error: 'string' does not name a type 4 | string s[1001]; | ^~~~~~ a.cc:6:1: error: 'vector' does not...
s462707358
p02114
C++
#include <iostream> #include <algorithm> #include <map> #include <string> #include <vector> #include <set> using namespace std; typedef long long ll; //D int N; bool in(int x, int y) { return 0 <= x && x < N && 0 <= y && y < N; } string A[127]; string B[64]; int dp[64][64][64][64]; int dx[4] = { 1, 0, -1, 0 }, dy[4...
a.cc: In function 'int main()': a.cc:72:9: error: 'memset' was not declared in this scope 72 | memset(dp, -1, sizeof dp); | ^~~~~~ a.cc:7:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 6 | #include <set> +++ |+#include <cstring>...
s578018281
p02114
C++
#include <iostream> #include <algorithm> #include <map> #include <string> #include <vector> #include <set> using namespace std; typedef long long ll; //D int N; bool in(int x, int y) { return 0 <= x && x < N && 0 <= y && y < N; } string A[127]; string B[64]; int dp[64][64][64][64]; int dx[4] = { 1, 0, -1, 0 }, dy[4...
a.cc: In function 'int main()': a.cc:72:9: error: 'memset' was not declared in this scope 72 | memset(dp, -1, sizeof dp); | ^~~~~~ a.cc:7:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 6 | #include <set> +++ |+#include <cstring>...
s446640812
p02114
C++
#include <iostream> #include <algorithm> #include <map> #include <string> #include <vector> #include <set> #include <cstdlib> using namespace std; typedef long long ll; //D int N; bool in(int x, int y) { return 0 <= x && x < N && 0 <= y && y < N; } string A[127]; string B[64]; int dp[64][64][64][64]; int dx[4] = { ...
a.cc: In function 'int main()': a.cc:73:9: error: 'memset' was not declared in this scope 73 | memset(dp, -1, sizeof dp); | ^~~~~~ a.cc:8:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 7 | #include <cstdlib> +++ |+#include <cstr...
s651068394
p02114
C++
#include <iostream> #include <algorithm> #include <map> #include <string> #include <vector> #include <set> #include <cstdlib> //#include <bits/stdc++.h> using namespace std; typedef long long ll; struct Sum2D { vector<vector<ll>> b; Sum2D() {}; Sum2D(const vector<vector<ll>>& a) { int H = a.size(), W = a[0].size(...
a.cc: In function 'int main()': a.cc:112:9: error: 'memset' was not declared in this scope 112 | memset(dp, -1, sizeof dp); | ^~~~~~ a.cc:8:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 7 | #include <cstdlib> +++ |+#include <cst...
s986035940
p02114
C++
#include<bits/stdc++.h> using namespace std; ?? #define int long long #define pb push_back #define pf push_front #define mp make_pair #define fr first #define sc second #define Rep(i, n) for ( int i = 0 ; i < (n); i++ ) #define All(v) v.begin(), v.end() ?? typedef pair<int, int> Pii; typedef pair<int, Pii> Pip; const...
a.cc:3:1: error: expected unqualified-id before '?' token 3 | ?? | ^ a.cc:13:47: error: 'Pii' was not declared in this scope 13 | typedef pair<int, int> Pii; typedef pair<int, Pii> Pip; | ^~~ a.cc:13:50: error: template argument 2 is invalid 13 | typed...
s889609110
p02116
C++
#include<bits/stdc++.h> using namespace std; int main(){ long long n; cin>>n; n++; cout<<n&-n<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:11: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<' 7 | cout<<n&-n<<endl; | ~~^~~~~~
s002895597
p02118
C++
#include "bits/stdc++.h" #pragma warning(disable:4996) using namespace std; using ld = long double; vector<pair<long long int, long long int>>ps; long long int g(long long int x, long long int place) { return ps[x].first + ps[x].second*(place); } int main() { long long int N, L, K; cin >> N >> L >> K; vector<long...
a.cc: In function 'int main()': a.cc:84:125: error: expected ',' or ';' before ')' token 84 | + (ps[r].first + (ps[r].first + ps[r].second*(rest - L - 1)))*(rest - L) / 2); | ...
s808409565
p02118
C++
#include "bits/stdc++.h" #pragma warning(disable:4996) using namespace std; using ld = long double; vector<pair<long long int, long long int>>ps; int main() { long long int N, L, K; cin >> N >> L >> K; vector<long long int>sums(N + 1); for (int i = 0; i < N; ++i) { int a, d; cin >> a >> d; ps.emplace_back(a...
a.cc: In function 'int main()': a.cc:23:27: error: 'g' was not declared in this scope 23 | answer = (g(0, L - K) + g(0, L - 1))*K / 2; | ^ a.cc:42:50: error: 'g' was not declared in this scope 42 | (g(l - 1, L - rest) ...
s544582936
p02118
C++
#include "bits/stdc++.h" #pragma warning(disable:4996) using namespace std; using ld = long double; vector<pair<long long int, long long int>>ps; int main() { long long int N, L, K; cin >> N >> L >> K; vector<long long int>sums(N + 1); for (int i = 0; i < N; ++i) { int a, d; cin >> a >> d; ps.emplace_back(a...
a.cc: In function 'int main()': a.cc:23:27: error: 'g' was not declared in this scope 23 | answer = (g(0, L - K) + g(0, L - 1))*K / 2; | ^ a.cc:42:50: error: 'g' was not declared in this scope 42 | (g(l - 1, L - rest) ...
s551073179
p02118
C++
#include "bits/stdc++.h" #pragma warning(disable:4996) using namespace std; using ld = long double; vector<pair<long long int, long long int>>ps; int main() { long long int N, L, K; cin >> N >> L >> K; vector<long long int>sums(N + 1); for (int i = 0; i < N; ++i) { int a, d; cin >> a >> d; ps.emplace_back(a...
a.cc: In function 'int main()': a.cc:23:27: error: 'g' was not declared in this scope 23 | answer = (g(0, L - K) + g(0, L - 1))*K / 2; | ^ a.cc:42:50: error: 'g' was not declared in this scope 42 | (g(l - 1, L - rest) ...
s048626215
p02118
C++
#include "bits/stdc++.h" #pragma warning(disable:4996) using namespace std; using ld = long double; vector<pair<long long int, long long int>>ps; int main() { long long int N, L, K; cin >> N >> L >> K; vector<long long int>sums(N + 1); for (int i = 0; i < N; ++i) { int a, d; cin >> a >> d; ps.emplace_back(a...
a.cc: In function 'int main()': a.cc:23:27: error: 'g' was not declared in this scope 23 | answer = (g(0, L - K) + g(0, L - 1))*K / 2; | ^ a.cc:42:50: error: 'g' was not declared in this scope 42 | (g(l - 1, L - rest) ...
s244386380
p02118
C++
#include "bits/stdc++.h" #pragma warning(disable:4996) using namespace std; using ld = long double; vector<pair<long long int, long long int>>ps; int main() { long long int N, L, K; cin >> N >> L >> K; vector<long long int>sums(N + 1); for (int i = 0; i < N; ++i) { int a, d; cin >> a >> d; ps.emplace_back(a...
a.cc: In function 'int main()': a.cc:23:27: error: 'g' was not declared in this scope 23 | answer = (g(0, L - K) + g(0, L - 1))*K / 2; | ^ a.cc:42:50: error: 'g' was not declared in this scope 42 | (g(l - 1, L - rest) ...
s769158261
p02121
C++
#include<bits/stdc++.h> using namespace std; typedef vector<int> vec; typedef vector<vec> mat; int exf=0; struct closure{ int ai,af,bi,bf; closure(int ai,int af,int bi,int bf): ai(ai), af(af), bi(bi), bf(bf) {} }; void add_edge(int from,int to,mat &G,mat &rG){ G[from].push_back(to); rG[to].push_back(fro...
a.cc: In function 'void rdfs(int, int, const mat&, vec&, vec&)': a.cc:30:14: error: cannot convert 'const std::vector<int>' to 'int' in initialization 30 | for(int to:rG) | ^~
s906179932
p02121
C++
#include<bits/stdc++.h> using namespace std; typedef vector<int> vec; typedef vector<vec> mat; int exf=0; struct closure{ int ai,af,bi,bf; closure(int ai,int af,int bi,int bf): ai(ai), af(af), bi(bi), bf(bf) {} }; void add_edge(int from,int to,mat &G,mat &rG){ G[from].push_back(to); rG[to].push_back(fro...
a.cc: In function 'void rdfs(int, int, const mat&, vec&, vec&)': a.cc:30:14: error: cannot convert 'const std::vector<int>' to 'int' in initialization 30 | for(int to:rG) | ^~
s402212758
p02122
C++
#include <bits/stdc++.h> using namespace std; using i64 = long long; #define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++) #define all(x) x.begin(),x.end() vector<i64> A,B; vector<i64> Ab,Bb; vector<int> lazy; const int Interval = 512; int N; const i64 INF = 1e18; void LAZY(int s){ if(lazy[s] == 1){Ab[s] = Bb[s]...
a.cc: In function 'int main()': a.cc:96:15: error: 'ans' was not declared in this scope; did you mean 'abs'? 96 | cout << ans << endl; | ^~~ | abs a.cc:98:8: error: 'x' was not declared in this scope 98 | if(x == 5){ | ^ a.cc:103:8: error: 'x' was not...
s268871578
p02122
C++
#include <bits/stdc++.h> using namespace std; using i64 = long long; #define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++) #define all(x) x.begin(),x.end() vector<i64> A(202020,1e18),B(202020,1e18); vector<i64> Ab(512,1e18),Bb(512,1e18); vector<int> lazy(512,0); const int Interval = 512; int N; const i64 INF = 1e18...
a.cc: In function 'void LAZY(int)': a.cc:17:6: error: 'lazt' was not declared in this scope; did you mean 'lazy'? 17 | if(lazt[s] == 0) return; | ^~~~ | lazy
s670621050
p02122
C++
#include <bits/stdc++.h> using namespace std; using i64 = long long; #define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++) #define all(x) x.begin(),x.end() vector<i64> A(202020,1e18),B(202020,1e18); vector<i64> Ab(512,1e18),Bb(512,1e18); vector<int> lazy(512,0); const int Interval = 512; int N; const i64 INF = 1e18...
a.cc: In function 'int main()': a.cc:112:14: error: 'before' was not declared in this scope 112 | if(before != y / Interval){ | ^~~~~~ a.cc:125:11: error: 'before' was not declared in this scope 125 | before = y / Interval; | ^~~~~~
s432773128
p02122
C++
#include <bits/stdc++.h> using namespace std; using i64 = long long; #define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++) #define all(x) x.begin(),x.end() vector<i64> A(202020,1e18),B(202020,1e18); vector<i64> Ab(512,1e18),Bb(512,1e18); vector<int> lazy(512,0); const int Interval = 512; int N; const i64 INF = 1e18...
a.cc: In function 'int main()': a.cc:78:39: error: 'Inteval' was not declared in this scope; did you mean 'Interval'? 78 | else ans = min(ans , Bb[y / Inteval]); | ^~~~~~~ | Interval a.cc:110:39: error: 'Inteval' was no...
s111453660
p02122
C++
#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <complex> #include <string> #include <sstream> #include <algorithm> #include <numeric> #include <vector> #include <queue> #include <stack> #include <functional> #include <iostream> #include <map> #include <set> #include <cassert> using na...
a.cc:44:22: error: field 'a' has incomplete type 'RBST::Node' 44 | Node(a){} | ^ a.cc:39:16: note: definition of 'struct RBST::Node' is not complete until the closing brace 39 | struct Node{ | ^~~~ a.cc:44:25: error: expected ';' at end of me...
s790563851
p02123
C++
#include<bits/stdc++.h> using namespace std; typedef pair<int,int> P; #define fi first #define se second #define MAX 2055 char s[MAX][MAX]; int n; int dx1[]={0,0,1,-1}; int dy1[]={1,-1,0,0}; int dx2[]={1,-1}; int dy2[]={1,1}; int color[MAX][MAX]; int table[MAX][MAX]; int cnt[MAX][MAX]; bool used[2][MAX][MAX]; ...
a.cc: In function 'void Input()': a.cc:37:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 37 | gets(s[0]); | ^~~~ | getw a.cc: At global scope: a.cc:222:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 222 | main(){ | ^~~...
s598256737
p02124
C++
#include <bits/stdc++.h> using namespace std; #define fs first #define sc second #define pb emplace_back #define mp make_pair #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() const int32_t inf = 1001001001; const int64_t infll = 1001001001001001001ll; const int dx[] = {0, -1, 1, 0, -1, 1, -1, 1}...
a.cc: In function 'int main(int, char**)': a.cc:38:43: error: no match for 'operator<<' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '<unresolved overloaded function type>') 38 | cout << "ai1333" < string(x / 100, '3') << endl; | ~~~~~~~~~~~~~~~~~~~~~^~~~...
s700519994
p02124
C++
x = int(input()) ans = x // 100 AI = "ai1333" for i in range(0,ans): AI = AI + "3" print(AI)
a.cc:1:1: error: 'x' does not name a type 1 | x = int(input()) | ^
s072542339
p02124
C++
##### Start Min0.txt -1 -1 2 1 -1 -1 3 2 ##### return=0 time=6ms ##### Start Min1.txt 3 2 3 1 3 2 4 2 3 2 5 3 ##### return=0 time=7ms
a.cc:1:1: error: stray '##' in program 1 | ##### Start Min0.txt | ^~ a.cc:1:3: error: stray '##' in program 1 | ##### Start Min0.txt | ^~ a.cc:1:5: error: stray '#' in program 1 | ##### Start Min0.txt | ^ a.cc:4:1: error: stray '##' in program 4 | ##### return=0 time=6ms | ...
s872871994
p02124
C++
##### Start Min0.txt 1 1 1 1 -1 -1 3 2 ##### return=0 time=6ms ##### Start Min1.txt 3 2 1 1 1 -4 4 2 4 -1 4 4 ##### return=0 time=4ms
a.cc:1:1: error: stray '##' in program 1 | ##### Start Min0.txt | ^~ a.cc:1:3: error: stray '##' in program 1 | ##### Start Min0.txt | ^~ a.cc:1:5: error: stray '#' in program 1 | ##### Start Min0.txt | ^ a.cc:4:1: error: stray '##' in program 4 | ##### return=0 time=6ms | ...
s868561547
p02124
C++
##### Start Min0.txt 1 1 0 1 -1 -1 0 2 ##### return=0 time=8ms ##### Start Min1.txt 3 2 0 1 1 -4 1 0 4 -1 2 1 ##### return=0 time=5ms
a.cc:1:1: error: stray '##' in program 1 | ##### Start Min0.txt | ^~ a.cc:1:3: error: stray '##' in program 1 | ##### Start Min0.txt | ^~ a.cc:1:5: error: stray '#' in program 1 | ##### Start Min0.txt | ^ a.cc:4:1: error: stray '##' in program 4 | ##### return=0 time=8ms | ...
s785940569
p02124
C++
#include <bits/stdc++.h> using namespace std; using ll=int64_t; //#define int ll #define FOR(i,a,b) for(int i=int(a);i<int(b);i++) #define REP(i,b) FOR(i,0,b) #define MP make_pair #define PB push_back #define ALL(x) x.begin(),x.end() #ifdef MAROON_LOCAL #define cerr (cerr<<"-- line "<<__LINE__<<" -- ") #else class Ce...
a.cc: In function 'std::vector<Line> GetLines(int, std::vector<Pos>, int*, bool)': a.cc:235:17: error: expected primary-expression before '}' token 235 | } | ^ a.cc: In function 'int main()': a.cc:287:1: error: expected unqualified-id before '}' token 287 | } | ^ a.cc: In...
s948927423
p02127
C++
難しすぎるだろ えーん
a.cc:1:1: error: extended character   is not valid in an identifier 1 | 難しすぎるだろ えーん | ^ a.cc:1:1: error: '\U000096e3\U00003057\U00003059\U0000304e\U0000308b\U00003060\U0000308d\U00003000\U00003048\U000030fc\U00003093' does not name a type 1 | 難しすぎるだろ えーん | ^~~~~~~~~~~~~~~~~~~~~~
s948039951
p02127
C++
うくあそぼうぜ
a.cc:1:1: error: '\U00003046\U0000304f\U00003042\U0000305d\U0000307c\U00003046\U0000305c' does not name a type 1 | うくあそぼうぜ | ^~~~~~~~~~~~~~
s869415379
p02127
C++
NP困難を10^5で出すのをやめろ
a.cc:1:1: error: 'NP\U000056f0\U000096e3\U0000309210' does not name a type 1 | NP困難を10^5で出すのをやめろ | ^~~~~~~~~~
s464130531
p02127
C++
#include <iostream> #include <iomanip> #include <string> #include <vector> #include <algorithm> #include <numeric> #include <utility> #include <sys/time.h> #include <cmath> #include <tuple> #include <queue> #include <bitset> using namespace std; stirng s; stirng ns; void solve(string S, string T) { s = T; in...
a.cc:16:1: error: 'stirng' does not name a type 16 | stirng s; | ^~~~~~ a.cc:17:1: error: 'stirng' does not name a type 17 | stirng ns; | ^~~~~~ a.cc: In function 'void solve(std::string, std::string)': a.cc:20:5: error: 's' was not declared in this scope 20 | s = T; | ^ a.cc:39:9: er...
s255262387
p02128
C++
うそじゃん やめてえ
a.cc:1:1: error: extended character   is not valid in an identifier 1 | うそじゃん やめてえ | ^ a.cc:1:1: error: '\U00003046\U0000305d\U00003058\U00003083\U00003093\U00003000\U00003084\U00003081\U00003066\U00003048' does not name a type 1 | うそじゃん やめてえ | ^~~~~~~~~~~~~~~~~~~~
s869224856
p02128
C++
#include <bits/stdc++.h> using namespace std; #define INF_LL (int64)1e18 #define INF (int32)1e9 #define REP(i, n) for(int64 i = 0;i < (n);i++) #define FOR(i, a, b) for(int64 i = (a);i < (b);i++) #define all(x) x.begin(),x.end() #define fs first #define sc second using int32 = int_fast32_t; using uint32 = uint_fast32_...
a.cc: In function 'int main()': a.cc:74:39: error: no matching function for call to 'max(int, long int)' 74 | int32 rr = max(0, dis(i, v)-r); | ~~~^~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, from /usr/inclu...
s934662234
p02128
C++
#include <bits/stdc++.h> using namespace std; #define INF_LL (int64)1e18 #define INF (int32)1e9 #define REP(i, n) for(int64 i = 0;i < (n);i++) #define FOR(i, a, b) for(int64 i = (a);i < (b);i++) #define all(x) x.begin(),x.end() #define fs first #define sc second using int32 = int_fast32_t; using uint32 = uint_fast32_...
a.cc: In function 'int main()': a.cc:74:39: error: no matching function for call to 'max(long long int, long int)' 74 | int32 rr = max(0LL, dis(i, v)-r); | ~~~^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, f...
s159573820
p02128
C++
#include <bits/stdc++.h> using namespace std; #define INF_LL (int64)1e18 #define INF (int32)1e9 #define REP(i, n) for(int64 i = 0;i < (n);i++) #define FOR(i, a, b) for(int64 i = (a);i < (b);i++) #define all(x) x.begin(),x.end() #define fs first #define sc second using int32 = int_fast32_t; using uint32 = uint_fast32_...
a.cc: In function 'int main()': a.cc:85:58: error: no matching function for call to 'max(long long int, long int)' 85 | res = min((int64)res, d[i][j]+max(0LL, dis(i, vs.size()-1)-j)); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file include...
s955893802
p02128
C++
おいびーとデバッグ
a.cc:1:1: error: '\U0000304a\U00003044\U00003073\U000030fc\U00003068\U000030c7\U000030d0\U000030c3\U000030b0' does not name a type 1 | おいびーとデバッグ | ^~~~~~~~~~~~~~~~~~
s517547828
p02128
C++
#include<bits/stdc++.h> using namespace std; using int64 = long long; const int64 INF = 1LL << 60; #define int long long int W, H, N, X[100], Y[100]; int64 v[100][1005]; signed main() { cin >> W >> H >> N; for(int i = 0; i < N; i++) { cin >> X[i] >> Y[i]; } fill_n(*v, 100 * 1005, INF); using Tuplis =...
a.cc: In function 'int main()': a.cc:47:12: error: 'j' was not declared in this scope 47 | if(v[j][l] + 1 < v[j][l + 1]) { | ^
s685214848
p02128
C++
#include<bits/stdc++.h> using namespace std; using int64 = long long; const int64 INF = 1LL << 60; #define int long long int W, H, N, X[100], Y[100]; int64 v[100][1005]; signed main() { cin >> W >> H >> N; for(int i = 0; i < N; i++) { cin >> X[i] >> Y[i]; } fill_n(*v, 100 * 1005, INF); using Tuplis =...
a.cc: In function 'int main()': a.cc:47:12: error: 'j' was not declared in this scope 47 | if(v[j][l] + 1 < v[j][l + 1]) { | ^
s988889301
p02129
C++
#include <bits/stdc++.h> #define ll long long #define INF 1000000005 #define MOD 1000000007 #define EPS 1e-10 #define rep(i,n) for(int i=0;i<(int)(n);++i) #define rrep(i,n) for(int i=(int)(n)-1;i>=0;--i) #define srep(i,s,t) for(int i=(int)(s);i<(int)(t);++i) #define each(a,b) for(auto& (a): (b)) #define all(v) (v).begi...
a.cc: In function 'bool dfs(vi, int*, int, bool)': a.cc:62:45: error: expected ')' before '{' token 62 | if(dfs(nw,cnt,pos+1,(flag|(i >= 1))){ | ~ ^ | ) a.cc:65:5: error: expected primary-expression before '}' t...
s447215028
p02131
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cstdlib> #define int long long #define rep(i, n) for(i = 0; i < n; i++) using namespace std; int n, h; string s; int cnts[100001]; //cnts[i] = i桁(no leading 0)の数がいくつあるか. "0"や"00"は0桁としてカウント. int begin_cnts[100001]; vector<int> cons...
a.cc: In function 'std::vector<long long int> construct_sa(std::string&)': a.cc:18:5: error: 'iota' was not declared in this scope 18 | iota(begin(SA), end(SA), 0); | ^~~~
s169233648
p02131
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cstdlib> #define int long long #define rep(i, n) for(i = 0; i < n; i++) using namespace std; int n, h; string s; int cnts[100001]; //cnts[i] = i桁(no leading 0)の数がいくつあるか. "0"や"00"は0桁としてカウント. int begin_cnts[100001]; vector<int> cons...
a.cc: In function 'std::vector<long long int> construct_sa(std::string&)': a.cc:18:5: error: 'iota' was not declared in this scope 18 | iota(begin(SA), end(SA), 0); | ^~~~
s992420369
p02131
C++
#include <bits/stdc++.h> #define REP(i, a, n) for(ll i ((ll) a); i < ((ll) n); i++) using namespace std; typedef long long ll; vector<ll> suffix_array(const string &S) { ll n = S.length(), k = 1; vector<ll> sa(n + 1), rnk(n + 1), tmp(n + 1); function<const bool& (const ll &, const ll &)> compare_sa = [&](const ...
a.cc: In function 'std::vector<long long int> suffix_array(const std::string&)': a.cc:10:63: error: conversion from 'suffix_array(const std::string&)::<lambda(const ll&, const ll&)>' to non-scalar type 'std::function<const bool&(const long long int&, const long long int&)>' requested 10 | function<const bool& (con...
s825285734
p02132
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) #define ALL(x) x.begin(),x.end() #define EPS (1e-8) #define equals(a,b) (fabs((a)-(b))<EPS) #define COUNTER_CLOCKWISE 1 #define CLOCKWISE -1 #define ONLINE_BACK 2 #define ONLINE_FRONT -2 #define ON_SEGMENT 0 using namespace s...
a.cc: In function 'int calc(int, double)': a.cc:209:25: error: expected '}' at end of input 209 | int bits = vec[i]; | ^ a.cc:208:19: note: to match this '{' 208 | rep(j,(1<<n)) { | ^ a.cc:209:25: error: expected '}' at end of input 209 | int b...
s124882686
p02132
C++
// #define NDEBUG #define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <array> #include <cassert> #include <climits> #include <cmath> #include <cstdint> #include <cstdio> #include <cstdlib> #include <ctime> #include <functional> #include <map> #include <memory> #include <numeric> #include <queue> #include <set...
a.cc: In function 'std::istream& operator>>(std::istream&, pvec&)': a.cc:153:34: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'double') 153 | double x_, y_;is >> x_ >> y_;o = pvec(x_, y_);return (is); | ~~ ^...
s308499282
p02132
C++
// #define NDEBUG #define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <array> #include <cassert> #include <climits> #include <cmath> #include <cstdint> #include <cstdio> #include <cstdlib> #include <ctime> #include <functional> #include <map> #include <memory> #include <numeric> #include <queue> #include <set...
a.cc: In function 'std::istream& operator>>(std::istream&, pvec&)': a.cc:153:34: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'double') 153 | double x_, y_;is >> x_ >> y_;o = pvec(x_, y_);return (is); | ~~ ^...
s308290189
p02132
C++
// #define NDEBUG #define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <array> #include <cassert> #include <climits> #include <cmath> #include <cstdint> #include <cstdio> #include <cstdlib> #include <ctime> #include <functional> #include <map> #include <memory> #include <numeric> #include <queue> #include <set...
a.cc: In function 'std::istream& operator>>(std::istream&, pvec&)': a.cc:153:34: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'double') 153 | double x_, y_;is >> x_ >> y_;o = pvec(x_, y_);return (is); | ~~ ^...