submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s935175456
p03723
Java
import java.util.Scanner; /** * Created by zzt on 17-5-6. */ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int curA = scanner.nextInt(); int curB = scanner.nextInt(); int curC = scanner.nextInt(); int time = 0; ...
Main.java:18: error: illegal start of expression while (curA % 2 == 0 && curB % 2 == 0 % && curC % 2 == 0) { ^ 1 error
s028049094
p03723
Java
/** * Created by zzt on 17-5-6. */ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int curA = scanner.nextInt(); int curB = scanner.nextInt(); int curC = scanner.nextInt(); int time = 0; if (curA == curB && cur...
Main.java:17: error: illegal start of expression while (curA % 2 == 0 && curB % 2 == 0 % && curC % 2 == 0) { ^ 1 error
s903819455
p03723
C++
#include <bits/stdc++.h> #define MAX 1000005 #define ll long long #define upperlimit 1000100 #define INF 1e18 #define eps 1e-8 #define endl '\n' #define pcc pair<char,char> #define pii pair<int,int> #define pll pair<ll,ll> #define tr(container,it) for(typeof(container.begin()) it=container.begin();it!=container.end();...
a.cc: In function 'int main()': a.cc:43:9: error: 'ans' was not declared in this scope; did you mean 'abs'? 43 | ans++; | ^~~ | abs a.cc:45:11: error: 'ans' was not declared in this scope; did you mean 'abs'? 45 | cout<<ans<<endl; | ^~~ | abs...
s097940795
p03723
C++
#include <cstdio> using namespace std; int main() { // freopen("testcase", "r", stdin); int a, b, c; scanf("%d%d%d", &a, &b, &c); int cnt = 0; while (true) { if (a == b && b == c) { printf("-1\n"); return 0; ...
a.cc:31:2: error: expected unqualified-id before '%' token 31 | }% | ^
s198243712
p03723
Java
import java.awt.*; import java.io.*; import java.math.BigDecimal; import java.math.BigInteger; import java.util.*; import java.util.List; import static java.lang.Math.PI; import static java.lang.Math.max; import static java.lang.Math.min; public class A implements Runnable{ // SOLUTION!!! // HACK ME PLEASE ...
Main.java:13: error: class A is public, should be declared in a file named A.java public class A implements Runnable{ ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
s180278564
p03723
C++
#include<bits/stdc++.h> typedef long long ll; typedef unsigned long long ull; using namespace std; #define pb push_back int dy[]={0, 0, 1, -1, 0}; int dx[]={1, -1, 0, 0, 0}; #define FOR(i,a,b) for (int i=(a);i<(b);i++) #define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--) #define REP(i,n) for (int i=0;i<(n);i++) #define R...
a.cc:22:36: error: stray '#' in program 22 | printf("%lld\n",count);#include<bits/stdc++.h> | ^ a.cc:87:22: error: stray '#' in program 87 | return 0;#include<bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:22:37: ...
s694286809
p03723
C++
#include <stdio.h> void main() { int a, b, c; int count; scanf("%d %d %d", &a, &b, &c); while((a % 2 == 0) && (b % 2 == 0) && (c % 2 == 0)) { int tmpa = a, tmpb = b, tmpc = c; a += tmpb/2 + tmpc/2; b += tmpc/2 + tmpa/2; c += tmpa/2 + tmpb/2; count++; } printf...
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~
s423050065
p03723
C++
a, b, c = map(int, raw_input().split()) def hoge(a, b, c): a, b, c = (b + c) / 2, (a + c) / 2, (a + b) / 2 return a, b, c for i in xrange(108000): if a % 2 == 1 or b % 2 == 1 or c % 2 == 1: print i exit() a, b, c = hoge(a, b, c) print -1
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = map(int, raw_input().split()) | ^
s832859074
p03724
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
s507857451
p03724
C++
#include<bits/stdc++.h> using namespace std; using ll = long long; #define rep(i,n) for(ll i=0;i<n;i++) #define repl(i,l,r) for(ll i=(l);i<(r);i++) #define per(i,n) for(ll i=n-1;i>=0;i--) #define perl(i,r,l) for(ll i=r-1;i>=l;i--) #define fi first #define se second #define pb push_back #define ins insert #define all(x)...
a.cc:109:1: error: expected initializer before 'void' 109 | void dfs(string s, char m){ | ^~~~
s051547792
p03724
C++
#include<bits/stdc++.h> using namespace std; using ll = long long; #define rep(i,n) for(ll i=0;i<n;i++) #define repl(i,l,r) for(ll i=(l);i<(r);i++) #define per(i,n) for(ll i=n-1;i>=0;i--) #define perl(i,r,l) for(ll i=r-1;i>=l;i--) #define fi first #define se second #define pb push_back #define ins insert #define all(x)...
a.cc: In function 'void dfs(std::string, char)': a.cc:109:21: error: 'n' was not declared in this scope 109 | if((int)s.size()==n){ | ^
s591593639
p03724
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; int n, m; int main() { cin.sync_with_stdio(0); cin.tie(0); cin >> n >> m; int tot = 0; for (int i = 0; i < m; i++) { int a, b; cin >> a >> b; tot += b - a; } if (tot % 2 || tot % (n - 1)) cout << "NO"; els...
a.cc:19:1: error: expected declaration before '}' token 19 | } | ^
s599777487
p03724
C++
n
a.cc:1:1: error: 'n' does not name a type 1 | n | ^
s409004361
p03724
C++
#include<bits/stdc++.h> using namespace std; int main(){ int N,m; cin>>N>>m; map<int,int>M; for(int i=0;i<2*m;i++){ int a; cin>>a; if(M.count(a)); M.at(a)++; else M[a]=1; }bool ans=true; for(auto p:M){ auto k=p.first; auto v=p.second; if(v%2==1){ ans=false; break; } ...
a.cc: In function 'int main()': a.cc:11:5: error: 'else' without a previous 'if' 11 | else | ^~~~
s253694023
p03724
C++
#include<bits/stdc++.h> using namespace std; int main(){ int N,M; cin>>N>>M; map<int,int>M; for(int i=0;i<2*M;i++){ int a; cin>>a; if(M.count(a)); M.at(a)++; else M[a]=1; }bool ans=true; for(auto p:M){ auto k=p.first; auto v=p.second; if(v%2==1){ ans=false; break; } ...
a.cc: In function 'int main()': a.cc:6:15: error: conflicting declaration 'std::map<int, int> M' 6 | map<int,int>M; | ^ a.cc:4:7: note: previous declaration as 'int M' 4 | int N,M; | ^ a.cc:9:10: error: request for member 'count' in 'M', which is of non-class type 'int' 9 |...
s050553107
p03724
C++
#include "template.cpp" int main() { int n = IN, m = IN; Graph graph(n); rep(m) { int u = IN1, v = IN1; graph[u].emplace_back(v); graph[v].emplace_back(u); } rep(v, n) if (graph[v].size() % 2) EXIT("NO"); OUT("YES"); }
a.cc:1:10: fatal error: template.cpp: No such file or directory 1 | #include "template.cpp" | ^~~~~~~~~~~~~~ compilation terminated.
s859951837
p03724
C++
#pragma GCC optimize("O3") #include <bits/stdc++.h> #define ll long long #define rep(i,n) for(ll i=0;i<(n);i++) #define pll pair<ll,ll> #define pq priority_queue #define pb push_back #define eb emplace_back #define fi first #define se second #define ios ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0); #define lb(c,...
a.cc: In function 'int main()': a.cc:35:10: error: 'i' cannot be used as a function 35 | i(c[i]%2==1){ | ~^~~~~~~~~~~
s684881014
p03724
C++
#include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false); cin.tie(0); #define FOR(i,s,n) for(int i = (s); i < (n); i++) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) for(int i = (n); i >= 0; i--) #define ALL(n) (n).begin(), (n).end() #define RALL(n) (n).rbegin(), (n).rend() #define ATYN(n) ...
a.cc: In function 'int main()': a.cc:32:20: error: 'a' was not declared in this scope 32 | REP(i,N) if (v[a] % 2 != 0) { | ^
s368058542
p03724
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define repp(i,m,n) for(int (i)=(m);(i)<(n);(i)++) #define repm(i,n) for(int (i)=(n-1);(i)>=0;(i)--) #define INF (1ll<<60) #define all(x) (x).begin(),(x).end() typedef long long lint; const lint MOD =1000000007; const lint MAX =...
a.cc: In function 'int main()': a.cc:84:27: error: expected ';' before '}' token 84 | cout<<"NO" | ^ | ; 85 | } | ~
s574640422
p03724
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define repp(i,m,n) for(int (i)=(m);(i)<(n);(i)++) #define repm(i,n) for(int (i)=(n-1);(i)>=0;(i)--) #define INF (1ll<<60) #define all(x) (x).begin(),(x).end() typedef long long lint; const lint MOD =1000000007; const lint MAX =...
a.cc: In function 'int main()': a.cc:83:19: error: 'class std::map<long long int, long long int>' has no member named 'second' 83 | if(mp.second%2==1){ | ^~~~~~ a.cc:84:27: error: expected ';' before '}' token 84 | cout<<"NO" | ^ ...
s599444425
p03724
C++
///////////// UnionFind // バラバラの要素を結合してグループにまとめる際に使える構造。 // グループ番号、要素数の取得が可能だが、グループに属する要素の列挙はO(N)かかる。 class UnionFindClass { public: UnionFindClass() { N = 0; parent = NULL; size = NULL; } ~UnionFindClass() { if (parent != NULL) { delete[] parent; } if (size != NULL) { delete[] size;...
a.cc: In constructor 'UnionFindClass::UnionFindClass()': a.cc:9:26: error: 'NULL' was not declared in this scope 9 | parent = NULL; | ^~~~ a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' +++ |+#include ...
s589224254
p03724
C++
// https://ei1333.github.io/luzhiled/ // http://beet-aizu.hatenablog.com/entry/2017/01/04/113233 // http://www.prefield.com/algorithm/ #include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vl = vector<ll>; using vd = vector<ld>; using vs = vector<string>; using vb = vector<bo...
a.cc: In function 'int main()': a.cc:65:13: error: no match for 'operator&' (operand types are 'std::pair<const long long int, long long int>' and 'int') 65 | if(x&1) f=0; | ~^~ | | | | | int | std::pair<const long long int, long long int> I...
s241009943
p03724
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() // 昇順ソート #define rall(v) (v).rbegin(), (v).rend() // 降順ソート #define INF 1LL << 60 typedef long long int LL; typedef long long int ll; #define pll pair<ll, ll> #define F first #define S...
a.cc: In function 'int main()': a.cc:33:25: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 33 | if(ok)cout << "Yes" < endl; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/regex:68, from ...
s092294690
p03724
C++
#include <bits/stdc++.h> #define ll long long int #define MOD 1000000007 #define INF 1e18 #define PI 3.14159265358979 using namespace std; int main(void){ ll n, m; cin >> n >> m; vector<int> c(n); for (int i = 0; i < m; i++){ ll a, b; cin >> a >> b; a--; b--; c[a] = (c[a] + 1) % 2; c[b]...
a.cc: In function 'int main()': a.cc:24:10: error: 'a' was not declared in this scope 24 | if(c[a] == 1) | ^
s327236956
p03724
C++
#include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> #include <algorithm> #include <iostream> #include <string> #include <cmath> using namespace std; #define ll long long #define rep(i, n) for (ll i = 0; i < (n); i++) #define FOR(i,a,b) for(ll i=(a);i<(b);i++) #define FORR(i,a,b)for(ll i=(a);i<=(b);...
a.cc: In function 'int main()': a.cc:61:3: error: 'COUR' was not declared in this scope; did you mean 'COUT'? 61 | COUR("YES"); | ^~~~ | COUT
s433237070
p03724
C++
#include<bits/stdc++.h> using namespace std; int main(){ long N,M;cin>>N>>M; vector<long>A(N,0); for(long i=0;i<M;i++){ long a,b;cin>>a>>b;A[a-1]++;B[b-1]++; } bool a=1; for(long i=0;i<N;i++)a*=(A[i]%2==0); cout<<(a?"YES":"NO"); }
a.cc: In function 'int main()': a.cc:7:33: error: 'B' was not declared in this scope 7 | long a,b;cin>>a>>b;A[a-1]++;B[b-1]++; | ^
s494388748
p03724
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n,m; scanf("%d%d}#include <bits/stdc++.h> using namespace std; int ct[100005]; int main(){ int n,m; scanf("%d%d",&n,&m); for (int i = 0; i < m; i++){ int x,y; scanf("%d%d",&x,&y); ct[x]++; ct[y]++; } for (int i =...
a.cc:5:9: warning: missing terminating " character 5 | scanf("%d%d}#include <bits/stdc++.h> | ^ a.cc:5:9: error: missing terminating " character 5 | scanf("%d%d}#include <bits/stdc++.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:6:1: error: expected pri...
s983278634
p03724
C++
#include <bits/stdc++.h> using namespace std; typedef ll long long const int MAXN = 2e5 + 21; ll n, m; ll d[MAXN]; int main () { ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); cin >> n >> m ; while (m--) { ll v, u; cin >> v >> u; d[v]++; d[u]++; } for (int i = 1; i <= n ; i...
a.cc:4:9: error: 'll' does not name a type 4 | typedef ll long long | ^~ a.cc:8:1: error: 'll' does not name a type 8 | ll n, m; | ^~ a.cc:9:1: error: 'll' does not name a type 9 | ll d[MAXN]; | ^~ a.cc: In function 'int main()': a.cc:13:12: error: 'n' was not declared in this scop...
s469331695
p03724
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n,m; cin >>n >>m; int cnt[n+1]={}; for(int i=0;i<m;i++){ int a,b; cin >> a>>b; cnt[a]++; cnt[b]++; } for(i=0;i<=n;i++){ if(cnt[i]%2!=0){ cout << "NO" << endl; return 0; } } cout << "YES" << endl; return...
a.cc: In function 'int main()': a.cc:15:7: error: 'i' was not declared in this scope 15 | for(i=0;i<=n;i++){ | ^
s756654519
p03724
C++
to be coded
a.cc:1:1: error: 'to' does not name a type; did you mean 'auto'? 1 | to be coded | ^~ | auto
s903859445
p03724
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; int cnt[100001]; int main(){ int n, m; cin >> n >> m; vector<int> ; for(int i = 0; i < m; ++i){ int a, b; cin >> a >> b; --a; --b; ++cnt[a]; ++cnt[b]; } for(int...
a.cc: In function 'int main()': a.cc:12:5: error: declaration does not declare anything [-fpermissive] 12 | vector<int> ; | ^~~~~~~~~~~
s337549584
p03724
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<map> #include<set> #include<cstdio> #include<cmath> #include<numeric> #include<queue> #include<stack> #include<cstring> #include<limits> #include<functional> #define rep(i,a) for(int i=(int)0;i<(int)a;++i) #define pb push_back #define eb ...
a.cc: In function 'int main()': a.cc:30:14: error: 'a' was not declared in this scope 30 | cin>>a>>b; | ^ a.cc:30:17: error: 'b' was not declared in this scope 30 | cin>>a>>b; | ^
s170366795
p03724
C++
#include <iostream> #include <algorithm> #include <string> #include <vector> #include <cmath> #include <set> #include <map> #include <queue> using namespace std; #define rep(i,n) for(int i = 0;i<n;i++) const long long MOD = 1000000007LL; const string alpha = "abcdefghijklmnopqrstuvwxyz"; bool judge(long num[],long n){ ...
a.cc: In function 'int main()': a.cc:21:10: error: expected unqualified-id before '>>' token 21 | long >> n >> m; | ^~
s473858616
p03724
C++
#include <iostream> #include <cstring> #include <limits.h> #include <algorithm> #include <math.h> using namespace std; typedef long long ll; int main(void){ int n, m, x[100020]; cin >> n >> m; fill(x, x + n, 0); for (int i = 0; i < m; i++) { cin >> a >> b; a--; b--; x[a]++; x[...
a.cc: In function 'int main()': a.cc:14:16: error: 'a' was not declared in this scope 14 | cin >> a >> b; | ^ a.cc:14:21: error: 'b' was not declared in this scope 14 | cin >> a >> b; | ^
s593031518
p03724
C++
#pragma once #include <sstream> #include <string> #include <vector> #include <map> #include <algorithm> #include <iostream> #include <utility> #include <set> #include <cctype> #include <queue> #include <stack> #include <cstdio> #include <cstdlib> #include <cmath> #include <deque> using namespace std; typedef long long ...
a.cc:1:9: warning: #pragma once in main file 1 | #pragma once | ^~~~ a.cc:59:4: error: conflicting declaration 'll t [100010]' 59 | ll t[100010]; | ^ a.cc:20:5: note: previous declaration as 'int t [101]' 20 | int t[101]; | ^
s890253464
p03724
C
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 100; int n, m, u, v, cnt[N]; int main() { ios::sync_with_stdio(false), cin.tie(0); cin >> n >> m; while(m--) { cin >> u >> v; cnt[--u]++; cnt[--v]++; } for (int i = 0; i < n; i++) if(cnt[i] & 1) { cout << "NO"; return 0; } cout <...
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s294730377
p03724
C++
#include <bits/stdc++.h> using namespace std; int n,m,c[100005],a=0; int main(){ cin >> n >> m; m<<=1; while (m--) c[read()]^=1; for (int i=1;i<=n;i++) a+=c[i]; puts(a?"NO":"YES"); }
a.cc: In function 'int main()': a.cc:8:23: error: too few arguments to function 'ssize_t read(int, void*, size_t)' 8 | c[read()]^=1; | ~~~~^~ In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24, from /usr/include/signal.h:328, ...
s207350761
p03724
C++
#include <iostream> using namespace std; int main(){ int a,b,k[10005],l[100005]; cin>>a>>b; for(int i=0;i<b;++i){ cin>>k[i]>>l[i]; } for(int i=1;i<=a;++i){ int count=0; for(int j=0;j<b;++j){ if(k[j]==i||l[j]==i) count++; } if(count%2!=0){ cout<<"NO"<<endl; return 0; } ...
a.cc: In function 'int main()': a.cc:19:9: error: unable to find string literal operator 'operator""endl' with 'const char [4]', 'long unsigned int' arguments 19 | cout<<"YES"endl; | ^~~~~~~~~
s722507793
p03724
C++
#include<cstdio> #include<iostream> #include<algorithm> using namespace std; int main() { int n,m; while(cin>>n>>m) { int a[100000],,c[100000]b[100000]={0}; for(int i=1;i<=n;i++) { cin>>a[i]>>c[i]; } int sum=0; for(int i=1;i<=n;i++) { b[a[i]]++; b[c[i]]++; } flag=1; for(int i=0;i<100000;...
a.cc: In function 'int main()': a.cc:10:31: error: expected unqualified-id before ',' token 10 | int a[100000],,c[100000]b[100000]={0}; | ^ a.cc:10:41: error: expected initializer before 'b' 10 | int a[100000],,c[100000]b[100000]={0}; | ...
s817176229
p03724
C++
#include<bits/stdc++.h> typedef long long ll; typedef unsigned long long ull; using namespace std; #define pb push_back int dy[]={0, 0, 1, -1, 1, 1, -1, -1}; int dx[]={1, -1, 0, 0, 1, -1, -1, 1}; #define FOR(i,a,b) for (int i=(a);i<(b);i++) #define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--) #define REP(i,n) for (int i=0...
a.cc:42:5: error: redefinition of 'int dy []' 42 | int dy[]={0, 0, 1, -1, 1, 1, -1, -1}; | ^~ a.cc:6:5: note: 'int dy [8]' previously defined here 6 | int dy[]={0, 0, 1, -1, 1, 1, -1, -1}; | ^~ a.cc:43:5: error: redefinition of 'int dx []' 43 | int dx[]={1, -1, 0, 0, 1, -1, -1, 1}; |...
s128254750
p03724
C++
#include "stdafx.h" //ここから↓ #include <iostream> #include <climits> #include <stack> #include <queue> #include <string> #include <set> #include <map> #include <math.h> #include <algorithm> #include <vector> using namespace std; typedef long long ll; typedef pair<ll,ll> P; long long int INF = 1e18; double Pi = 3.14...
a.cc:1:10: fatal error: stdafx.h: No such file or directory 1 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s893441048
p03724
C++
#include <iostream> #include <climits> #include <stack> #include <queue> #include <string> #include <set> #include <map> #include <math.h> #include <algorithm> #include <vector> using namespace std; typedef long long ll; typedef pair<ll,ll> P; long long int INF = 1e18; double Pi = 3.141592653589; const int mod = ...
a.cc:31:1: error: expected initializer before 'll' 31 | ll ans=0; | ^~ a.cc: In function 'int main()': a.cc:38:25: error: 'b' was not declared in this scope 38 | cin>>a>>b; | ^ a.cc:39:17: error: 'ans' was not declared in this scope; did you mean 'abs'? 39 | ...
s068865691
p03724
C++
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; #define MAX 100005 int vis[MAX]; int main() { int n,m; scanf("%d%d",&n,&m); memset(vis,0,sizeof(vis)); while(m--) { scanf("%d%d",&x,&y); vis[x]++; vis[y]++; } int flag=1; ...
a.cc: In function 'int main()': a.cc:15:23: error: 'x' was not declared in this scope 15 | scanf("%d%d",&x,&y); | ^ a.cc:15:26: error: 'y' was not declared in this scope 15 | scanf("%d%d",&x,&y); | ^
s471892309
p03724
C++
#include<cstdio> int n, m, x, y, ans = 0; int main() { scanf(%d%d", &n, &m); for(int i = 0; i < m; i++) { scanf("%d%d", &x, &y); ans ^= x ^ y; } if(!ans) printf("YES\n"); else printf("NO\n"); return 0; }
a.cc:6:15: warning: missing terminating " character 6 | scanf(%d%d", &n, &m); | ^ a.cc:6:15: error: missing terminating " character 6 | scanf(%d%d", &n, &m); | ^~~~~~~~~~~ a.cc: In function 'int main()': a.cc:6:11: error: expected primary-expression before '%' tok...
s327707916
p03724
C++
#include <iostream> using namespace std; int main() { int N, M; cin >> N >> M; int tmp = N; int v[10000] = { 0 }; while (tmp--) { int a, b; cin >> a >> b; v[a - 1] ^= 1; v[b - 1] ^= 1; } for (int i = 0; i < ; i++) { if (v[i] % 2) { ...
a.cc: In function 'int main()': a.cc:17:25: error: expected primary-expression before ';' token 17 | for (int i = 0; i < ; i++) | ^
s272184845
p03724
C++
#include<iostream> using namespace std; int main() { int n, m, x, y; bool flag = true; int sw[100000]; memset(sw, 0, sizeof(sw)); cin >> n >> m; for (int i = 0; i < m; i++) { cin >> x >> y; sw[x] += 1; sw[y] += 1; } for (int i = 0; i < 100000; i++) { if (sw[i] % 2 == 1) { flag = false; break; } ...
a.cc: In function 'int main()': a.cc:7:9: error: 'memset' was not declared in this scope 7 | memset(sw, 0, sizeof(sw)); | ^~~~~~ a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<iostream> +++ |+#include <cstri...
s936762683
p03724
C++
#include<iostream> using namespace std;   int n, m, x, y; int a[100005]={0};   int main(){ cin>>n>>m; for(int i=1; i<=m; i++){ cin>>x>>y; a[x]++; a[y]++; } for(int i=1; i<=n; i++){ if(a[i]%2){ cout<<"NO"; return 0; } } cout<<"YES";...
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:4:1: error: '\U000000a0' does not name a type 4 |   | ^ a.cc:7:1: error: '\U000000a0' does not name a type 7 |   | ^
s505355103
p03724
C++
#include<iostream> using namespace std;   int n, m, x, y; int a[100005];   int main(){ cin>>n>>m; for(int i=1; i<=m; i++){ cin>>x>>y; a[x]++; a[y]++; } for(int i=1; i<=n; i++){ if(a[i]%2){ cout<<"NO"; return 0; } } cout<<"YES"; ...
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:4:1: error: '\U000000a0' does not name a type 4 |   | ^ a.cc:7:1: error: '\U000000a0' does not name a type 7 |   | ^
s146861408
p03724
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vi; typedef vector<vi> vvi; typedef vector<pair<int, int> > vp; #define pb push_back #define rep(i, a, n) for(int i = (a); i < (n); i++) #define dep(i, a, n) for(int i = (a); i >= (n); i--) #define out(n) cout << (n) << endl; #def...
a.cc:23:11: error: macro "rep" requires 3 arguments, but only 2 given 23 | rep(i, m) { | ^ a.cc:11:9: note: macro "rep" defined here 11 | #define rep(i, a, n) for(int i = (a); i < (n); i++) | ^~~ a.cc:28:15: error: macro "rep" requires 3 arguments, but only 2 given 28 | rep(i,...
s297088706
p03724
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vi; typedef vector<vi> vvi; typedef vector<pair<int, int> > vp; #define pb push_back #define rep(i, n) for(int i = 0; i < (n); i++) #define For(i, a, n) for(int i = a; i < (n); i++) #define out(n) cout << (n) << endl; #define vut(...
a.cc: In function 'int main()': a.cc:29:7: error: return-statement with no value, in function returning 'int' [-fpermissive] 29 | return; | ^~~~~~
s099476950
p03724
C++
#include <iostream> #include <sstream> #include <vector> #include <cmath> #include <ctime> #include <cassert> #include <ctype.h> #include <iomanip> #include <cstdio> #include <float.h> #include <queue> #include <set> #include <map> #include <fstream> #include <cstdlib> #include <string> #include <cstring> #include <alg...
a.cc: In function 'int main()': a.cc:87:9: error: reference to 'count' is ambiguous 87 | count[x]++; | ^~~~~ In file included from /usr/include/c++/14/algorithm:86, from a.cc:18: /usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _Execut...
s007779129
p03724
C++
#include<iostream> int temp[100001]; using namespace std; int main(){ int m,n; bool result=true; while(cin>>n>>m){ result=true; for(int i=0;i<n+1;i++){ temp[i]=0; } int a,b; for(int j=0;j<m;j++){ cin>>a>>b; temp[a]++; temp[b]++; } for(int k=1;k<n;k++){ if(temp[k] != temp[k+1...
a.cc: In function 'int main()': a.cc:24:35: error: 'k' was not declared in this scope 24 | if(result && temp[k] > 1 && temp[1]%2==0) cout<<"YES"<<endl; | ^
s855940753
p03724
C++
#include<cstdio> #include<cstring> #include<cstdlib> #include<map> #include<set> #include<algorithm> #include<cmath> using namespace std; map<int,int>s[100005]; int main(){ int n,m; memset(s,0,sizeof(s)); scanf("%d %d",&n,&m); for(int i = 1;i <= m;i++){ int a,b; scanf("%d %d",a,b); s[a]++; s[b]++; } for...
a.cc: In function 'int main()': a.cc:19:21: error: no 'operator++(int)' declared for postfix '++' [-fpermissive] 19 | s[a]++; | ~~~~^~ a.cc:20:21: error: no 'operator++(int)' declared for postfix '++' [-fpermissive] 20 | s[b]++; | ~~~~^~ ...
s591463316
p03724
C++
#include<cstdio> #include<cstring> #include<cstdlib> #include<map> #include<set> #include<algorithm> #include<cmath> using namespace std; map<int,int>s[100005]; int main(){ int n,m; memset(s,0,sizeof(s)); scanf("%d %d",&n,&m); for(int i = 1;i <= m;i++){ int a,b; scanf("%d %d",a,b); s[a]++; s[b]++; } for...
a.cc: In function 'int main()': a.cc:19:21: error: no 'operator++(int)' declared for postfix '++' [-fpermissive] 19 | s[a]++; | ~~~~^~ a.cc:20:21: error: no 'operator++(int)' declared for postfix '++' [-fpermissive] 20 | s[b]++; | ~~~~^~ ...
s264199627
p03724
C
#include <cstdio> #include <set> std::set<int> e[100000]; int num; bool path(int a, int b, int p){ if(a==b) return true; for(auto c: e[a]){ if(c == p) continue; if(path(c, b, a)){ e[a].erase(c); e[c].erase(a); num--; return true; } } return false; } int main(){ int n, m...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s847672818
p03724
C++
N, M = map(int, input().split()) deg = [0 for i in range(N)] for i in range(M): a, b = map(int, input().split()) deg[a-1] += 1 deg[b-1] += 1 res = 'YES' for d in deg: if d % 2 == 1: res = 'NO' print(res)
a.cc:8:7: warning: multi-character character constant [-Wmultichar] 8 | res = 'YES' | ^~~~~ a.cc:11:15: warning: multi-character character constant [-Wmultichar] 11 | res = 'NO' | ^~~~ a.cc:1:1: error: 'N' does not name a type 1 | N, M = map(int, input().split()) ...
s289293676
p03724
C++
N, M = map( int, input().split() ) imos = [ 0 for i in range( N + 1 ) ] for i in range( M ): a, b = map( int, input().split() ) imos[ a - 1 ] += 1 imos[ b - 1 ] -= 1 for i in range( 1, N ): imos[ i ] += imos[ i - 1 ] print( "NO" if any( imos[ i ] & 1 for i in range( N ) ) else "YES" )
a.cc:1:1: error: 'N' does not name a type 1 | N, M = map( int, input().split() ) | ^
s810489668
p03724
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int n,m,a,b; int cnt[100010]; int main(){ cin>>n>>m; memset(cnt,0,n); for(int i=0;i<m;i++){ cin>>a>>b; cnt[a]++,cnt[b]++; } bool ok=true; for(int i=0;i<=n;i++){ if(cnt[i]%2==1)ok=false; } if(ok)cout<<"YES"<<endl; else cout<<"NO"...
a.cc: In function 'int main()': a.cc:9:9: error: 'memset' was not declared in this scope 9 | memset(cnt,0,n); | ^~~~~~ a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include<algorithm> +++ |+#include <cstring> 3...
s554646104
p03725
C++
#include <bits/stdc++.h> #define LL long long #define PII pair #define MP(x, y) make_pair((x),(y)) #define fi first #define se second #define PB(x) push_back((x)) #define MMG(x) memset((x), -1,sizeof(x)) #define MMF(x) memset((x),0,sizeof(x)) #define MMI(x) memset((x), INF, sizeof(x)) using namespace std; const int I...
a.cc: In function 'int bfs(int, int)': a.cc:25:5: error: 'queueq' was not declared in this scope 25 | queueq; | ^~~~~~ a.cc:26:5: error: 'q' was not declared in this scope 26 | q.push(MP(sx, sy)); | ^
s212288015
p03725
C++
#include <iostream> #include <vector> #include <queue> #include <algorithm> #include "../../library/library/debug_template.cpp" using namespace std; #ifdef _DEBUG #include "../../library/library/debug_template.cpp" #define DMP(...) dump(#__VA_ARGS__, __VA_ARGS__) #else #define DMP(...) ((void)0) #endif struct init ...
a.cc:6:10: fatal error: ../../library/library/debug_template.cpp: No such file or directory 6 | #include "../../library/library/debug_template.cpp" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s034881959
p03725
C++
int H,W,K; string S[808]; int SY,SX; int dist[808][808]; void solve() { int i,j,k,l,r,x,y; string s; cin>>H>>W>>K; FOR(y,H) { cin>>S[y]; FOR(x,W) { if(S[y][x]=='S') { S[y][x]='.'; SY=y; SX=x; } dist[y][x]=1<<20; } } dist[SY][SX]=0; queue<int> Q; Q.push(SY*1000+SX); int mi=1<<20;...
a.cc:2:1: error: 'string' does not name a type 2 | string S[808]; | ^~~~~~ a.cc: In function 'void solve()': a.cc:8:28: error: 'string' was not declared in this scope 8 | int i,j,k,l,r,x,y; string s; | ^~~~~~ a.cc:10:9: error: 'cin' was not declared in this scope ...
s730108716
p03725
C++
#include<bits/stdc++.h> using namespace std; #define int long long #define double long double #define fo(a,b) for(int a=0;a<b;a++) #define Sort(a) sort(a.begin(),a.end()) #define rev(a) reverse(a.begin(),a.end()) #define fi first #define se second #define sz size() #define bgn begin() #define en end() #define pb push_b...
a.cc: In function 'int main()': a.cc:522:9: error: no matching function for call to 'std::queue<std::pair<long long int, long long int> >::push(<brace-enclosed initializer list>)' 522 | f.push({e,0}); | ~~~~~~^~~~~~~ In file included from /usr/include/c++/14/queue:66, from /usr/include/x86_...
s244835807
p03725
C++
/* * じょえチャンネル * 高評価・チャンネル登録よろしくおねがいします! * https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ */ // C #ifndef _GLIBCXX_NO_ASSERT #include <cassert> #endif #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csi...
a.cc: In function 'void solve(long long int, long long int, long long int)': a.cc:352:18: error: continue statement not within a loop 352 | if(went[x][y])continue; | ^~~~~~~~
s160313391
p03725
C++
/* * じょえチャンネル * 高評価・チャンネル登録よろしくおねがいします! * https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ */ // C #ifndef _GLIBCXX_NO_ASSERT #include <cassert> #endif #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csi...
a.cc: In function 'void solve(long long int, long long int, long long int)': a.cc:352:12: error: 'i' was not declared in this scope 352 | if(went[i][j])continue; | ^ a.cc:352:15: error: 'j' was not declared in this scope 352 | if(went[i][j])continue; | ^ a.cc:352:18: error...
s445037163
p03725
C++
#include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(),(x).end() using ll = long long; using ld = long double; #define vpl vector<pair<long long,long long>> #define vl vector<long long> #define vvl vector<vector<long long>> #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define rep2(i, s, n) for (...
a.cc: In function 'int main()': a.cc:109:10: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript 109 | visit[sx][sy]=true; | ^
s025545473
p03725
C++
#include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(),(x).end() using ll = long long; using ld = long double; #define vpl vector<pair<long long,long long>> #define vl vector<long long> #define vvl vector<vector<long long>> #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define rep2(i, s, n) for (...
a.cc: In function 'int main()': a.cc:130:24: error: cannot convert 'std::pair<long long int, long long int>' to 'll' {aka 'long long int'} in initialization 130 | ll p=mp(nx,ny); | ^ | | | std::pair<long long int, l...
s897300015
p03725
C++
//#pragma GCC optimize(3) //#pragma comment(linker,"/stack:16777216") #include<iostream> #include<cstdio> #include<string> #include<vector> #include<set> #include<map> #include<list> #include<stack> #include<queue> #include<deque> #include<functional> #include<utility> #include<algorithm> #include<sstream> #include<cst...
a.cc: In function 'int main()': a.cc:126:18: error: 'a' was not declared in this scope 126 | string v;a | ^ a.cc:127:13: error: 'i' was not declared in this scope 127 | rep(i,4){ | ^ a.cc:60:30: note: in definition of macro 'rep' 60 | #define rep(a,b) for(...
s789029833
p03725
C++
#include <bits\stdc++.h> using namespace std; const int INF=0x3f3f3f3f,maxn=804; queue<int>q; int a[maxn][maxn],n,m,k,vis[maxn][maxn],sx,sy,mina; int lrud[5]={0,1,0,-1,0}; void bfs() { int i; vis[sx][sy]=0; q.push(sx);q.push(sy); while(!q.empty()) { int x=q.front();q.pop();int y=q.front();q.pop(); if(vis[x][...
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory 1 | #include <bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s086583402
p03725
C++
#include <bits\stdc++.h> using namespace std; const int INF=0x3f3f3f3f,maxn=804; queue<int>q; int a[maxn][maxn],n,m,k,vis[maxn][maxn],sx,sy,mina; int lrud[5]={0,1,0,-1,0}; void bfs() { int i; vis[sx][sy]=0; q.push(sx);q.push(sy); while(!q.empty()) { int x=q.front();q.pop();int y=q.front();q.pop(); if(vis[x][...
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory 1 | #include <bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s510654041
p03725
C++
//by spj_58 #include <bits/stdc++.h> using namespace std; #define REP(i,N) for(int (i)=0;i<(int)(N);i++) template <class T> bool minn(T &a,T b) { return (a > b ? (a = b, 1) : 0); } template <class T> bool maxn(T &a,T b) { return (a < b ? (a = b, 1) : 0); } const int dx[] = {0,0,-1,1}; const int dy[] = {-1,1,0,0}; i...
a.cc: In function 'int main()': a.cc:29:24: error: 'i' was not declared in this scope 29 | cin>>f[i]; | ^ a.cc:41:25: error: 'dis' was not declared in this scope; did you mean 'div'? 41 | dis[i][j] = 1e9; | ^~~ ...
s353627487
p03725
C++
//by spj_58 #include <bits/stdc++.h> using namespace std; #define REP(i,N) for(int (i)=0;i<(int)(N);i++) template <class T> bool minn(T &a,T b) { return (a > b ? (a = b, 1) : 0); } template <class T> bool maxn(T &a,T b) { return (a < b ? (a = b, 1) : 0); } int nceil(int a,int b) { return (a+b-1)/b; } int main(void)...
a.cc: In function 'int main()': a.cc:23:22: error: 'f' was not declared in this scope 23 | cin>>f[i]; | ^ a.cc:23:24: error: 'i' was not declared in this scope 23 | cin>>f[i]; | ^ a.cc:35:25: error: 'dis' was not declared in t...
s803616390
p03725
C++
//by spj_58 #include <bits/stdc++.h> using namespace std; #define REP(i,N) for(int (i)=0;i<(int)(N);i++) template <class T> bool minn(T &a,T b) { return (a > b ? (a = b, 1) : 0); } template <class T> bool maxn(T &a,T b) { return (a < b ? (a = b, 1) : 0); } int nceil(int a,int b) { return (a+b-1)/b; } int main(void)...
a.cc: In function 'int main()': a.cc:23:22: error: 'f' was not declared in this scope 23 | cin>>f[i]; | ^ a.cc:23:24: error: 'i' was not declared in this scope 23 | cin>>f[i]; | ^ a.cc:35:25: error: 'dis' was not declared in t...
s693210129
p03725
C++
#include<bits/stdc++.h> using namespace std; char c[107][107]; int n,m,k,pi,pj,a[107][107],mn=10000; bool vis[107][107]; int uint(int a,int b){ if(a%b!=0)return a/b+1;else return a/b; } void dfs(int p,int i,int j){ if(c[i][j]=='#')return; if(p==0)return; if(vis[i][j])return; else vis[i][j]=1; mn=min(mn,uint(a[i][...
a.cc:6:21: error: 'int uint(int, int)' redeclared as different kind of entity 6 | int uint(int a,int b){ | ^ In file included from /usr/include/stdlib.h:514, from /usr/include/c++/14/cstdlib:79, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42, ...
s319417967
p03725
C++
#include<bits/stdc++.h> using namespace std; char c[107][107]; int n,m,k,pi,pj,a[107][107],mn=10000; bool vis[107][107]; int uint(int a,int b){ if(a%b!=0)return a/b+1;else return a/b; } void dfs(int p,int i,int j){ if(c[i][j]=='#')return; if(p==0)return; if(vis[i][j])return; else vis[i][j]=1; mn=min(mn,uint(a[i][...
a.cc:6:21: error: 'int uint(int, int)' redeclared as different kind of entity 6 | int uint(int a,int b){ | ^ In file included from /usr/include/stdlib.h:514, from /usr/include/c++/14/cstdlib:79, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42, ...
s146351390
p03725
C++
#include<bits/stdc++.h> using namespace std; char c[107][107]; int n,m,k,pi,pj,a[107][107],mn=10000; bool vis[107][107]; int uint(int a,int b){ if(a%b!=0)return a/b+1;else return a/b; } void dfs(int p,int i,int j){ if(c[i][j]=='#')return; if(p==0)return; if(vis[i][j])return; else vis[i][j]=1; mn=min(mn,uint(a[i][...
a.cc:6:21: error: 'int uint(int, int)' redeclared as different kind of entity 6 | int uint(int a,int b){ | ^ In file included from /usr/include/stdlib.h:514, from /usr/include/c++/14/cstdlib:79, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42, ...
s622235047
p03725
C++
#include <bits/stdc++.h> // #include <iostream> // cout, endl, cin // #include <string> // string, to_string, stoi // #include <vector> // vector // #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound // #include <utility> // pair, make_pair // #include <tuple> // tuple, make_tuple // #incl...
a.cc: In function 'long long int ceili(long long int, long long int)': a.cc:82:28: error: expected ';' before '}' token 82 | return x / y + (x % y!=0)} | ^ | ; a.cc: In function 'bool solve()': a.cc:118:1: warning: no return statement in function re...
s541136908
p03725
C++
#include <bits/stdc++.h> // #include <iostream> // cout, endl, cin // #include <string> // string, to_string, stoi // #include <vector> // vector // #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound // #include <utility> // pair, make_pair // #include <tuple> // tuple, make_tuple // #incl...
a.cc: In function 'bool solve()': a.cc:112:28: error: 'ceili' was not declared in this scope; did you mean 'ceill'? 112 | chmin(ans, 1 + ceili(add, k)); | ^~~~~ | ceill a.cc:116:1: warning: no return statement in function returning non-void...
s121624284
p03725
C++
#include <bits/stdc++.h> // #include <iostream> // cout, endl, cin // #include <string> // string, to_string, stoi // #include <vector> // vector // #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound // #include <utility> // pair, make_pair // #include <tuple> // tuple, make_tuple // #incl...
a.cc: In function 'bool solve()': a.cc:96:28: error: 'y' was not declared in this scope 96 | int x = X.front(); y = Y.front(); X.pop(), Y.pop(); | ^ a.cc:114:1: warning: no return statement in function returning non-void [-Wreturn-type] 114 | } | ^
s986140474
p03725
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> Pii; typedef pair<ll,ll> Pll; #define rep(i,n) for (ll i=0;i<n;++i) #define rep2(i,a,b) for (ll i=a;i<b;++i) const ll MOD=1e9+7; const ll INF=1e9; const ll IINF=1e18; const double EPS=1e-8; const double pi=acos(-1); template<clas...
a.cc:52:28: error: stray '\16' in program 52 | if (nh<0||nh>=H<U+000E>||nw<0||nw>=W) continue; | ^~~~~~~~
s074601819
p03725
C++
#include<bits/stdc++.h> using namespace std; #define ll long long #define FOR(a,b) for(int i=a;i<=b;i++) #define FORBACK(a,b) for(int i=b;i>=a;i--) #define pb push_back #define mp make_pair #define sz size #define fi first #define se second typedef pair <int , int> ii; int r,c,k,ans; char arr[805][805]; vector<pair<int...
a.cc: In function 'int main()': a.cc:84:26: error: 'vec' was not declared in this scope 84 | int _r = vec.fi, _c = vec.se; | ^~~ a.cc:85:38: error: '_c' was not declared in this scope; did you mean '_r'? 85 | sol = min(sol , min4(_c - 1 , c - _c , _r ...
s740192127
p03725
C++
#include<bits/stdc++.h> using namespace std; #define ll long long #define FOR(a,b) for(int i=a;i<=b;i++) #define FORBACK(a,b) for(int i=b;i>=a;i--) #define pb push_back #define mp make_pair #define sz size #define fi first #define se second typedef pair <int , int> ii; int r,c,k,ans; char arr[805][805]; vector<pair<int...
a.cc:90:1: error: 'e' does not name a type; did you mean 'se'? 90 | e | ^ | se
s986039566
p03725
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0;i<n;i++) #define REPP(i,n) for(int i=1;i<=n;i++) const double PI = acos(-1); const double EPS = 1e-15; long long INF=(long long)1E17; #define i_7 (long long)(1E9+7) long mod(long a){ long long c=a%i_7; if(c>=0)return c; return c+i_7; } using namespace st...
a.cc: In function 'int main()': a.cc:106:11: error: 'class std::queue<std::pair<int, int> >' has no member named 'push_back' 106 | q.push_back(make_pair(i,j)); | ^~~~~~~~~
s887207241
p03725
C++
#include<bits/stdc++.h> using namespace std; long long h,w,k,stx,sty,dist[805][805],x[4]={0,0,1,-1},y[4]={1,-1,0,0},mini=1e9; char g[805][805]; void ff(long long a, long long b) { if(a==1 || a==h || b==1 || b==w || dist[a][b]>=k) { return; } for(long long i=0;i<4;i++) { if(g[a+x[i]][b+y[i]]=='.' && dist[a+x[i...
a.cc: In function 'int main()': a.cc:47:43: error: no matching function for call to 'max(int, long long int)' 47 | mini=min(mini,(max(0,i-1-1))/k+1); | ~~~^~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, from /usr/...
s624615656
p03725
C++
#include<bits/stdc++.h> using namespace std; #define SCD(t) scanf("%d",&t) #define SCLD(t) scanf("%ld",&t) #define SCLLD(t) scanf("%lld",&t) #define SCC(t) scanf("%c",&t) #define SCS(t) scanf("%s",t) #define SCF(t) scanf("%f",&t) #define SCLF(t) scanf("%lf",&t) #define MEM(a, b) memset(a, (b), sizeof(a)) #define FOR(...
a.cc:37:19: error: 'long long long' is too long for GCC 37 | typedef long long long long long32; | ^~~~ a.cc:37:24: error: 'long long long' is too long for GCC 37 | typedef long long long long long32; | ^~~~ a.cc:38:28: error: 'long long long' is too long for G...
s815250052
p03725
C++
//Littleboy123 Template 1.1 #include <bits/stdc++.h> using namespace std; //pragmas /* #pragma comment(linker, "/stack:200000000") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #pragma GCC target ("avx2") #pragma GCC optimization ("Ofast") #pragma GCC optimization ("unroll-loops") */ ...
a.cc: In function 'int main()': a.cc:139:71: error: expected ';' before 'lock' 139 | lompati[x+dr[i]][y+dc[i]] == 1 | ^ | ; ...
s527287952
p03725
C++
//Littleboy123 Template 1.1 #include <bits/stdc++.h> using namespace std; //pragmas /* #pragma comment(linker, "/stack:200000000") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #pragma GCC target ("avx2") #pragma GCC optimization ("Ofast") #pragma GCC optimization ("unroll-loops") */ ...
a.cc: In function 'int main()': a.cc:139:71: error: expected ';' before 'lock' 139 | lompati[x+dr[i]][y+dc[i]] == 1 | ^ | ; ...
s264396580
p03725
C++
#include<bits/stdc++.h> using namespace std; #define REPP(i,a,b,c) for(int i=a; i<=b; i+=c) #define REP(i,a,b) REPP(i,a,b,1) #define REVV(i,a,b,c) for(int i=a; i>=b; i-=c) #define REV(i,a,b) REVV(i,a,b,1) #define FOR(i,a) REP(i,0,(int)a-1) #define FORD(i,a) REV(i,(int)a-1,0) #define PB push_back #define POB pop_back #...
a.cc: In function 'int solve()': a.cc:70:15: error: no matching function for call to 'std::queue<std::pair<std::pair<int, int>, int> >::push(pii&)' 70 | q.push(st); | ~~~~~~^~~~ In file included from /usr/include/c++/14/queue:66, from /usr/include/x86_64-linux-gnu/c++/14/bits/s...
s287779412
p03725
C++
#include<iostream> #include<string> #include<cstdio> #include<vector> #include<cmath> #include<algorithm> #include<functional> #include<iomanip> #include<queue> #include<ciso646> #include<random> #include<map> #include<set> #include<complex> #include<bitset> #include<stack> #include<unordered_map> #include<utility> #in...
a.cc:20:10: fatal error: cxx-prettyprint/prettyprint.hpp: No such file or directory 20 | #include "cxx-prettyprint/prettyprint.hpp" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s903911843
p03725
C++
https://atcoder.jp/contests/agc014/standings#include<iostream> #include<string> #include<algorithm> #include<vector> #include<queue> #include<map> #include<math.h> #include<iomanip> #include<set> #include<numeric> #include<cstring> #include<cstdio> #include<functional> #include<bitset> #include<limits.h> #include<casse...
a.cc:1:1: error: 'https' does not name a type 1 | https://atcoder.jp/contests/agc014/standings#include<iostream> | ^~~~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11...
s891722249
p03725
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) using P=pair<int,int>; int inf=1e9; queue<P> que; vector<int>dx={0,0,1,-1}; vector<int>dy={1,-1,0,0}; int main(){ int h,w,k;cin>>h>>w>>k; vector<string>a(h); for(auto&& u:a)cin>>u; vector<vector<int>>d(h,vector<int>(w,inf)); rep(...
a.cc: In function 'int main()': a.cc:21:42: error: 's' was not declared in this scope 21 | if(d[x][y]==inf&&s[x][y]=='.' ){ | ^
s979857864
p03725
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) using P=pair<int,int>; int inf=1e9; queue<P> que; vector<int>dx={0,0,1,-1}; vector<int>dy={1,-1,0,0}; int main(){ int h,w,k;cin>>h>>w>>k; vector<string>a(h); for(auto&& u:a)cin>>u; vector<vector<int>>d(h,vector<int>(w,inf)); rep(...
a.cc: In function 'int main()': a.cc:21:42: error: 's' was not declared in this scope 21 | if(d[x][y]==inf&&s[x][y]=='.' ){ | ^
s642026592
p03725
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) using P=pair<int,int>; int inf=1e9; queue<P> que; vector<int>dx={0,0,1,-1}; vector<int>dy={1,-1,0,0}; int main(){ int h,w,k;cin>>h>>w>>k; vector<string>a(h); for(auto&& u:a)cin>>u; vector<vector<int>>d(h,vector<int>(w,inf)); rep(...
a.cc: In function 'int main()': a.cc:31:2: error: expected '}' at end of input 31 | } | ^ a.cc:10:11: note: to match this '{' 10 | int main(){ | ^
s599471511
p03725
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) using P=pair<int,int>; int inf=1e9; queue<P> que; vector<int>dx={0,0,1,-1}; vector<int>dy={1,-1,0,0}; int main(){ int h,w,k;cin>>h>>w>>k; vector<string>a(h); for(auto&& u:a)cin>>u; vector<vector<int>>d(h,vector<int>(w,inf)); rep(...
a.cc: In function 'int main()': a.cc:17:25: error: 'class std::queue<std::pair<int, int> >' has no member named 'top'; did you mean 'pop'? 17 | P z=que.top();que.pop(); | ^~~ | pop a.cc:28:23: error: no matching function for call to 'min(<br...
s322672220
p03725
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) using P=pair<int,int>; int inf=1e9; queue<P> que; vector<int>dx={0,0,1,-1}; vector<int>dy={1,-1,0,0}; int main(){ int h,w,k;cin>>h>>w>>k; vector<string>a(h); for(auto&& u:a)cin>>u; vector<vector<int>>d(h,vector<int>(w,inf)); rep(...
a.cc: In function 'int main()': a.cc:15:50: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(int&, int&)' 15 | rep(i,h)rep(j,w)if(a[i][j]=='S'){que.push(i,j);d[i][j]=0;} | ~~~~~~~~^~~~~ In file included from /usr/include/c++/14/que...
s923378289
p03725
C++
use std::cmp; use std::collections::VecDeque; const INF: i32 = 1e9 as i32; const DIR: [(i32, i32); 4] = [(0, -1), (0, 1), (-1, 0), (1, 0)]; fn main() { let s = std::io::stdin(); let mut sc = Scanner { stdin: s.lock() }; let h: usize = sc.read(); let w: usize = sc.read(); let k: i32 = sc.read(); ...
a.cc:13:26: error: too many decimal points in number 13 | let board: Vec<_> = (0..h).map(|_| sc.chars()).collect(); | ^~~~ a.cc:18:14: error: too many decimal points in number 18 | for i in 0..h { | ^~~~ a.cc:19:18: error: too many decimal points in number...
s262616050
p03725
C++
#include<bits/stdc++.h> using namespace std; bool use[800][800]; int dx={0,0,1,-1}; int dy={1,-1,0,0}; void dfs(int x,int y) { if(use[x][y] || s[x][y]=="#") return; if(x==0 || x==h-1 || y==0 || y==w-1) return res; else for(int i=0;i<4;i++) { dfs(x+dx[i],y+dy[i]); } } int close(string s[],int n,int w) { } int ...
a.cc:4:5: error: scalar object 'dx' requires one element in initializer 4 | int dx={0,0,1,-1}; | ^~ a.cc:5:5: error: scalar object 'dy' requires one element in initializer 5 | int dy={1,-1,0,0}; | ^~ a.cc: In function 'void dfs(int, int)': a.cc:8:25: error: 's' was not declared in this scope...
s420808455
p03725
C++
#include<bits/stdc++.h> using namespace std; const int maxn=5000; int n,m,k; char iomap[maxn][maxn]; pair<int,int> start; int step[maxn][maxn]; bool vis[maxn][maxn]; bool islegal(pair<int,int> p) { return (!p.first||!p.second||p.first>=n-1||p.second>=m-1); } void dfs(pair<int,int> p) { if(islegal(p)) { cout<<step[...
a.cc: In function 'void dfs(std::pair<int, int>)': a.cc:20:39: error: 'inf' was not declared in this scope; did you mean 'ynf'? 20 | if(step[p.first+2][p.second]==inf) | ^~~ | ynf a.cc:25:39: error: 'inf' was not declared...
s376263127
p03725
C++
#include<bits/stdc++.h> const int maxn=8e2+10; using namespace std; char a[maxn][maxn]; int stmp[maxn][maxn];//代表这是bfs的第几步 int direction[4][2]={1,0,-1,0,0,1,0,-1};//四个方向 int n,m,k; int ans=99999999; bool check(int x,int y)//判断这个点是否可行 { if(x>=0&&x<n&&y>=0&&y<m&&stmp[x][y]==0&&a[x][y]=='.') { return 1; ...
a.cc: In function 'int main()': a.cc:45:22: error: 'posi' was not declared in this scope 45 | int xx=x+posi[i][0]; | ^~~~
s942936927
p03725
C++
#include<bits/stdc++.h> using namespace std; const int INF = 1000000007; int di[4] = {-1, 0, 1, 0}; int dj[4] = {0, 1, -1, 0}; void dfs(int i, int j, vector<vector<bool> > &G, vector<pair<int, int> > &ans){ ans.push_back({i, j}); if(k == 0) return; for(int h = 0; h < 4; h++){ int ni = i + di[h]; ...
a.cc: In function 'void dfs(int, int, std::vector<std::vector<bool> >&, std::vector<std::pair<int, int> >&)': a.cc:11:8: error: 'k' was not declared in this scope 11 | if(k == 0) return; | ^ a.cc:18:33: error: 'k' was not declared in this scope 18 | dfs(ni, nj, G, ans, k - 1); |...
s704535623
p03725
C++
#include <iostream> #include <algorithm> #include <vector> #include <map> #include <set> #include <string> #include <cmath> #include <iomanip> #include <queue> #include <unordered_map> #include <unordered_set> #include <bitset> #include <climits> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i+...
a.cc: In function 'int main()': a.cc:56:5: error: 'memset' was not declared in this scope 56 | memset(dis, -1, sizeof(dis)); | ^~~~~~ a.cc:14:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 13 | #include <climits> +++ |+#include <cstring>...