submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s690023472
p03823
C++
#include<bits/stdc++.h> using namespace std; #define fs first #define sc second #define pb push_back #define mp make_pair #define eb emplace_back #define ALL(A) A.begin(),A.end() #define RALL(A) A.rbegin(),A.rend() typedef long long LL; typedef pair<LL,LL> P; const LL mod=1000000007; const LL LINF=1LL<<60; const int IN...
a.cc: In function 'int main()': a.cc:66:104: error: expected ';' before ')' token 66 | cout << (bit[0].sum(n+1) - bit[0].sum(la) + mod)%mod + (bit[1].sum(n+1) - bit[1].sum(lb) + mod)%mod)%mod << endl; | ^...
s535235339
p03823
C++
#include<iostream> #include<algorithm> #include<vector> #include<queue> #define lol(i,n) for(int i=0;i<n;i++) #define mod 1000000007 typedef long long ll; using namespace std; #define N 100010 ll v[N],n; class RangeSum{ public: vector<ll> cs; void Pb(ll x){ ll news=x+cs[cs.size()-1]; news%=mod; cs.push_back(ne...
a.cc: In member function 'void Surf::Update(int)': a.cc:31:32: error: 'x' was not declared in this scope 31 | if(v[i]>v[i-1])x=i; | ^
s601367523
p03823
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define sqr(x) ((x)*(x)) #define mp make_pair #define int long long #define uint unsigned inline char gc(){ static char buf[100000],*p1=buf,*p2=buf; return p1==p2&&(p2=(p1=buf)+fread(buf,1,100000,stdin),p1==p2)?EOF:*p1++; } #define gc getchar in...
a.cc: In function 'int main()': a.cc:55:34: error: expected ';' before ')' token 55 | cout<<(f[n]+g[n])%mod+mod)%mod; | ^ | ;
s820845430
p03823
C++
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) { Solver_agc009c solver = new Solver_agc009c(); solver.input(); solver.solve(); } } class FastScanner { BufferedReader br; StringTokenizer st; public FastScanner(Reader in) { br = new BufferedReader(in); } S...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.*; | ^~~~~~ 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.util.*; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: ...
s013562618
p03823
C++
werwerwer
a.cc:1:1: error: 'werwerwer' does not name a type 1 | werwerwer | ^~~~~~~~~
s153493349
p03823
C++
#include<bits/stdc++.h> #define N 400005 #define P 1000000007 #define ll long long #define inf ((ll)1e18) using namespace std; int n;ll A,B,a[N]; struct seg { int val[N],tg[N]; void mdy(int x,int l,int r,int p) { tg[x]=p;val[x]=(ll)p*(r-l+1)%P; } void dn(int x,int l,int r) { if (tg[x]!=-1) { int mid=l+...
a.cc: In member function 'int seg::qry(int, int, int, int, int)': a.cc:58:17: error: expected ';' before 'if' 58 | if (x<=mid) ans+=qry(k<<1,l,mid,x,y); | ^~
s051882921
p03823
C++
#include<bits/stdc++.h> using namespace std; typedef double db; typedef long long ll; #define w1 first #define w2 second #define ls (x<<1) #define rs (x<<1|1) #define pb push_back #define mid ((l+r)>>1) #define SZ(x) ((x).size()) #define All(x) (x).begin(),(x).end() #define rep(i,a,b) for(int (i)=(a);(i)<=(b);(i)++) #d...
a.cc: In function 'int main()': a.cc:70:28: error: no matching function for call to 'min(int, long int)' 70 | int pos=min(i-1,lower_bound(x,x+n+1,mind)-x-1); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, ...
s710899793
p03823
C++
#include<cstdio> #include<algorithm> using namespace std; #define ll long long inline ll read() { ll x;char c; while((c=getchar())<'0'||c>'9'); for(x=c-'0';(c=getchar())>='0'&&c<='9';)x=x*10+c-'0'; return x; } #define MN 100000 #define MOD 1000000007 ll s[MN+5]; int l[MN+5],f[MN+5][2],S[MN+5]; inline int mod(int x)...
a.cc: In function 'int main()': a.cc:28:30: error: no matching function for call to 'min(int, long int)' 28 | x=min(i-2,upper_bound(s,s+n+1,s[i]-b)-s-1); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, ...
s851538976
p03823
C++
#include<ctime> #include<iostream> #include<algorithm> #include<cstdio> #include<cstdlib> #include<cmath> #include<cstring> #include<cassert> #include<string> #include<sstream> #include<fstream> #include<deque> #include<queue> #include<vector> #include<map> #include<list> #include<stack> #include<set> #include<bitset...
a.cc: In function 'int main()': a.cc:103:9: error: reference to 'next' is ambiguous 103 | next[n-1][0]=next[n-1][1]=n-1; | ^~~~ In file included from /usr/include/c++/14/string:47, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/...
s509265724
p03823
C++
#include <cstdio> #include <cstring> #include <vector> #include <queue> #include <string> #include <algorithm> #include <iostream> #include <string> #include <map> #include <set> #include <functional> #include <iostream> #define INF 1000000007LL using namespace std; typedef long long ll; typedef pair<int,int> P; int n...
a.cc: In function 'll func(int, int)': a.cc:81:34: error: 'MOD' was not declared in this scope 81 | return (dp[v][prev]=(res%MOD)); | ^~~
s713076438
p03823
C
#include <stdio.h> int dp[2][200000 + 3]; int c[100000 + 1]; static inline int fg(int i, int j){ return (i < j) ? i : i+j ; } int main() { int n; int a; int b; scanf("%d", &n); scanf("%d", &a); scanf("%d", &b); int min_diff = (a<b)? b+1 : a+1; scanf("%d", &c[0]); for(int i=1; i<n; i++){ scanf("%...
main.c: In function 'main': main.c:20:21: error: 'mindiff' undeclared (first use in this function); did you mean 'min_diff'? 20 | if (c[i]-c[i-1]<mindiff) mindiff=c[i]-c[i-1]; | ^~~~~~~ | min_diff main.c:20:21: note: each undeclared identifier is reported only ...
s267518268
p03823
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <climits> #include <vector> #include <string> #include <queue> #include <deque> #include <list> #include <stack> #include <set> #include <map> #include <unordered_map> #include <algorithm> #define int long long #defin...
a.cc: In function 'int main()': a.cc:64:17: error: array must be initialized with a brace-enclosed initializer 64 | int dp[0] = 1; | ^
s599700350
p03823
C++
#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 RREP(i,n) for (int i=(n)-1;i>=0;i--) typedef long long LL; int N; LL A,B; LL S[100002]; LL dp[100002]; LL MOD=1000000007; const int MAX_N=10001; int bit[MAX_N+1]; int sum(int ...
a.cc: In function 'int main()': a.cc:35:9: error: 'cin' was not declared in this scope 35 | cin>>N; | ^~~ a.cc:49:16: error: 'cout' was not declared in this scope 49 | cout<<0<<endl; | ^~~~ a.cc:49:25: error: 'endl' was not declared in this scope 49 | ...
s469745065
p03823
C++
#include <bits/stdc++.h> #define pii pair <int, int> #define ll long long #define f first #define s second #define pb push_back using namespace std; const int N = 1e5 + 5; ll d[3][N]; ll p[N]; int main() { ll n, a, b; cin >> n >> a >> b; for (int i = 1; i <= n; ++i) { scanf("%lld", &p[i]); ...
a.cc: In function 'int main()': a.cc:54:51: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 54 | cout << (d[1][n] + d[2][n]) %= (int(1e9) + 7) << endl; | ~~~~~~~~~~~~~~~^~~~~~~
s442753795
p03823
C++
8 2 9 3 4 5 13 15 22 26 32
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 8 2 9 | ^
s461696791
p03823
C++
#include <iostream> #include <vector> #include <algorithm> #include <cstdlib> using namespace std; const int mod = 1e9 + 7; void upd(int &a, int b) { a += b; if (a >= mod) a -= mod; } int main() { int n; long long A, B; cin >> n >> A >> B; vector<long long> a(n); for (int i = 0; i < n; i++) { scanf("%lld", ...
a.cc: In function 'int main()': a.cc:33:17: error: 'memset' was not declared in this scope 33 | memset(dp1, 0, sizeof(dp1)); | ^~~~~~ a.cc:5:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 4 | #include <cstdlib> +...
s119929640
p03823
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; const int mod = 1e9 + 7; void upd(int &a, int b) { a += b; if (a >= mod) a -= mod; } int main() { int n; long long A, B; cin >> n >> A >> B; vector<long long> a(n); for (int i = 0; i < n; i++) { scanf("%lld", &a[i]); } if (n =...
a.cc: In function 'int main()': a.cc:32:17: error: 'memset' was not declared in this scope 32 | memset(dp1, 0, sizeof(dp1)); | ^~~~~~ a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include <algorithm> ...
s316916884
p03823
C++
#include<bits/stdc++.h> using namespace std; typedef long long int64; const int mod = 1e9 + 7; struct BinaryIndexedTree { vector< int > data; BinaryIndexedTree(int sz) { data.assign(++sz, 0); } int sum(int k) { int ret = 0; for(++k; k > 0; k -= k & -k) (ret += data[k]) %= mod; re...
a.cc: In function 'int main()': a.cc:59:16: error: 'j' was not declared in this scope 59 | for(; bb<j; bb++) dp2.add(bb, mod - dp2.get(bb)); | ^
s383410921
p03823
C++
#include <iostream> #include <fstream> #include <cstdio> #include <cmath> #include <vector> #include <cstring> #include <string> #include <set> #include <map> #include <stack> #include <queue> #include <algorithm> using namespace std; #define REP(i,n) for(int i=0; i<n; ++i) #define FOR(i,a,b) for(int i=a; i<=b; ++i) ...
a.cc: In function 'int main()': a.cc:66:10: error: reference to 'data' is ambiguous 66 | init(data); | ^~~~ In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, ...
s286974065
p03823
C++
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x<(to);x++) #define FORR(x,arr) for(auto& x:arr) #define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define ALL(a) (a.begin()),(a.end()) #define ZER...
a.cc: In function 'void solve()': a.cc:65:25: error: 'TA' was not declared in this scope; did you mean 'LA'? 65 | FOR(i,N+1) ret+=TA[i]+TB[i]; | ^~ | LA a.cc:65:31: error: 'TB' was not declared in this scope; did you mean 'LB'? 65 | FOR(i...
s477234902
p03823
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,a) FOR(i,0,a) typedef long long ll; const int MAX_N=1e5,MOD=1e9+7; const ll INF=(1e18)+4; int N; ll A[2]; ll S[MAX_N]; ll memo[MAX_N]; int next[MAX_N][2]; ll diff[MAX_N]; int st_size; ll dat[MAX_N*4]; void init()...
a.cc: In function 'int dfs(int)': a.cc:54:24: error: reference to 'next' is ambiguous 54 | int ne=next[n][g]; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:66, from /usr/include/c++/14/algorithm:60, from /usr/includ...
s742569475
p03823
C++
// Template {{{ #include <bits/stdc++.h> #define REP(i,n) for(int i=0; i<(int)(n); ++i) using namespace std; typedef long long LL; #ifdef LOCAL #include "contest.h" #else #define error(args...) #endif const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1}; inline bool valid(int x, int w) { return 0 <= x &&...
a.cc:207:9: warning: "error" redefined 207 | #define error(...) | ^~~~~ a.cc:10:9: note: this is the location of the previous definition 10 | #define error(args...) | ^~~~~ a.cc:208:9: warning: "assert" redefined 208 | #define assert(...) | ^~~~~~ In file included from /...
s279225484
p03823
C++
#include <bits/stdc++.h> using namespace std; const int mod = 1000000007; int N; long long A, B; vector<long long> S; bool visited[100001]; long long memo[100001]; bool g(long long x, long long y, long long z) { if (y < 0) return true; return x - y >= z; } unordered_map<long long, unordered_map<long long, int>> memo...
a.cc: In function 'int h(long long int, long long int, int)': a.cc:20:86: error: expected ';' before '}' token 20 | if (memo_h.count(x) && memo_h[x].count(y)) { pp = memo_h[x][y]; break } | ^~ | ...
s150467191
p03823
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; ll mod = 1e9+7, inf = 2e18; ll n, a, b, x[100005], za, zb; vector<ll> ca, cb; ll getA (ll X) { if(X < za) return 0; if(za) return (ca[X] - ca[za-1] + mod) % mod; return ca[X]; } ll getB (ll X) { if(X < zb) return 0; if(zb) return (cb[X] - cb[zb-1...
a.cc: In function 'int main()': a.cc:30:28: error: no matching function for call to 'min(long int, long long int)' 30 | ll fa = min(upper_bound(x, x+n+1, x[i]-a) - x - 1, i - 2ll); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c...
s463729917
p03823
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; ll mod = 1e9+7, inf = 2e18; ll n, a, b, x[100005], za, zb; vector<ll> ca, cb; ll getA (ll X) { if(X < za) return 0; if(za) return (ca[X] - ca[za-1] + mod) % mod; return ca[X]; } ll getB (ll X) { if(X < zb) return 0; if(zb) return (cb[X] - cb[zb-1...
a.cc: In function 'int main()': a.cc:30:28: error: no matching function for call to 'min(long int, int)' 30 | ll fa = min(upper_bound(x, x+n+1, x[i]-a) - x - 1, i - 2); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorith...
s852789435
p03824
C++
#include<iostream> #include<algorithm> #include<vector> #include<unordered_map> using namespace std; typedef long long ll; using namespace std; #define N 100010 vector<ll> t[N]; //bool dead[N]; class DivideTree{ public: bool dead[N]; class FindCentroid{ public: ll res,n; ll alt(ll x,ll from){ ...
a.cc: In member function 'll DivideTree::FindCentroid::alt(ll, ll)': a.cc:19:14: error: invalid use of non-static data member 'DivideTree::dead' 19 | if(dead[x])return 0; | ^~~~ a.cc:14:8: note: declared here 14 | bool dead[N]; | ^~~~ a.cc: In member function 'll Divide...
s948946956
p03824
C++
Copy #include <bits/stdc++.h> using namespace std; const int N=200010; int i,j,k,n,m,x,y,t,b[20]; int fi[N*2],ne[N*2],la[N*2],a[N*2],w[N]; int f[N][20],g[N][20]; void add(int x,int y){ k++;a[k]=y; if (fi[x]==0)fi[x]=k;else ne[la[x]]=k; la[x]=k; } void dfs(int x,int fa){ for (j=0;j<20;j++)f[x][j]=1; for (int i=fi[...
a.cc:2:1: error: 'Copy' does not name a type 2 | Copy | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:3: /usr/include/c++/14/...
s897125692
p03824
C++
#include<bits/stdc++.h> using namespace std; const int N=2e5+10; int n,w[N],head[N],next[N]; void add(int f,int t){ static int cnt=0; w[++cnt]=t; next[cnt]=head[f]; head[f]=cnt; } int dep[N]; void dfs(int x,int fa){ for (int i=head[x];i;i=next[i]) if (w[i]!=fa) dep[w[i]]=dep[x]+1,dfs(w[i],x); } int main() { scan...
a.cc: In function 'void add(int, int)': a.cc:8:9: error: reference to 'next' is ambiguous 8 | next[cnt]=head[f]; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:66, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/...
s892229806
p03824
C++
#include <cstdio> #include <algorithm> #define repu(i,x,y) for (int i=x; i<=y; ++i) using namespace std; int n,dep[100100],ans; struct edge { int v; edge *nxt; } pool[200100],*tp=pool,*fst[100100]; int dfs(int x,int fa) { int ret=x; dep[x]=dep[fa]+1; for (edge *i=fst[x]; i; i=i->nxt) if (i...
a.cc: In function 'int dfs(int, int)': a.cc:24:17: error: expected ';' before '}' token 24 | return ret;0 | ^ | ; 25 | } | ~
s276584283
p03824
C++
#include <bits/stdc++.h> using namespace std; static vector<int> e[2][100000]; int recon(int i,int p,bool b,int &N) { //printf("%d %d %d\n",i,p,N); int t=N; e[!b][t]=vector<int>(0); N++; int S=0; for(int x=0;x<e[b][i].size();x++){ if(e[b][i][x].size()==1){ S++; } } for(int x=0;x<e[b][i...
a.cc: In function 'int recon(int, int, bool, int&)': a.cc:14:19: error: request for member 'size' in 'e[((int)b)][i].std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 14 | if(e[b][i][x].size()=...
s799559477
p03824
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i,a,b) for (int i = (a); i < (b); i++) #define RFOR(i,b,a) for (int i = (b)-1; i >= (a); i--) #define ITER(it,a) for (__typeof(a.begin()) it = a.begin(); it != a.end(); it++) #define FILL(a,value) memset(a, value, sizeof(a)) #define SZ(a) (int)a.size() #define...
a.cc: In function 'void go(int, int, int, int)': a.cc:50:19: error: too many arguments to function 'void go(int, int, int, int)' 50 | go(to, x, val + diff, diff, mx); | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:29:6: note: declared here 29 | void go(int x, int p, int val, int diff...
s333014699
p03824
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i,a,b) for (int i = (a); i < (b); i++) #define RFOR(i,b,a) for (int i = (b)-1; i >= (a); i--) #define ITER(it,a) for (__typeof(a.begin()) it = a.begin(); it != a.end(); it++) #define FILL(a,value) memset(a, value, sizeof(a)) #define SZ(a) (int)a.size() #define...
a.cc: In function 'void go(int, int, int, int)': a.cc:50:19: error: too many arguments to function 'void go(int, int, int, int)' 50 | go(to, x, val + diff, diff, mx); | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:29:6: note: declared here 29 | void go(int x, int p, int val, int diff...
s688634706
p03824
C++
#include <iostream> #include <vector> using namespace std; class Tree { public: Tree(int size): m_edges(size), m_size(size) {} int size() const { return m_edges.size(); } void addEdge(int x, int y) { m_edges[x].emplace_back(y); m_edges[y].emplace_bac...
a.cc: In member function 'int Tree::dfsUninity(int)': a.cc:46:34: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)' 46 | m_edges[x].erase(find(m_edges[x].begin(), m_edges[x].end(), center)); | ~~~~^~~~~~~~~~~~~~...
s200764549
p03824
C++
#include<algorithm> #include<cmath> #include<iomanip> #include<iostream> #include<map> #include<numeric> #include<queue> #include<set> #include<sstream> #include<vector> using namespace std; using uint = unsigned int; using ll = long long; const int M = 1e9 + 7; const ll MLL = 1e18L + 9; #pragma unused(M) #pragma unuse...
a.cc: In function 'int main()': a.cc:59:5: error: 'printd' was not declared in this scope; did you mean 'prints'? 59 | printd(d); | ^~~~~~ | prints
s546595234
p03825
Java
na j jvaivjva
Main.java:1: error: class, interface, enum, or record expected na j jvaivjva ^ 1 error
s760950673
p03825
Java
jviva
Main.java:1: error: reached end of file while parsing jviva ^ 1 error
s592908260
p03825
C++
//Zory-2020 #include<bits/stdc++.h> using namespace std; typedef long long ll; // typedef __int128 ll; typedef pair<int,int> pii; typedef pair<ll,ll> pll; #define FR first #define SE second #define MP make_pair #define PB push_back #define vc vector #define db double #define all(x) (x).begin(),(x).end() #define sz(x) (...
a.cc:72:8: error: ambiguating new declaration of 'int mine::main()' 72 | signed main() | ^~~~ a.cc:63:14: note: old declaration 'void mine::main()' 63 | void main() | ^~~~ a.cc: In function 'int mine::main()': a.cc:83:1: warning: no return statement in function returning no...
s025763416
p03825
C++
/* Author: zxy_hhhh date: 2019/12/10 */ #include<cstdio> #include<cstring> #include<algorithm> #include<cctype> #include<cmath> #include<set> #include<vector> #include<map> #include<queue> #include<iostream> #define ll long long inline ll rd() { ll _x=0;int _ch=getchar(),_f=1; for(;!isdigit(_ch)&&(_ch!='-')&&(_ch!=...
a.cc: In function 'int main()': a.cc:34:43: error: 'f' was not declared in this scope 34 | for(int j=0;j<=m;j++) if (f[i][j]){ | ^
s565094613
p03825
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; #define sqr(x) ((x)*(x)) #define mp make_pair #define uint unsigned #define PI pair<int,int> inline char gc(){ static char buf[100000],*p1=buf,*p2=buf; return p1==p2&&(p2=(p1=buf)+fread(buf,1,100000,stdin),p1==p2)...
a.cc: In function 'int main()': a.cc:47:42: error: 'nxt' was not declared in this scope 47 | for(int i=n;i;i--)if((n-i)%jb==0)nxt[i]=i; else nxt[i]=nxt[i+1]; | ^~~ a.cc:47:57: error: 'nxt' was not declared in this scope 47 | for(int i=n;i;i--)if((n-i)...
s612085873
p03825
C++
#include <cstdio> #include <vector> #include <string> using namespace std; const int MOD = 1e9 + 7; int dp[2001][2001]; int dfs(int a, int b, int k) { if (a + b == 1) return dp[a][b] = 1; if (a + b == k) { if (a == k || b == k) return dp[a][b] = 0; return dp[a][b] = 1;...
a.cc: In function 'int main()': a.cc:26:9: error: 'memset' was not declared in this scope 26 | memset(dp, -1, sizeof dp); | ^~~~~~ a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include <string> +++ |+#include <cstri...
s128220547
p03825
C++
#include <cstdio> #include <vector> using namespace std; const int MOD = 1e9 + 7; int dp[2001][2001]; int dfs(int a, int b, int k) { if (a + b == 1) return dp[a][b] = 1; if (a + b == k) { if (a == k || b == k) return dp[a][b] = 0; return dp[a][b] = 1; } ...
a.cc: In function 'int main()': a.cc:25:9: error: 'memset' was not declared in this scope 25 | memset(dp, -1, sizeof dp); | ^~~~~~ a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include <vector> +++ |+#include <cstri...
s238641100
p03825
C++
include<stdio.h> #include<algorithm> using namespace std; int n, m, K, L, S[30010]; long long D[4010][2010], Mod = 1000000007, Res; int main(){ scanf("%d%d%d",&n,&m,&K); if(n>m)swap(n,m); L = (n+m-1)/(K-1); int i, j; for(i=0;i<=n;i++)D[0][i] = 1; for(i=1;i<=L;i++){ for(j=0;j<=n;j++){ ...
a.cc:1:1: error: 'include' does not name a type 1 | include<stdio.h> | ^~~~~~~ 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 __gn...
s242518799
p03826
C++
#include <bits/stdc++.h> using namespace std; using pp=pair<int, int>; int main() { int a, b, c, d; int>>a>>b>>c>>d; cout << max(a*b, c*d) << endl; }
a.cc: In function 'int main()': a.cc:7:6: error: expected unqualified-id before '>>' token 7 | int>>a>>b>>c>>d; | ^~
s202330920
p03826
C++
#include<iostream> using namespace std; int main() { int A,B,C.D; cin>>A>>B>>C>>D; if(A*B>C*D){ cout<<A*B; } else{ cout<<C*D; } }
a.cc: In function 'int main()': a.cc:5:12: error: expected initializer before '.' token 5 | int A,B,C.D; | ^ a.cc:6:14: error: 'C' was not declared in this scope 6 | cin>>A>>B>>C>>D; | ^ a.cc:6:17: error: 'D' was not declared in this scope 6 | cin>>A>>B>>C>>D; ...
s872660159
p03826
C++
#include<iostream> #include<string> #include<algorithm> #include<vector> #include<set> #include<iomanip> #define pi 3.14159265358979323846 #define ll long long #define rep(i, a, n) for(int i = a; i < n; i++) using namespace std; int main(){ int a, b, c, d; cin >> a >> b >> c >> d; a = a * b; c = c * d; if(a >...
a.cc: In function 'int main()': a.cc:17:14: error: expected primary-expression before '<<' token 17 | cout << << "\n"; | ^~
s543731482
p03826
C++
#inclu de<bits/stdc++.h> using namespace std; int main(){ long int a,b,c,d; cin>>a>>b>>c>>d; if((a*b)>(c*d)) cout<<a*b; else cout<<c*d; return 0; }
a.cc:1:2: error: invalid preprocessing directive #inclu; did you mean #include? 1 | #inclu de<bits/stdc++.h> | ^~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin>>a>>b>>c>>d; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header...
s663929050
p03826
Java
(defun area (h w) (* h w)) (write (max (area (read) (read)) (area (read) (read))))
Main.java:1: error: class, interface, enum, or record expected (defun area (h w) (* h w)) ^ 1 error
s109951518
p03826
C++
#include <iostream> int main() { int A, B, C, D, area; std::cin >> A >> B >> C >> D; if(A * B >= C * D) { area = A * B; } else { area = C * D } std::cout << area; return 0; }
a.cc: In function 'int main()': a.cc:14:17: error: expected ';' before '}' token 14 | area = C * D | ^ | ; 15 | } | ~
s430498842
p03826
C
#include <stdio.h> int main() { int a, b, c, d, i, f; scanf("%d %d %d %d", &a, &b, &c, &d); i = a*b; f = c*d; if(e>f) { printf("%d", i); } else { printf("%d", f); } return 0; }
main.c: In function 'main': main.c:9:8: error: 'e' undeclared (first use in this function) 9 | if(e>f) | ^ main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
s346399998
p03826
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b , c, d ; cin >> a >> b >> c >> d; cout << (a*b < c*d ? c*d : a*b) << endl;
a.cc: In function 'int main()': a.cc:7:43: error: expected '}' at end of input 7 | cout << (a*b < c*d ? c*d : a*b) << endl; | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s939995919
p03826
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b , c, d ; cin >> a >> b >> c >> d; cout << (a*b<c*d ? c*d : a*b) << endl;
a.cc: In function 'int main()': a.cc:7:41: error: expected '}' at end of input 7 | cout << (a*b<c*d ? c*d : a*b) << endl; | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s864759702
p03826
C
#include <stdio.h> int main(void){ long long A,B,C,D; scanf("%lld %lld %lld %lld",&N); if(A*B<=C*D){ printf("%lld",C*D); } else printf("%lld",A*B); return 0; }
main.c: In function 'main': main.c:6:32: error: 'N' undeclared (first use in this function) 6 | scanf("%lld %lld %lld %lld",&N); | ^ main.c:6:32: note: each undeclared identifier is reported only once for each function it appears in
s413139927
p03826
C
#include <stdio.h> int main(void){ long long A,B,C,D; scanf("%lld %lld %lld %lld",&N); if(A*B<=C*D){ printf("%lld",C*D); } else printf("lld",A*B); return 0; }
main.c: In function 'main': main.c:6:32: error: 'N' undeclared (first use in this function) 6 | scanf("%lld %lld %lld %lld",&N); | ^ main.c:6:32: note: each undeclared identifier is reported only once for each function it appears in
s635056712
p03826
C++
#include<iostream> #include<string> #include<algorithm> #include<vector> #include<set> #include<iomanip> #define rep(i, a, n) for(int i = a; i < n; i++) using namespace std; int main(){ int a, b, c, d; cin >> a >> b >> c << d; int e = a * b, f = c * d; if(e < f){ cout << f << "\n"; } else{ cout << e...
a.cc: In function 'int main()': a.cc:11:22: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 11 | cin >> a >> b >> c << d; | ~~~~~~~~~~~~~~~~~~ ^~ ~ | | | | | in...
s650940866
p03826
Java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextLine(); int b = sc.nextLine(); int c = sc.nextLine(); int d = sc.nextLine(); int e = a * b; int f = c * d; i...
Main.java:8: error: incompatible types: String cannot be converted to int int a = sc.nextLine(); ^ Main.java:9: error: incompatible types: String cannot be converted to int int b = sc.nextLine(); ^ Main.java:10: error: incompatible types: String cann...
s096400418
p03826
Java
import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt() System.out.println(a * b >= c * d ? a * b : c * d); } }
Main.java:9: error: ';' expected int d = sc.nextInt() ^ 1 error
s211523544
p03826
C++
#include <bits/stdc++.h> using namespace std; int main(void){ string a, b, c, d; cin >> a >> b >> c >> d ; /* if(a - b >= 0){ cout << b * c + ( a - b ) * d << endl; } else { cout << a * c << endl; } */ cout << max(a * b, c * d) << endl; return 0; }
a.cc: In function 'int main()': a.cc:16:19: error: no match for 'operator*' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 16 | cout << max(a * b, c * d) << endl; | ~ ^ ~ | | | ...
s493871769
p03826
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C,D; cin>>A>>B>>C>>D; int x=A*B; int y=C*D; if(x>=y){ cout<<x<<endl; if(x<<y){ cout<<y<<endl; }
a.cc: In function 'int main()': a.cc:15:2: error: expected '}' at end of input 15 | } | ^ a.cc:10:9: note: to match this '{' 10 | if(x>=y){ | ^ a.cc:15:2: error: expected '}' at end of input 15 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s099803515
p03826
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int A, B, C, D; cin >> A >> B >> C >> D; int ans1 = A * B; int ans2 = C * D; int a = (ans1 > ans2;) int b = (ans2 > ans1;) int c = (ans1 = ans2;) if (a) { cout << ans1 <<endl; } if(b) { ...
a.cc: In function 'int main()': a.cc:9:25: error: expected ')' before ';' token 9 | int a = (ans1 > ans2;) | ~ ^ | ) a.cc:9:26: error: expected primary-expression before ')' token 9 | int a = (ans1 > ans2;) | ^ a.cc...
s811770152
p03826
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int A, B, C, D, a, b; cin >> A >> B >> C >> D; int ans1 = A * B; int ans2 = C * B; int a = ans1 > ans2; int b = ans2 > ans2; if (a) { cout << ans1 <<endl; } if(b); { cout << ans2 <<end...
a.cc: In function 'int main()': a.cc:9:9: error: redeclaration of 'int a' 9 | int a = ans1 > ans2; | ^ a.cc:5:21: note: 'int a' previously declared here 5 | int A, B, C, D, a, b; | ^ a.cc:10:9: error: redeclaration of 'int b' 10 | int b = ans2 > ans2; ...
s564612455
p03826
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(a * b.c * d) << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:23: error: request for member 'c' in 'b', which is of non-class type 'int' 7 | cout << max(a * b.c * d) << endl; | ^
s193801950
p03826
C++
#include<iostream> uisng namespace std; int main(){ int a,b,c,d; cin >> a >> b >> c >> d; cout << max(a*b,c*d) << endl; }
a.cc:3:1: error: 'uisng' does not name a type 3 | uisng namespace std; | ^~~~~ a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> a >> b >> c >> d; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/i...
s253637563
p03826
C++
#include<bits/stdc++.h> using namespace std; int main{ int a , b , c , d; cin >> a >> b >> c >> d; cout << max(a * b , c * d) << endl; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:3: error: expected primary-expression before 'int' 5 | int a , b , c , d; | ^~~ a.cc:5:3: error: expected '}' before 'int' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6...
s882408836
p03826
C++
#include<bits/c++.h> using namespace std; int main{ int a , b , c , d; cin >> a >> b >> c >> d; cout << max(a * b , c * d) << endl; }
a.cc:1:9: fatal error: bits/c++.h: No such file or directory 1 | #include<bits/c++.h> | ^~~~~~~~~~~~ compilation terminated.
s990693538
p03826
C++
#include<bits/stdc++.h> using namespace std; int main(){ int. a,b,c,d; cin>>a>>b>>c>>d; if(a*b>=c*d){ cout<<a*b<<endl; } else{ cout<<c*d<<endl; } }
a.cc: In function 'int main()': a.cc:4:6: error: expected unqualified-id before '.' token 4 | int. a,b,c,d; | ^ a.cc:5:8: error: 'a' was not declared in this scope 5 | cin>>a>>b>>c>>d; | ^ a.cc:5:11: error: 'b' was not declared in this scope 5 | cin>>a>>b>>c>>d; | ...
s202355815
p03826
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c, d; cin >> a, b. c, d; int e, f; e = a * b; f = c * d; if (e >= f){ cout << e << endl; } else { cout << f << endl; } }
a.cc: In function 'int main()': a.cc:7:18: error: request for member 'c' in 'b', which is of non-class type 'int' 7 | cin >> a, b. c, d; | ^
s321534694
p03826
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c, d; cin >> a, b. c, d; int e, f; e = a * b; f = c * d; if (e > f){ cout << e << endl; } else { cout << f << endl; } cout << s << endl; }
a.cc: In function 'int main()': a.cc:7:18: error: request for member 'c' in 'b', which is of non-class type 'int' 7 | cin >> a, b. c, d; | ^ a.cc:20:13: error: 's' was not declared in this scope 20 | cout << s << endl; | ^
s239480077
p03826
C++
#include<bits/stdc++.h> using namespace std; int main() { int a, b, c, d, r1, r2; cin >> a >> b >> c >> d; r1 = a * b; r2 = c * d; if (r1 >= r2) { cout << r1 << endl; } else { cout << r2 << endl: } return 0; }
a.cc: In function 'int main()': a.cc:13:23: error: expected ';' before ':' token 13 | cout << r2 << endl: | ^ | ;
s838091314
p03826
C++
#include<bits/stdc++.h> using namespace std; int main() { int a, b, c, d, r1, r2; cin >> a >> b >> c >> d; r1 = a * b; r2 = c * d; if (r1 >= r2) { cout << r1 << end; } else { cout << r2 << endl: } return 0; }
a.cc: In function 'int main()': a.cc:11:16: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 11 | cout << r1 << end; | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, from /usr/include/c+...
s386212878
p03826
C
#include<stdio.h> int main() { int A,B,C,D; scanf("%d%d%d%d",&A,&B,&C,&D); if((A*B==C*D)||(A*B>C*D))rintf("%d\n",A*B); else if(A*B<C*D)printf("%d\n",C*D); return 0; }
main.c: In function 'main': main.c:9:27: error: implicit declaration of function 'rintf' [-Wimplicit-function-declaration] 9 | if((A*B==C*D)||(A*B>C*D))rintf("%d\n",A*B); | ^~~~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'rintf' 1 | #include<stdio.h> +++...
s299887909
p03826
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++) #define VL vector<ll> #define VS vector<string> #define VB vector<bool> #define VP vector<pair<ll,ll>> #define VVL vector<vector<ll>> #define VVP vector<vector<pair<ll,ll>>> ...
a.cc: In function 'int main()': a.cc:16:8: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'll' {aka 'long long int'}) 16 | cin<<A<<B<<C<<D; | ~~~^~~ | | | | | ll {aka long long int} | std::istream {aka std::bas...
s579567771
p03826
C++
#include<iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; if(a * b > c * d) cout << a * b; else cout << c * d;
a.cc: In function 'int main()': a.cc:9:22: error: expected '}' at end of input 9 | else cout << c * d; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s861215197
p03826
C++
#include <iostream> using namespace std; void ABC52(void); int main(void){ ABC52(); return 0; } void ABC52(void){ int a,b,c,d; cin >> a>>b>>c>>d; if(a*b>c*d)cout<<a*b<<endl; else acout<<c*d<<endl; }
a.cc: In function 'void ABC52()': a.cc:14:10: error: 'acout' was not declared in this scope 14 | else acout<<c*d<<endl; | ^~~~~
s602001252
p03826
C++
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include<set> #include<map> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << maxi(a*b,c*d); cout << endl; }
a.cc: In function 'int main()': a.cc:14:13: error: 'maxi' was not declared in this scope 14 | cout << maxi(a*b,c*d); | ^~~~
s641436136
p03826
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>x>>c>>d; int x,y x=a*b,y=c*d; cout<<max(x,y)<<endl; }
a.cc: In function 'int main()': a.cc:6:11: error: 'x' was not declared in this scope 6 | cin>>a>>x>>c>>d; | ^ a.cc:8:5: error: expected initializer before 'x' 8 | x=a*b,y=c*d; | ^ a.cc:9:15: error: 'y' was not declared in this scope 9 | cout<<max(x,y)<<endl; | ...
s130536207
p03826
C++
#include <iostream> using namespae std; int main(){ int a,b,c,d; cin >> a >> b >> c >> d; if(a*b > c * d){ cout << a * b << endl; } else{ cout << c * d << endl; } return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namespae' 2 | using namespae std; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> a >> b >> c >> d; | ^~~ | std::cin In file included from a...
s315955201
p03826
C
#include<stdio.h> int main(void){ int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); int mul_ab,mul_cd; mul_ab=a*b; mul_cd=c*d; int max=0; if(mul_ab<=mul_cd) max=mul_cd; if(mul_ab>=mul_cd) max=mul_ab; printf("%d",ans); return 0; }
main.c: In function 'main': main.c:11:15: error: 'ans' undeclared (first use in this function) 11 | printf("%d",ans); | ^~~ main.c:11:15: note: each undeclared identifier is reported only once for each function it appears in
s736863948
p03826
C++
#include<bits/stdc++.h> using namespace std; int a,b,c,d,e,f; int main() { cin>>a>>b>>c>>d; ← e=a*b; f=c*d; if(e>f) cout<<e<<endl; else cout<<f<<endl; }
a.cc:7:33: error: extended character ← is not valid in an identifier 7 | cin>>a>>b>>c>>d; ← | ^ a.cc: In function 'int main()': a.cc:7:33: error: '\U00002190' was not declared in this scope 7 | cin>>a>>b>>c>>d; ← | ...
s110168847
p03826
C++
#include<bits/stdc++.h> using namespace std; int main{ int a,b,c,d; cin>>a>>b>>c>>d; cout<<(a*b >=c*d ? a*b:c*d)<<endl; return 0; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:9: error: expected primary-expression before 'int' 5 | int a,b,c,d; | ^~~ a.cc:5:9: error: expected '}' before 'int' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ ...
s288955656
p03826
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n); for(int i = 0;i<n;++i) using ll = long long; using P = pair<int,int>; int main(){ int a,b,c,d; cin << a << b << c << d; cout << max(a*b,c*d) << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 9 | cin << a << b << c << d; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:9:7: note: can...
s274898830
p03826
C++
a, b, c, d = map(int, input().split()) if a*b>c*d: print(a*b) elif a*b==c*d: print(c*d) else: print(a*b)
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c, d = map(int, input().split()) | ^
s490586717
p03826
C++
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define INF 1999999999 #define MODA 1000000007 int main() { // freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); ios::sync_with_stdio(fals cin.tie(0); int a, b, c, d; cin >> a >> b >> c >> d; int si...
a.cc: In function 'int main()': a.cc:12:26: error: 'fals' was not declared in this scope; did you mean 'fabs'? 12 | ios::sync_with_stdio(fals cin.tie(0); | ^~~~ | fabs
s477746502
p03826
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,,c,d; cin>>a>>b>>c>>d; cout<<max(a*b,c*d)<<endl; }
a.cc: In function 'int main()': a.cc:5:11: error: expected unqualified-id before ',' token 5 | int a,b,,c,d; | ^
s564895820
p03826
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C,D; cin >> A >> B >> C >> D; if(A*B>C*D){ cout << A*B << endl; } else if(A*B<C*D){ cout << C*D << endl; }
a.cc: In function 'int main()': a.cc:13:2: error: expected '}' at end of input 13 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s964509284
p03826
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C,D; cin >> A >> B >> C >> D; if(A*B>C*D){ cout << A*B << endl; }
a.cc: In function 'int main()': a.cc:10:2: error: expected '}' at end of input 10 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s380322060
p03826
C++
#include<bits/stdc++.h> using namespace std; int32_t main() { c_p_c(); int a,b,c,d; cin>>a>>b>>c>>d; if((a*b)>(c*d)) { cout<<(a*b); } else if((a*b)<(c*d)) { cout<<(c*d); } else { cout<<(a*b); } return 0; }
a.cc: In function 'int32_t main()': a.cc:5:9: error: 'c_p_c' was not declared in this scope 5 | c_p_c(); | ^~~~~
s019429145
p03826
C++
#include <iostream> using namespace std ; int main () { int A,B ; cin >> A,B ; area = A*B*2 ; cout << Area ; return 0;
a.cc: In function 'int main()': a.cc:7:1: error: 'area' was not declared in this scope 7 | area = A*B*2 ; | ^~~~ a.cc:8:9: error: 'Area' was not declared in this scope 8 | cout << Area ; | ^~~~ a.cc:10:10: error: expected '}' at end of input 10 | return 0; | ^ a.cc:4:1: no...
s329184405
p03826
C++
#include <iostream> using namespace std ; int main () { int A,B ; cin >> A,B ; area = A*B*2 ; cout << Area ; return 0;
a.cc: In function 'int main()': a.cc:7:1: error: 'area' was not declared in this scope 7 | area = A*B*2 ; | ^~~~ a.cc:8:9: error: 'Area' was not declared in this scope 8 | cout << Area ; | ^~~~ a.cc:10:10: error: expected '}' at end of input 10 | return 0; | ^ a.cc:4:1: no...
s114021102
p03826
C++
#include <bits/stdc++.h> #include <math.h> #define REP(i, n) for(int i = 0; i < (n); i++) #define ALL(v) (v).begin(), (v).end() using namespace std; typedef long long ll; typedef pair<int, int> P; const int INF = 1001001001; const int mINF = -1001001001; int main() int A,B,C,D; cin >> A >> B >> C >> D; if(A*B<C*D) {...
a.cc:13:1: error: expected initializer before 'int' 13 | int A,B,C,D; | ^~~ a.cc:14:1: error: 'cin' does not name a type 14 | cin >> A >> B >> C >> D; | ^~~ a.cc:15:1: error: expected unqualified-id before 'if' 15 | if(A*B<C*D) { | ^~ a.cc:17:3: error: expected unqualified-id before 'else' ...
s410239537
p03826
C++
#include <bits/stdc++.h> using namespace std; int main(void) { int a,b,c,d; cin>>a>>b>>c>>d; if(a*b > c*d) cout<<a*b<<endl; else cout<<c*d<<<endl; return 0; }
a.cc: In function 'int main()': a.cc:9:25: error: expected primary-expression before '<' token 9 | else cout<<c*d<<<endl; | ^
s138530200
p03826
C++
#include<bits/stdc++.h> using namespace std; template <class T1, class T2> using dict = std::unordered_map<T1, T2>; int main(){ ll A,B,C,D; cin >> A >> B>>C>>D; cout << max(A*B,C*D) << endl; }
a.cc: In function 'int main()': a.cc:8:5: error: 'll' was not declared in this scope 8 | ll A,B,C,D; | ^~ a.cc:9:12: error: 'A' was not declared in this scope 9 | cin >> A >> B>>C>>D; | ^ a.cc:9:17: error: 'B' was not declared in this scope 9 | cin >> A >> B>>C>>D; ...
s550340527
p03826
C++
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(int)(n);i++) #define FOR(i,n,m) for(int i=(int)(n); i<=(int)(m); i++) #define RFOR(i,n,m) for(int i=(int)(n); i>=(int)(m); i--) #define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define RITR(x,c) for(__typeof(c.rbegin()) x=c.rbegin();x!=c.rend...
a.cc: In function 'int main()': a.cc:37:24: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 37 | int a,b,c,d; cin>>a>b>>c>>d; | ~~~~~~^~~~~~~~ | | | | ...
s026764461
p03826
C
#include<stdio.h> int main(void){ int a,b,c,d,ans; csnaf("%d%d%d%d",&a,&b,&c,&d); ans=a*b>=c*d?a*b:c*d; printf("%d",ans); return 0; }
main.c: In function 'main': main.c:4:5: error: implicit declaration of function 'csnaf' [-Wimplicit-function-declaration] 4 | csnaf("%d%d%d%d",&a,&b,&c,&d); | ^~~~~
s843412968
p03826
C++
include<iostream> using namespace std; int main(){ int a,b,c,d; cin >> a >> b >> c >> d; if (a*b > c*d) cout << a*b << endl; else cout << c*d << endl; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope 5 | cin >> a >> b >> c >> d; | ^~~ a.cc:6:18: error: 'cout' was not declared in this scope 6 | if (a*b > c*d) cout << a*b <<...
s098267494
p03826
C++
#include<iostream> using namespace std; int main{ int a,b,c,d; cin >> a >> b >> c >> d; if (a*b > c*d) cout << a*b << endl; else cout << c*d << endl; return 0; }
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:3: error: expected primary-expression before 'int' 4 | int a,b,c,d; | ^~~ a.cc:4:3: error: expected '}' before 'int' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:5:3: er...
s821910242
p03826
C++
#include<iostream> using namespace std; int main{ int a,b,c,d; cin >> a >> b >> c >> d; if (a*b > c*d) cout << a*b << endl; else cout << c*d << endl; return 0; }
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:3: error: expected primary-expression before 'int' 4 | int a,b,c,d; | ^~~ a.cc:4:3: error: expected '}' before 'int' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:5:3: er...
s142436992
p03826
C++
include<iostream> using namespace std; int main{ int a,b,c,d; cin >> a >> b >> c >> d; if (a*b > c*d) cout << a*b << endl; else cout << c*d << endl; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:3: error: expected primary-expression before 'int' 4 | int a,b,c,d; | ^~~ a.cc:4:3: error: expected '}' befor...
s728724859
p03826
C++
include<iostream> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a*b>=c*d) cout<<a*b<<endl; else cout<<c*d<<endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope 5 | cin>>a>>b>>c>>d; | ^~~ a.cc:7:5: error: 'cout' was not declared in this scope 7 | cout<<a*b<<endl; | ^~~~ a....
s657507088
p03826
C++
include<iostream> using namespace std; int main(){ int x=a*b,int y=c*d; if(x>=y) cout<<x<<endl; else cout<<y<<endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:4:9: error: 'a' was not declared in this scope 4 | int x=a*b,int y=c*d; | ^ a.cc:4:11: error: 'b' was not declared in this scope 4 | int x=a*b,int y=c*d; | ...
s844986673
p03826
C++
include<iostream> using namespace std; int main(){ x=a*b,y=c*d; if(x>=y) cout<<x<<endl; else cout<<y<<endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:4:3: error: 'x' was not declared in this scope 4 | x=a*b,y=c*d; | ^ a.cc:4:5: error: 'a' was not declared in this scope 4 | x=a*b,y=c*d; | ^ a.cc:4:7: error: 'b' w...