submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s054879380
p01558
C++
#include<bits/stdc++.h> using namespace std; #define ull unsigned long long vector<ull>hash,power; void Roliha(string &s){ ull B=1000000007; int sz=s.size(); hash.assign(sz+1,0); power.assign(sz+1,0); power[0]=1; for(int i=1;i<=sz;i++)power[i]=power[i-1]*B; for(int i=1;i<=sz;i++)hash[i]=(hash[i-1]+s[i-1])...
a.cc: In function 'void Roliha(std::string&)': a.cc:8:3: error: reference to 'hash' is ambiguous 8 | hash.assign(sz+1,0); | ^~~~ In file included from /usr/include/c++/14/string_view:50, from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, ...
s121918395
p01558
C++
#include <bits/stdc++.h> using namespace std; int main(){ __int128 A(1); for(int i=0;i<126;i++)A=A*2; cout<<A<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:7: error: ambiguous overload for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '__int128') 8 | cout<<A<<endl; | ~~~~^~~ | | | | | __int128 | std::ostream {aka std::basic_ostream<char>} In file incl...
s316384366
p01558
C++
#include <iostream> #include <string> #include <vector> #include <set> #include <cstdio> using namespace std; const long long B=1000000000000000003LL; const long long P=1000000000000000031LL; long long pow_binary_mod(long long x,long long y,long long mod){ long long z=1; for(;y;y>>=1){ if((y&1)!=0)z=(__int128_t)z...
a.cc: In function 'int main()': a.cc:27:41: error: 'i' was not declared in this scope 27 | long long Brev=pow_binary_mod(B[i],P-2,P); | ^
s542092776
p01558
C++
#include <iostream> #include <string> #include <vector> #include <set> #include <cstdio> using namespace std; const long long B=1000000000000000003LL; const long long P=1000000000000000031LL; long long pow_binary_mod(long long x,long long y,long long mod){ long long z=1; for(;y;y>>=1){ if((y&1)!=0)z=(__int128_t)z...
a.cc: In function 'int main()': a.cc:39:31: error: 'i' was not declared in this scope 39 | c=((c[i]-s[l]*(__int128_t)pow_binary_mod(B,r-l,P))%P+P)%P; | ^ a.cc:42:31: error: 'i' was not declared in this scope 42 | c=((c[i]-s[r])%P+...
s737125327
p01560
Java
import java.math.MathContext; import java.math.RoundingMode; import java.util.Arrays; import java.util.Scanner; public class Enumeration { public static void main(String[] args) { new Enumeration().run(); } void run() { solver(); } void solver() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(...
Main.java:6: error: class Enumeration is public, should be declared in a file named Enumeration.java public class Enumeration { ^ 1 error
s858668982
p01560
C++
#include<bits/stdc++.h> using namespace std; using ll=long long; using ld=long double; using P=pair<ll,ll>; #define MOD 1000000007ll #define INF 1000000000ll #define EPS 1e-10 #define FOR(i,n,m) for(ll i=n;i<(ll)m;i++) #define REP(i,n) FOR(i,0,n) #define DUMP(a) REP(d,a.size()){cout<<a[d];if(d!=a.size()-1)cout<<" ";els...
a.cc: In function 'ld solve()': a.cc:52:27: error: no matching function for call to 'lcm(ll&)' 52 | ll g = lcm(bit); | ~~~^~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58, from a.cc:1: /usr/include/c++/14/numeric:188:5: no...
s134239050
p01560
C++
#include<bits/stdc++.h> using namespace std; using ll=long long; using ld=long double; using P=pair<ll,ll>; #define MOD 1000000007ll #define INF 1000000000ll #define EPS 1e-10 #define FOR(i,n,m) for(ll i=n;i<(ll)m;i++) #define REP(i,n) FOR(i,0,n) #define DUMP(a) REP(d,a.size()){cout<<a[d];if(d!=a.size()-1)cout<<" ";els...
a.cc: In function 'ld solve()': a.cc:53:27: error: no matching function for call to 'lcm(ll&)' 53 | ll g = lcm(bit); | ~~~^~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58, from a.cc:1: /usr/include/c++/14/numeric:188:5: no...
s652756140
p01560
C++
import java.math.BigDecimal; import java.math.MathContext; import java.math.RoundingMode; import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().run(); } void run() { solver(); } void solver() { Scanner sc = new Scanner(System.in); int ...
a.cc:1:1: error: 'import' does not name a type 1 | import java.math.BigDecimal; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.math.MathContext; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fm...
s197906501
p01560
C++
#include <vector> #include <iostream> #include <utility> #include <algorithm> #include <string> #include <deque> #include <queue> #include <tuple> #include <queue> #include <stack> #include <functional> #include <cmath> #include <iomanip> #include <map> #include <set> #include <numeric> #include <unordered_map> #includ...
a.cc: In function 'int popcnt(long long unsigned int)': a.cc:121:16: error: '__builtin_popcntll' was not declared in this scope; did you mean '__builtin_popcountll'? 121 | return __builtin_popcntll(a); | ^~~~~~~~~~~~~~~~~~ | __builtin_popcountll
s713158986
p01560
C++
#include <iostream> #include <vector> #include <cstdio> using namespace std; /* long long int gcd(long long int x, long long int y){ if(x < y) swap(x,y); while(y){ x %= y; swap(x,y); } return x; } */ int main(){ long long int n, m; cin >> n >> m; vector<long long int> A(n); vector<int> P(n); f...
a.cc: In function 'int main()': a.cc:32:32: error: '__gcd' was not declared in this scope 32 | long long int t = LCM[j]/__gcd(LCM[j],A[i])*A[i]; | ^~~~~
s529269613
p01560
C++
#include <iostream> using namespace std; long double dp[2 << 20][2], prev_[2 << 20][2]; long long n, m, a[22]; long double p[22]; long long gcd(long long a1, long long b1) { if (b1 == 0) return a1; return gcd(b1, a1%b1); } int main() { cin >> n >> m; for (int i = 0; i < n; i++) cin >> a[i]; for (int i = 0; i < ...
a.cc: In function 'int main()': a.cc:42:29: error: 'log2' was not declared in this scope 42 | if (log2(1.0L*F) + log2(1.0L*a[j]) - log2(1.0L*G) >= 60) { F = (1LL << 60); break; } | ^~~~
s220468577
p01560
C++
#include <iostream> #include <sstream> #include <string> #include <algorithm> #include <vector> #include <stack> #include <queue> #include <set> #include <map> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <cassert> using namespace std; #define FOR(i,k,n) for(int i=(k); i<(int)(n);...
a.cc: In function 'int main()': a.cc:50:12: error: 'LLONG_MAX' was not declared in this scope 50 | if(LLONG_MAX / lcm < a[i]){ | ^~~~~~~~~ a.cc:15:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 14 | #include <cassert> +++ |...
s189908970
p01561
C++
v
a.cc:1:1: error: 'v' does not name a type 1 | v | ^
s132691661
p01561
C++
#include <bits/stdc++.h> #define _overload(_1,_2,_3,name,...) name #define _rep(i,n) _range(i,0,n) #define _range(i,a,b) for(int i=(int)(a);i<(int)(b);++i) #define rep(...) _overload(__VA_ARGS__,_range,_rep,)(__VA_ARGS__) #define _rrep(i,n) _rrange(i,n,0) #define _rrange(i,a,b) for(int i=(int)(a)-1;i>=(int)(b);--i)...
a.cc: In function 'int main()': a.cc:129:21: error: no matching function for call to 'chmin(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, short int&)' 129 | if(chmin(min_cost[cy][cx][nb][nfi], nc)){ | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:27:23: note: candidate...
s828774866
p01562
C++
#include <bits/stdc++.h>   using namespace std;   using int64 = long long; const int mod = 1e9 + 7;   const int64 infll = (1LL << 62) - 1; const int inf = (1 << 30) - 1;   struct IoSetup {   IoSetup() {     cin.tie(nullptr);     ios::sync_with_stdio(false);     cout << fixed << setprecision(10);     cerr << fixed << se...
a.cc:2:1: error: extended character   is not valid in an identifier 2 |   | ^ a.cc:4:1: error: extended character   is not valid in an identifier 4 |   | ^ a.cc:7:1: error: extended character   is not valid in an identifier 7 |   | ^ a.cc:10:1: error: extended character   is not valid in a...
s096973670
p01562
C++
#include <algorithm> #include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <string> #include <vector> #include <cmath> #define eps 1.0e-9 #define sgn(f) ((f)<(-eps)?-1:((f)>eps)) using namespace std; const double pi=acos(-1.0); struct point { double x,y; point(double _x=0,double _...
a.cc:65:5: error: extended character 、 is not valid in an identifier 65 | 、、freopen("in.txt","r",stdin); | ^ a.cc:65:5: error: extended character 、 is not valid in an identifier a.cc: In function 'int main()': a.cc:65:5: error: '\U00003001\U00003001freopen' was not declared in this scope 65 | 、、...
s882197509
p01562
C++
#include <algorithm> #include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <string> #include <vector> #include <cmath> #define eps 1.0e-9 #define sgn(f) ((f)<(-eps)?-1:((f)>eps)) using namespace std; const double pi=acos(-1.0); int sgn(long double x) { if(fabs(x)<eps) return 0; el...
a.cc:13:9: error: expected unqualified-id before 'long' 13 | int sgn(long double x) | ^~~~ a.cc:10:18: note: in definition of macro 'sgn' 10 | #define sgn(f) ((f)<(-eps)?-1:((f)>eps)) | ^ a.cc:13:9: error: expected ')' before 'long' 13 | int sgn(long double x) | ...
s779864968
p01562
C++
#include<bits/stdc++.h> using namespace std; const double EPS = 1e-8, PI = acos(-1), INF = 1e9; inline bool eq(double a, double b) { return abs(b - a) < EPS; } struct Point { double x, y; Point() {}; Point(double x, double y) : x(x), y(y) {}; Point operator+(const Point &b) const { return Point(x + b.x...
a.cc: In function 'double GetAngle(const Point&, const Point&)': a.cc:115:65: error: expected ')' before ';' token 115 | double tmp = min(1.0, max(-1.0, dot(a, b) / a.abs() / b.abs()); | ~ ^ | ...
s598688431
p01562
C++
#include <cstdio> #include <cmath> #include <algorithm> #include <set> using namespace std; const int N = 110; const double eps = 1e-8; struct Point { double x, y; Point() {} Point(double x, double y): x(x), y(y) {} void read() { scanf("%lf %lf", &x, &y); } void print() const { printf("%.10f %.10f\n", x, ...
a.cc:94:1: error: 'vector' does not name a type 94 | vector<Point> pts; | ^~~~~~ a.cc: In function 'int main()': a.cc:109:17: error: 'pts' was not declared in this scope; did you mean 'puts'? 109 | pts.push_back(p[i]); | ^~~ | puts a.cc:114:33: erro...
s162262062
p01562
C++
#include<map> #include<algorithm> #include<cstring> #include<iostream> #include<cstdio> #include<cstdlib> using namespace std; const int maxn = 110; const double eps = 1e-7; int N,ncnt = 1,cnt,tot; bool exist[maxn][maxn]; inline int gi() { char ch; int ret = 0,f = 1; do ch = getchar(); while (!(ch >= '0'&&ch <= '9'...
a.cc: In member function 'double Point::angle() const': a.cc:35:39: error: 'atan2' was not declared in this scope 35 | double angle() const { return atan2(y,x); } | ^~~~~ a.cc: At global scope: a.cc:64:1: error: 'vector' does not name a type 64 | vector <int> G[...
s372538514
p01563
C
#include<cstdio> #include<cstring> #include<cstdlib> #include<algorithm> using namespace std; int dp[2][18][65600]; bool bit[65600][18]; char s[130][18]; int m, n, maxbt, len[130]; int top[65600][18], btm[65600][18]; void intit() { int i, j, p; for( i = 0; i <= maxbt; i ++ ){ int tmp = i; for(...
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s188309206
p01563
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) #define pb push_back #define all(v) (v).begin(),(v).end() #define fi first #define se second typedef vector<int>vint; typedef pair<int,int>pint; typedef vector<pint>vpint; template<typename A,typename B>inline void chmin(A &a,B b){if...
a.cc:16:7: error: 'BEET' does not name a type 16 | const BEET=-1001001001; | ^~~~ a.cc: In function 'int main()': a.cc:31:26: error: 'BEET' was not declared in this scope 31 | fill_n(*dp,2*(1<<16),BEET); | ^~~~
s294706964
p01564
C
#include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> using namespace std; int n,q; const int MAXN = 2e5+10; int siz[MAXN], head[MAXN], fa[MAXN], dep[MAXN], son[MAXN], id[MAXN]; //Nodes int top[MAXN]; int to[MAXN], nxt[MAXN]; //Edge void dfs(int u) { siz[u] = 1; son[u] ...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s686728900
p01564
C++
#include<bits/stdc++.h> using namespace std; using Int = long long; //BEGIN CUT HERE template<typename T,typename E> struct LinkCutTree{ struct Node{ Node *l,*r,*p; size_t sz;// tree size (only for root) int idx; bool rev; T val,dat; E laz; Node():sz(1){} Node(int idx,T val,E laz): ...
a.cc:848:8: error: redefinition of 'int main()' 848 | signed main(){ | ^~~~ a.cc:402:8: note: 'int main()' previously defined here 402 | signed main(){ | ^~~~ a.cc: In function 'int main()': a.cc:853:3: error: 'AOJ_2450' was not declared in this scope 853 | AOJ_2450(); | ^~~~~~...
s243508603
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 50); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(long int, long int, long int, long int)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~
s583304582
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 50); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(long int, long int, long int, long int)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~
s658380080
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 50); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(long int, long int, long int, long int)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~
s837360744
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 50); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(long int, long int, long int, long int)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~
s551581973
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 20); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(long int, long int, long int, long int)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~
s194890948
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 20); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(long int, long int, long int, long int)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~
s188797946
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 20); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(long int, long int, long int, long int)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~
s596858621
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 20); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(long int, long int, long int, long int)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~
s362317813
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; const long inf = ((long)1 << 14); class node { public: long d; long s; long b; long a; long m; long n; node() = default; node(long dw, long k) { d = dw; s = max((long)0, d...
a.cc: In constructor 'point::point(long int, long int, long int, long int)': a.cc:61:22: error: 'log2' was not declared in this scope 61 | dw = log2(nw) + 1; | ^~~~
s461982911
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 14); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(ll, ll, ll, ll)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~
s233175620
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 14); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(ll, ll, ll, ll)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~ a.cc: In member function 'void point::set(ll, ll, ll)': a.cc:120:47: error: 'nd' was not declared in this scope; did you mean 'n'? ...
s137810218
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 14); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(ll, ll, ll, ll)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~ a.cc: In member function 'void point::set(ll, ll, ll)': a.cc:120:47: error: 'nd' was not declared in this scope; did you mean 'n'? ...
s020927493
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 14); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; s = max((ll)0, ...
a.cc: In constructor 'point::point(ll, ll, ll, ll)': a.cc:63:22: error: 'log2' was not declared in this scope 63 | dw = log2(nw) + 1; | ^~~~ a.cc: In function 'll dfs1(ll, ll, int)': a.cc:166:50: error: 'nownd' was not declared in this scope; did you mean 'now'? 166 | ...
s415197117
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> #include <stack> using namespace std; typedef long long ll; const ll inf = ((ll)1 << 14); class node { public: ll d; ll s; ll b; ll a; ll m; ll n; node() = default; node(ll dw, ll k) { d = dw; ...
a.cc: In constructor 'point::point(ll, ll, ll, ll)': a.cc:64:22: error: 'log2' was not declared in this scope 64 | dw = log2(nw) + 1; | ^~~~ a.cc: In function 'void heavy()': a.cc:242:49: error: no matching function for call to 'std::stack<pw>::push(ll)' 242 | ...
s746183958
p01564
C++
#define _USE_MATH_DEFINES #define _CRT_SECURE_NO_DEPRECATE #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <limits> #include <cfloat> #include <ctime> #include <cassert> #include <map> #include <utility> #include <set> #include <iostream> #include <memory> #include <string> #include ...
a.cc: In function 'int main()': a.cc:368:20: error: no matching function for call to 'reader(int&, int&)' 368 | int n,m; reader(n,m); | ~~~~~~^~~~~ a.cc:354:34: note: candidate: 'template<class T, class S> void reader(T*, S*)' 354 | template <class T, class S> void reader(T *x, S *y) { reader...
s412480082
p01564
C++
vector<Pii> e[MAX_SIZE]; class LCA { public: int V, logV; vector<int> depth; vector<ll> len; vector<vector<int> > parent; LCA() {} void init(int V) { this->V = V; logV = 0; while (V >= (1 << logV)) logV++; this->depth = vector<int>(V); this->len = vector<ll>(V); this->parent = vector<vector<int> >(l...
a.cc:1:1: error: 'vector' does not name a type 1 | vector<Pii> e[MAX_SIZE]; | ^~~~~~ a.cc:5:9: error: 'vector' does not name a type 5 | vector<int> depth; | ^~~~~~ a.cc:6:9: error: 'vector' does not name a type 6 | vector<ll> len; | ^~~~~~ a.cc:7:9: error: '...
s421521992
p01564
C++
#include <iostream> #include <cstdio> #include <cassert> #include <cstring> #include <vector> #include <valarray> #include <array> #include <queue> #include <set> #include <unordered_set> #include <map> #include <unordered_map> #include <algorithm> #include <cmath> #include <complex> #include <random> using namespace ...
/usr/bin/ld: /tmp/ccIEHFr9.o: relocation R_X86_64_32S against undefined symbol `eorg' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status
s598448723
p01564
C++
#include <bits/stdc++.h> #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) using namespace std; typedef long long ll; typedef tuple<int,int> tii; typedef tuple<ll,ll,ll,ll> state; const ll INF=1LL<<60; inline state vmerge(state l,state r){ ll ans,all,left,right; ll lans,lall,lleft,lright; tie(lans,lall,lleft,lright)...
a.cc: In function 'void run()': a.cc:210:16: error: return-statement with a value, in function returning 'void' [-fpermissive] 210 | return 0; | ^
s501422649
p01564
C++
#include <bits/stdc++.h> #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) using namespace std; typedef long long ll; typedef tuple<ll,ll,ll,ll> state; const ll INF=1LL<<60; inline state vmerge(state l,state r){ state ret; get<0>(ret)=max({get<0>(l),get<0>(r),get<3>(l)+get<2>(r)}); get<1>(ret)=get<1>(l)+get<1>(r); g...
a.cc: In function 'std::tuple<int, int> lca(int&, int&)': a.cc:94:16: error: expected primary-expression before 'return' 94 | return return make_tuple(u,parent[u][0]); | ^~~~~~ a.cc:94:15: error: expected ';' before 'return' 94 | return return make_tuple(u,parent[u][0]); ...
s041405243
p01564
C++
#include <iostream> #include <cstdio> #include <cassert> #include <cstring> #include <vector> #include <valarray> #include <array> #include <queue> #include <set> #include <unordered_set> #include <map> #include <unordered_map> #include <algorithm> #include <cmath> #include <complex> #include <random> using namespace ...
a.cc: In constructor 'Tree::Tree(int, int*, int*, int*)': a.cc:40:9: error: 'md' was not declared in this scope 40 | md = sz/2; | ^~
s857269297
p01564
C++
#include<bits/stdc++.h> using namespace std; typedef long long int64; const int64 INF = 1LL << 55; struct CentroidPathDecomposition { struct Centroid { int ParIndex, ParDepth, Deep; vector< int > node; inline int size() { return (node.size()); } inline int &operator[](int k) ...
a.cc: In member function 'void CentroidPathDecomposition::BuildPath()': a.cc:66:7: error: 'class std::stack<std::pair<int, int> >' has no member named 'empalce'; did you mean 'emplace'? 66 | s.empalce(graph.size() - 1, -1); | ^~~~~~~ | emplace
s730404939
p01564
C++
#include <cstdio> #include <iostream> #include <algorithm> #include <string> #include <cstring> #include <vector> #include <queue> #include <set> #include <map> #include <cmath> #include <iomanip> #include <cassert> #include <bitset> using namespace std; typedef pair<int, int> P; #define rep(i, n) for (int i=0; i<(n);...
a.cc:74:31: error: 'function' has not been declared 74 | void for_each(int u, int v, function<void(int, int, int)> f) { | ^~~~~~~~ a.cc:74:39: error: expected ',' or '...' before '<' token 74 | void for_each(int u, int v, function<void(int, int, int)> f) { | ...
s340727603
p01564
C++
#include <iostream> #include <algorithm> #include <array> #include <cstdint> #include <climits> #include <functional> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <string> #include <time.h> #include <type_traits> #include <utility> #include <vector> usi...
a.cc: In member function 'void link_cut_tree<Monoid, Operand>::cut(uint32)': a.cc:178:21: error: 'left' was not declared in this scope; did you mean 'std::left'? 178 | if (left) { | ^~~~ | std::left In file included from /usr/include/c++/14/ios:44, ...
s515528552
p01564
C++
#include <iostream> #include <algorithm> #include <array> #include <cstdint> #include <climits> #include <functional> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <string> #include <time.h> #include <type_traits> #include <utility> #include <vector> usi...
a.cc: In member function 'void link_cut_tree<Monoid, Operand>::cut(uint32)': a.cc:181:35: error: 'nil' was not declared in this scope 181 | n->left = nil; | ^~~
s275494880
p01564
C++
#include <bits/stdc++.h> using namespace std; using graph = vector<vector<int>>; struct RMS { using ll = long long; static const ll INF = 1e17; struct type { ll left, right, all, sum; type() : left(-INF), right(-INF), all(-INF), sum(0) {} type(ll val) : left(val), right(val), all(val), sum(val) {} type(ll l...
a.cc:23:19: error: 'll' does not name a type 23 | using U = ll; | ^~ a.cc:30:9: error: 'U' does not name a type 30 | U lazy; | ^ a.cc:41:26: error: 'U' has not been declared 41 | void update_lazy(U v) { // * fix | ^ a....
s975212352
p01564
C++
#define _CRT_SECURE_NO_WARNINGS #define NDEBUG #include <cassert> #include <utility> #include <vector> #include<functional> template <typename ValueMonoid, typename OperatorMonoid, class Modify> class LinkCutTree { public: using value_type = ValueMonoid; using operator_type = OperatorMonoid; private: struct node_t...
a.cc:227:23: error: ISO C++ forbids declaration of 'scan' with no type [-fpermissive] 227 | template <typename T> scan(T &d) { d = 0; } | ^~~~ a.cc: In function 'int scan(T&)': a.cc:227:43: warning: no return statement in function returning non-void [-Wreturn-type] 227 | template <typena...
s499138008
p01564
C++
#include <bits/stdc++.h> using namespace std; #define INF_LL (int64)1e18 #define INF (int32)1e9 #define REP(i, n) for(int i = 0;i < (n);i++) #define FOR(i, a, b) for(int 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_t; u...
a.cc: In member function 'void HLDecomposition::build()': a.cc:45:40: error: return-statement with a value, in function returning 'void' [-fpermissive] 45 | return 0; | ^
s629058256
p01564
C++
#include<bits/stdc++.h> using namespace std; using Int = long long;   template<typename T,typename E> struct LinkCutTree{   struct Node{     Node *l,*r,*p;     size_t cnt;     int idx;     bool rev;     T val,dat;     E laz;     Node():cnt(0){}     Node(int idx,T val,E laz):       cnt(1),idx(idx),rev(0),val(val),dat(va...
a.cc:4:1: error: extended character   is not valid in an identifier 4 |   | ^ a.cc:7:1: error: extended character   is not valid in an identifier 7 |   struct Node{ | ^ a.cc:7:1: error: extended character   is not valid in an identifier a.cc:8:1: error: extended character   is not valid in an identi...
s475428038
p01564
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; constexpr ll TEN(int n) { return (n==0) ? 1 : 10*TEN(n-1); } template<class T> using V = vector<T>; template<class T> using VV = V<V<T>>; struct HL { V<int> _ord, _rord, big, small; HL(int n = 0) : _ord(n), _rord(n), big(n), small(n) {} ...
/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
s398002036
p01568
C++
#include "bits/stdc++.h" #include<unordered_map> #pragma warning(disable:4996) using namespace std; /* 幾何の基本 */ #include <complex> typedef long double ld; typedef complex<ld> Point; #define REP(i,n) for(int i=0;i<(int)(n);i++) #define ALL(x) (x).begin(),(x).end() const ld eps = 1e-12, pi = acos(-1.0); const ld dto...
a.cc: In function 'int main()': a.cc:567:54: error: expected ';' before ')' token 567 | isis_ss(ls[i], ls[j])) { | ^ | ;
s091749222
p01568
C++
#include "bits/stdc++.h" #include<unordered_map> #pragma warning(disable:4996) using namespace std; /* 幾何の基本 */ #include <complex> typedef long double ld; typedef complex<ld> Point; #define REP(i,n) for(int i=0;i<(int)(n);i++) #define ALL(x) (x).begin(),(x).end() const ld eps = 1e-12, pi = acos(-1.0); const ld dto...
a.cc: In function 'int main()': a.cc:567:54: error: expected ';' before '{' token 567 | isis_ss(ls[i], ls[j]) { | ^~ | ;
s611484470
p01568
C++
#include<bits/stdc++.h> using namespace std; typedef complex<double> P; typedef complex<double> V; typedef vector<P> vecP; typedef pair<P,P> L; typedef pair<P,P> S; typedef pair<P,double> C; const double eps=1e-8; const double PI=acos(-1); const double PI2=PI*2.0; namespace std{ bool operator < (const P &a,const P ...
a.cc: In function 'int main()': a.cc:287:19: error: 'b' was not declared in this scope 287 | bs.push_back( b ); | ^
s322792603
p01568
C++
#include<bits/stdc++.h> using namespace std; typedef complex<double> P; typedef complex<double> V; typedef vector<P> vecP; typedef pair<P,P> L; typedef pair<P,P> S; typedef pair<P,double> C; const double eps=1e-8; const double PI=acos(-1); const double PI2=PI*2.0; namespace std{ bool operator < (const P &a,const P ...
a.cc: In function 'int main()': a.cc:287:19: error: 'b' was not declared in this scope 287 | bs.push_back( b ); | ^
s247794031
p01570
C++
#include <iostream> #include <cstdio> #include <stack> #include <cstring> #include <queue> #include <algorithm> #include <cmath> //#include <unordered_map> #define N 1000010 //#define lson x<<1 //#define rson x<<1|1 //#define mid ((lt[x].l+lt[x].r)/2) //#define ID(x, y) ((x)*m+(y)) //#define CHECK(x, y) ((x)>=0 && (x)<...
a.cc: Assembler messages: a.cc:75: Error: operand type mismatch for `mov'
s202783109
p01570
C++
#include <iostream> #include <cstdio> #include <stack> #include <cstring> #include <queue> #include <algorithm> #include <cmath> //#include <unordered_map> #define N 1000010 //#define lson x<<1 //#define rson x<<1|1 //#define mid ((lt[x].l+lt[x].r)/2) //#define ID(x, y) ((x)*m+(y)) //#define CHECK(x, y) ((x)>=0 && (x)<...
a.cc: In function 'int main2()': a.cc:68:9: error: expected ';' before numeric constant 68 | exit 0; | ^~ | ; a.cc:69:1: warning: no return statement in function returning non-void [-Wreturn-type] 69 | } | ^
s048892895
p01570
C++
#include <algorithm> #include <cstring> #include <vector> #define CLR(x) memset(x, 0, sizeof x) typedef long long ll; using namespace std; const int maxn = 1e6 + 10; int n; ll val[maxn]; vector <int> boot, G[maxn]; ll sum[maxn], dp[maxn]; int cur[maxn]; int stk[maxn]; ll a[maxn]; void calc(int u) { int sz = 0; ...
a.cc: In function 'int main()': a.cc:56:11: error: 'scanf' was not declared in this scope 56 | while(scanf("%d", &n) != EOF) { | ^~~~~ a.cc:56:30: error: 'EOF' was not declared in this scope 56 | while(scanf("%d", &n) != EOF) { | ^~~ a.cc:4:1: note: 'EOF'...
s941804372
p01570
C++
#include <cstdio> #include <cmath> #include <cstring> #include <ctime> #include <iostream> #include <algorithm> #include <set> #include <bitset> #include <vector> #include <sstream> #include <queue> #include <typeinfo> #include <fstream> #include <map> #include <stack> typedef long long ll; using namespace std; #defin...
a.cc: In function 'll read()': a.cc:30:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 30 | while(ch<"0"||ch>"9"){if(ch=="-")f=-1;ch=getchar();} | ~~^~~~ a.cc:30:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 30 | while(ch<...
s211076703
p01570
C++
stdio.h> #include <string.h> #include <algorithm> #include <iostream> #include <math.h> #include <assert.h> #include <vector> #include <queue> #include <string> #include <map> #include <set> using namespace std; typedef long long ll; typedef unsigned int uint; typedef unsigned long long ull; static const double EPS = ...
a.cc:1:1: error: 'stdio' does not name a type; did you mean 'stdin'? 1 | stdio.h> | ^~~~~ | stdin In file included from /usr/include/c++/14/cstdlib:79, from /usr/include/c++/14/bits/stl_algo.h:71, from /usr/include/c++/14/algorithm:61, from a.cc:3: /usr...
s147459629
p01570
C++
#include <stdio.h> #include <string.h> #include <algorithm> #include <iostream> #include <math.h> #include <assert.h> #include <vector> #include <queue> #include <string> #include <map> #include <set> using namespace std; typedef long long ll; typedef unsigned int uint; typedef unsigned long long ull; static const dou...
a.cc:81:5: error: stray '@' in program 81 | [cos@ring]Sum | ^ a.cc:81:1: error: expected unqualified-id before '[' token 81 | [cos@ring]Sum | ^
s093611708
p01570
C++
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <cctype> #include <string> #include <vector> #include <queue> #include <map> #include <stack> #include <set> #include <algorithm> #include <functional> using namespace std; #define N 1000005 #define ll __int64 int w[N]...
a.cc:17:12: error: '__int64' does not name a type; did you mean '__int64_t'? 17 | #define ll __int64 | ^~~~~~~ a.cc:19:1: note: in expansion of macro 'll' 19 | ll mx[N],sum[N]; | ^~ a.cc:17:12: error: '__int64' was not declared in this scope; did you mean '__ynf64'? 17 | #define ll __int...
s375807967
p01571
C++
#include <cstdio> #include <cstring> #include <string> #include <vector> #include <map> #include <iostream> #include <sstream> #include <algorithm> using namespace std; struct edge { int to, cap, cost, rev; }; int V; vector<edge> G[802]; int dist[802]; int prevv[802], preve[802]; void add_edge(int from, int to, i...
a.cc: In function 'void add_edge(int, int, int, int)': a.cc:20:55: warning: narrowing conversion of 'G[to].std::vector<edge>::size()' from 'std::vector<edge>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing] 20 | G[from].push_back((edge){to, cap, cost, G[to].size()}); | ...
s981784686
p01571
C++
#include <cstdio> #include <cstring> #include <string> #include <vector> #include <map> #include <iostream> #include <sstream> #include <algorithm> using namespace std; struct edge { int to, cap, cost, rev; }; int V; vector<edge> G[802]; int dist[802]; int prevv[802], preve[802]; void add_edge(int from, int to, i...
a.cc: In function 'void add_edge(int, int, int, int)': a.cc:20:55: warning: narrowing conversion of 'G[to].std::vector<edge>::size()' from 'std::vector<edge>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing] 20 | G[from].push_back((edge){to, cap, cost, G[to].size()}); | ...
s236154943
p01573
C++
#include "bits/stdc++.h" using namespace std; using ld = long double; ld eps = -1e11; vector<complex<ld>>quad_equa(complex<ld>a,complex<ld>b,complex<ld>c) { auto root = b*b - 4.0l * a*c; auto D = sqrt(root); auto ans = - b / (2.0l * a); vector<complex<ld>>anss(2); anss[0] = (-b + D) / (2.0l*a); anss[1] = (-b - ...
a.cc: In function 'int main()': a.cc:97:17: error: 'aa' was not declared in this scope; did you mean 'as'? 97 | aa = bb; | ^~ | as
s716368981
p01574
Java
import java.util.*; import java.lang.*; import java.math.*; import java.io.*; import static java.lang.Math.*; import static java.util.Arrays.*; import static java.util.Collections.*; public class _ { Scanner sc = new Scanner(System.in); int INF = 1 << 28; double EPS = 1e-9; int n, m; int[] a; void run() { n...
Main.java:9: error: as of release 9, '_' is a keyword, and may not be used as an identifier public class _ { ^ Main.java:53: error: as of release 9, '_' is a keyword, and may not be used as an identifier new _().run(); ^ 2 errors
s545371099
p01574
C++
#include <bits/stdc++.h> using namespace std; int N, M, x; int main() { cin >> N >> M; int ret = M; for(int i = 0; i < M; i++) { cin >> x; ret = __gcd(ret, __gcd(x, M)) } if(ret != 1 || N < M) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:46: error: expected ';' before '}' token 9 | ret = __gcd(ret, __gcd(x, M)) | ^ | ; 10 | } | ~
s214937503
p01574
C++
#include <iostream> #include <string> #include <algorithm> #include <vector> #include <cstdio> using namespace std; #define REP(i,n) FOR(i,0,n) bool ok(int N, vector<int>& v){ if(N == 1) return true; sort(v.begin(), v.end(), greater<int>()); REP(i, v.size()){ N = __gcd(N, v[i] % N); } return N == 1; } ...
a.cc: In function 'bool ok(int, std::vector<int>&)': a.cc:14:7: error: 'i' was not declared in this scope 14 | REP(i, v.size()){ | ^ a.cc:9:22: note: in definition of macro 'REP' 9 | #define REP(i,n) FOR(i,0,n) | ^ a.cc:9:18: error: 'FOR' was not declared in this scope ...
s104385795
p01576
C++
a#include<cmath> #include<cstdio> #include<vector> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; const double EPS=1e-4; const double PI=acos(-1); struct point{ double x,y; point():x(0),y(0){} point(double x,double y):x(x),y(y){} point operator-(const point &a)const{ return point(x-a.x,y-a.y); } }...
a.cc:1:2: error: stray '#' in program 1 | a#include<cmath> | ^ a.cc:1:1: error: 'a' does not name a type 1 | a#include<cmath> | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/vector:62, from a.cc:3: /usr/include/c++/14/...
s541314050
p01579
C
c[99999],i,t;long long r;char s[99999];main(){for(scanf("%s",s);i<strlen(s);i++)]r+=c[t+=81-2*s[i]++;printf("%lld\n",r);exit(0);}
main.c:1:1: warning: data definition has no type or storage class 1 | c[99999],i,t;long long r;char s[99999];main(){for(scanf("%s",s);i<strlen(s);i++)]r+=c[t+=81-2*s[i]++;printf("%lld\n",r);exit(0);} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] main.c:1:10: error: type ...
s231857770
p01579
C
c[99999],i,t;long long r;char s[99999];main(){for(scanf("%s",s);i<strlen(s);i++)]r+=c[t+=81-2*s[i]]++;printf("%lld\n",r);exit(0);}
main.c:1:1: warning: data definition has no type or storage class 1 | c[99999],i,t;long long r;char s[99999];main(){for(scanf("%s",s);i<strlen(s);i++)]r+=c[t+=81-2*s[i]]++;printf("%lld\n",r);exit(0);} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] main.c:1:10: error: type...
s575459106
p01579
C
n=99999,c[n],i,t;long long r;char s[n];main(){for(scanf("%s",s);i<strlen(s);i++)r+=c[t+=81-2*s[i]]++;printf("%lld\n",r);exit(0);}
main.c:1:1: warning: data definition has no type or storage class 1 | n=99999,c[n],i,t;long long r;char s[n];main(){for(scanf("%s",s);i<strlen(s);i++)r+=c[t+=81-2*s[i]]++;printf("%lld\n",r);exit(0);} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int] main.c:1:9: error: type d...
s770165327
p01579
C++
import java.util.*; import java.lang.*; import java.math.*; import java.io.*; import static java.lang.Math.*; import static java.util.Arrays.*; import static java.util.Collections.*; public class Main { Scanner sc = new Scanner(System.in); int INF = 1 << 28; double EPS = 1e-9; String s; void run() { s = sc.n...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.lang.*; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1...
s332714653
p01579
C++
include<iostream> #include<map> int main(){ std::map<long long,long long> counter; std::string line; int tmp = 0; getline(std::cin,line); for(int i=0;i<(int)line.size();i++){ tmp += ((line[i]=='(')?+1:-1); if(tmp)counter[tmp]++; } long long ans = 0; for(std::pair<long long,long long> iter : cou...
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/bits/stl_tree.h:63, from /usr/include/c++/14/map:62, from a.cc:2: /usr/include/c++/14/ex...
s713502430
p01581
Java
import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map.Entry; public class Main{ int size; HashMap<Integer,Integer> lru; public LRU(int capacity) { lru=new LinkedHashMap<Integer,Integer>(); size=capacity; } public int get(int key) { if(lru....
Main.java:10: error: invalid method declaration; return type required public LRU(int capacity) { ^ 1 error
s223193451
p01581
C++
~ ??° CompetitiveProgramming ??± ICPC ??± 2016 ??° % ??° cat ~/CPro/AOJ/Volume24/2468.cpp #include <cstdio> #include <set> using namespace std; int main(){ int a[100000],n,m; scanf("%d %d" ,&n ,&m); for(int i = 0 ; i < n ; i++){ scanf("%d" ,&a[i]); } set<int> st; int cnt = 0; for(...
a.cc:1:6: error: extended character ° is not valid in an identifier 1 | ~ ??° CompetitiveProgramming ??± ICPC ??± 2016 ??° % ??° cat ~/CPro/AOJ/Volume24/2468.cpp | ^ a.cc:1:33: error: extended character ± is not valid in an identifier 1 | ~ ??° CompetitiveProgramming ??± ICPC ??± 2016 ??° % ??° cat...
s088087103
p01581
C++
#include <algorithm> #include <queue> #define REP(i,n) for(int i=0; i<(int)(n); i++) #include <cstdio> #include <boost/unordered_set.hpp> inline int getInt(){ int s; scanf("%d", &s); return s; } using namespace std; int main(){ const int n = getInt(); const int m = getInt(); boost::unordered_set<int> s; vec...
a.cc:6:10: fatal error: boost/unordered_set.hpp: No such file or directory 6 | #include <boost/unordered_set.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s715814918
p01581
C++
#include <algorithm> #include <queue> #define REP(i,n) for(int i=0; i<(int)(n); i++) #include <cstdio> #include "boost/unordered_set.hpp" inline int getInt(){ int s; scanf("%d", &s); return s; } using namespace std; int main(){ const int n = getInt(); const int m = getInt(); boost::unordered_set<int> s; vec...
a.cc:6:10: fatal error: boost/unordered_set.hpp: No such file or directory 6 | #include "boost/unordered_set.hpp" | ^~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s940510616
p01585
C
#include<bits/stdc++.h> using namespace std; const double eps = 1e-8; const double pi = acos(-1.0); const int maxn = 2005; typedef struct node{ double st,ed; }Node; bool cmp(Node a,Node b){ if((b.st-a.st)>eps) return true; else if(fabs(a.st-b.st)<eps) return ((b.ed-a.ed)>-eps); else return false; } Nod...
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s309628932
p01585
C
#include<cstdio> #include<cmath> #include<algorithm> using namespace std; #define INF 2147483647.0 #define EPS 0.00000001 const double PI=acos(-1.0); double pangle,K; struct Point { int x,y; double angle() { double t=atan2((double)y,(double)x)-pangle+EPS*K; if(t-PI>EPS) return t-2.0*PI; if(t+PI<E...
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s392836679
p01588
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int n,m; cin>>n>>m; int a[n*2],sum=0,ma=0; for(int i=0;i<n;i++){ cin>>a[i]; a[n+i]=a[i]; sum+=a[i]; ma=max(ma,a[i]); } srand((unsigned)time); time_t start=clock(); set<int> s; int ans=sum; while((double)(c...
a.cc: In function 'int main()': a.cc:14:9: error: cast from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to 'unsigned int' loses precision [-fpermissive] 14 | srand((unsigned)time); | ^~~~~~~~~~~~~~
s697016302
p01588
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int n,m; cin>>n>>m; int a[n*2],sum=0,ma=0; for(int i=0;i<n;i++){ cin>>a[i]; a[n+i]=a[i]; sum+=a[i]; ma=max(ma,a[i]); } srand((unsigned)time); time_t start=clock(); set<int> s; int ans=sum; while((double)(c...
a.cc: In function 'int main()': a.cc:14:9: error: cast from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to 'unsigned int' loses precision [-fpermissive] 14 | srand((unsigned)time); | ^~~~~~~~~~~~~~
s422507603
p01588
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int n,m; cin>>n>>m; int a[n*2],sum=0,ma=0; for(int i=0;i<n;i++){ cin>>a[i]; a[n+i]=a[i]; sum+=a[i]; ma=max(ma,a[i]); } srand((unsigned)time); time_t start=clock(); set<int> s; int ans=sum; while((double)(c...
a.cc: In function 'int main()': a.cc:14:9: error: cast from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to 'unsigned int' loses precision [-fpermissive] 14 | srand((unsigned)time); | ^~~~~~~~~~~~~~
s231073171
p01589
C
// AOJ 2476: Strange Currency System // 2018.3.5 bal4u #include <stdio.h> #include <stdlib.h> //#define getchar_unlocked() getchar() int in() { int n = 0; int c = getchar_unlocked(); do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked(); while (c >= '0'); return n; } int a[10002]; int cmp(int *a, int *b) { ...
main.c: In function 'main': main.c:26:14: error: 'i' undeclared (first use in this function) 26 | for (i = 0; i < n; i++) a[i] = in(); | ^ main.c:26:14: note: each undeclared identifier is reported only once for each function it appears in main.c:27:34: error: passing argument 4 of 'qsort'...
s714063716
p01595
Java
import java.util.*; import java.lang.*; import java.math.*; import java.io.*; import sun.tools.jar.resources.jar; import static java.lang.Math.*; import static java.util.Arrays.*; import static java.util.Collections.*; public class Main{ Scanner sc=new Scanner(System.in); int INF=1<<28; double EPS=1e-12; int m,...
Main.java:6: error: package sun.tools.jar.resources is not visible import sun.tools.jar.resources.jar; ^ (package sun.tools.jar.resources is declared in module jdk.jartool, which does not export it) Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for deta...
s768708514
p01595
Java
import java.util.*; import java.lang.*; import java.math.*; import java.io.*; import sun.tools.jar.resources.jar; import static java.lang.Math.*; import static java.util.Arrays.*; import static java.util.Collections.*; public class Main{ Scanner sc=new Scanner(System.in); int INF=1<<28; double EPS=1e-12; int m,...
Main.java:6: error: package sun.tools.jar.resources is not visible import sun.tools.jar.resources.jar; ^ (package sun.tools.jar.resources is declared in module jdk.jartool, which does not export it) 1 error
s497163629
p01600
C++
#include<algorithm> #include<map> #include<set> #include<queue> #include<string> #include<cctype> #include<cassert> #include<cmath> #include<climits> #define INF (1<<29) #define all(c) (c).begin(),(c).end() #define D(x) cout << #x " is " << (x) << endl #define rep(i,n) for(int i = 0; i < n; i++) #define x first #defin...
a.cc: In function 'int main()': a.cc:27:3: error: 'cin' was not declared in this scope 27 | cin >> n; | ^~~ a.cc:10:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 9 | #include<climits> +++ |+#include <iostream> 10 | a.cc:29:10: erro...
s983651725
p01601
C++
#include<string> #include<vector> #include<algorithm> #include<iostream> #include<sstream> using namespace std; bool latte(int n){ stringstream ss; ss<<n; string str; ss>>str; string rev=str; reverse(rev.begin(),rev.end()); return str==rev; } inline int intAbs(int a){ if(a<0)a*=-1; r...
a.cc: In function 'int main()': a.cc:20:12: error: 'd' was not declared in this scope 20 | int main(){d | ^ a.cc:22:10: error: 'n' was not declared in this scope 22 | cin>>n; | ^
s666799421
p01601
C++
#include<string> #include<vector> #include<algorithm> #include<iostream> #include<sstream> using namespace std; bool latte(int n){ stringstream ss; ss<<n; string str; ss>>str; string rev=str; reverse(rev.begin(),rev.end()); return str==rev; } int intAbs(int a){ if(a<0)a*=-1; return ...
a.cc: In function 'int main()': a.cc:20:12: error: 'd' was not declared in this scope 20 | int main(){d | ^ a.cc:22:10: error: 'n' was not declared in this scope 22 | cin>>n; | ^
s598208588
p01601
C++
#include <iostream> #include <string> int n; int f, b; int main() { std::cin >> n; f = n; b = n; std::string str, r; while (1) { str = std::to_string(b); r = str; std::reverse(str.begin(), str.end()); if (r == str) break; str = std::to_string(f); r = str; std::reverse(str.begin(), str.end()); ...
a.cc: In function 'int main()': a.cc:15:22: error: 'reverse' is not a member of 'std' 15 | std::reverse(str.begin(), str.end()); | ^~~~~~~ a.cc:20:22: error: 'reverse' is not a member of 'std' 20 | std::reverse(str.begin(), str.end()); | ...
s218780898
p01601
C++
#include <iostream> #include <string> int n; int f, b; int main() { std::cin >> n; f = n; b = n; std::string str, r; while (1) { str = std::to_string(b); r = str; std::reverse(str.begin(), str.end()); if (r == str) break; str = std::to_string(f); r = str; std::reverse(str.begin(), str.end()); ...
a.cc: In function 'int main()': a.cc:15:22: error: 'reverse' is not a member of 'std' 15 | std::reverse(str.begin(), str.end()); | ^~~~~~~ a.cc:20:22: error: 'reverse' is not a member of 'std' 20 | std::reverse(str.begin(), str.end()); | ...
s099189806
p01601
C++
a
a.cc:1:1: error: 'a' does not name a type 1 | a | ^
s141475538
p01601
C++
as
a.cc:1:1: error: 'as' does not name a type 1 | as | ^~
s446674713
p01601
C++
#include <iostream> #include <string> using namespace std; bool is_palindromic_number(int n) { string str = to_string(n); int len = str.size(); string s1 = str.substr(0, len / 2); string s2 = str.substr(len / 2 + len % 2); reverse(s2.begin(), s2.end()); return s1 == s2; } int n; int ans; in...
a.cc: In function 'bool is_palindromic_number(int)': a.cc:12:5: error: 'reverse' was not declared in this scope 12 | reverse(s2.begin(), s2.end()); | ^~~~~~~
s285336108
p01601
C++
hogehoge
a.cc:1:1: error: 'hogehoge' does not name a type 1 | hogehoge | ^~~~~~~~
s269791565
p01601
C++
include<iostream> #include<algorithm> #include<cstdio> #include<sstream> #include<vector> #include<cmath> using namespace std; bool check(int n) { stringstream ss; ss << n; string s = ss.str(); string rs(s.rbegin(),s.rend()); return s == rs; } int main() { vector<int> vec; for(int i=1;i<=10000;i++) ...
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from a.cc:2: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __g...
s557685976
p01601
C++
#include<iostream> #include<algorithm> include<cstdio> #include<sstream> #include<vector> #include<cmath> using namespace std; bool check(int n) { stringstream ss; ss << n; string s = ss.str(); string rs(s.rbegin(),s.rend()); return s == rs; } int main() { vector<int> vec; for(int i=1;i<=10000;i++) ...
a.cc:3:1: error: 'include' does not name a type 3 | include<cstdio> | ^~~~~~~ In file included from /usr/include/c++/14/sstream:1238, from a.cc:4: /usr/include/c++/14/bits/sstream.tcc:46:15: error: template definition of non-template 'typename std::__cxx11::basic_stringbuf<_CharT, _Traits, _A...
s536266994
p01601
C++
#include <iostream> #include <sstream> #include <climits> #include <cstdlib> #include <cstdio> #include <cmath> using namespace std; bool palind(int x){ stringstream ss; ss << x; string s = ss.str(); string rs = s; reverse(rs.begin(), rs.end()); return s == rs; } int main(){ int n; while(cin >> n){ ...
a.cc: In function 'bool palind(int)': a.cc:14:3: error: 'reverse' was not declared in this scope 14 | reverse(rs.begin(), rs.end()); | ^~~~~~~