submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s826286681 | p03735 | C++ | #include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <list>
#include <queue>
#include <deque>
#include <string>
#include <iostream>
#include <climits>
using namespace std;
#define int long long
const int INF = LLONG_MAX/10;
typedef pair<int, int> PII;
int N;
vector<int> x, y;
signed main()
{... | a.cc: In function 'int main()':
a.cc:59:68: error: expected ';' before ')' token
59 | ans = min(ans, (ma.first - rMin)*(bMax - mi.first)));
| ^
| ;
|
s457125110 | p03735 | C++ | #include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <list>
#include <queue>
#include <deque>
#include <string>
#include <iostream>
using namespace std;
#define int long long
const int INF = LLONG_MAX/10;
typedef pair<int, int> PII;
int N;
vector<int> x, y;
signed main()
{
PII maxX = PII(-I... | a.cc:13:17: error: 'LLONG_MAX' was not declared in this scope
13 | const int INF = LLONG_MAX/10;
| ^~~~~~~~~
a.cc:10:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
9 | #include <iostream>
+++ |+#include <climits>
10 | usin... |
s008341167 | p03735 | C++ | #include <bits\stdc++.h>
using namespace std;
#define REP(i,n) for(int (i) = 0;(i) < (n) ; ++(i))
#define REPS(a,i,n) for(int (i) = (a) ; (i) < (n) ; ++(i))
#define REVERSE(i,n) for(int (i) = n-1;(i) >= 0 ; --i)
#define ALL(c) (c).begin() , (c).end()
#define LL long long
#define int LL
#define inf (1LL << 60)
#define ... | a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include <bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s108091133 | p03735 | C++ | #include <bits\stdc++.h>
using namespace std;
#define REP(i,n) for(int (i) = 0;(i) < (n) ; ++(i))
#define REPS(a,i,n) for(int (i) = (a) ; (i) < (n) ; ++(i))
#define REVERSE(i,n) for(int (i) = n-1;(i) >= 0 ; --i)
#define ALL(c) (c).begin() , (c).end()
#define LL long long
#define int LL
#define inf (1LL << 60)
#define ... | a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include <bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s207595430 | p03735 | C++ | #include <bits\stdc++.h>
using namespace std;
#define REP(i,n) for(int (i) = 0;(i) < (n) ; ++(i))
#define REPS(a,i,n) for(int (i) = (a) ; (i) < (n) ; ++(i))
#define REVERSE(i,n) for(int (i) = n-1;(i) >= 0 ; --i)
#define ALL(c) (c).begin() , (c).end()
#define LL long long
#define int LL
#define inf (1LL << 60)
#define ... | a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include <bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s029828236 | p03735 | C++ | start
| a.cc:1:1: error: 'start' does not name a type
1 | start
| ^~~~~
|
s695515880 | p03735 | C++ | #include <iostream>
using namespace std;
struct ioi{
int x,y;
}p[200010];
int n;
long long res,res2;
int main(){
//freopen("input.txt","r",stdin);
cin >> n;
if (n==1)
{
cout << 0;
return 0;
}
for (int i=1;i<=n;i++){
cin >> p[i].x >> p[i].y;
if (p[i].x < p[i].y) swap(p[i].x, p[i].y);
}
sort(p+1,p+n+... | a.cc: In function 'int main()':
a.cc:24:9: error: 'sort' was not declared in this scope; did you mean 'short'?
24 | sort(p+1,p+n+1,[](ioi a,ioi b){
| ^~~~
| short
|
s473406295 | p03735 | C++ | #include <iostream>
#include <utility>
#include <vector>
#include <climits>
#include <algorithm>
using namespace std;
int main(void)
{
int N;
vector<pair<int, int>> list;
cin >> N;
list.reserve(N);
for (int i = 0; i < N; ++i)
{
int x, y;
cin >> x >> y;
if (x < y)
{
list.emplace_back(x, y);
}
else... | a.cc: In function 'int main()':
a.cc:45:28: error: expected primary-expression before 'long'
45 | long long result = long long(R_max - R_min) * long long(B_max - B_min);
| ^~~~
a.cc:69:30: error: expected primary-expression before 'long'
69 | result = min(result, l... |
s338490893 | p03735 | C++ | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <climits>
#include <cstring>
#include <string>
#include <set>
#include <bitset>
#include <map>
#include <queue>
#include <stack>
#include <vector>
#include <cassert>
#include <ctime>
#define rep(i,m,n) for(i=m;i<=n;i... | a.cc: In function 'int main()':
a.cc:51:21: error: 'ret' was not declared in this scope; did you mean 'rep'?
51 | printf("%lld\n",ret);
| ^~~
| rep
|
s199236428 | p03735 | C++ | #include <iostream>
#include <cstdio>
#include <set>
#include <map>
#include <algorithm>
#define pb push_back
#define fi first
#define se second
#define mp make_pair
using namespace std;
map<int, int> H[2];
set<int> S[2];
typedef pair<int, int> PII;
typedef long long LL;
vector<PII> V;
inline void Insert(int x, int ... | a.cc:15:1: error: 'vector' does not name a type
15 | vector<PII> V;
| ^~~~~~
a.cc: In function 'int main()':
a.cc:35:9: error: 'V' was not declared in this scope
35 | V.pb(mp(x, y));
| ^
a.cc:37:10: error: 'V' was not declared in this scope
37 | sort(V.begin(), V.end());
|... |
s199996527 | p03735 | C++ | #include <iostream>
#include <cstdio>
#include <set>
#include <map>
#include <algorithm>
#define pb push_back
#define fi first
#define se second
#define mp make_pair
using namespace std;
map<int, int> H[2];
set<int> S[2];
typedef pair<int, int> PII;
typedef long long LL;
vector<PII> V;
inline void Insert(int x, int ... | a.cc:15:1: error: 'vector' does not name a type
15 | vector<PII> V;
| ^~~~~~
a.cc: In function 'int main()':
a.cc:35:9: error: 'V' was not declared in this scope
35 | V.pb(mp(x, y));
| ^
a.cc:37:10: error: 'V' was not declared in this scope
37 | sort(V.begin(), V.end());
|... |
s798775381 | p03735 | C++ | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, n) for(int i = 0; i < (n); i++)
#define MEM(a, x) memset(a, x, sizeof(a))
#define ALL(a) a.begin(), a.end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end())
typedef long long ll;
int n;
pair<pair<ll, ll>, int > p[200005];
ll INF = 1000000000000000000;
int... | a.cc: In function 'int main(int, const char**)':
a.cc:48:27: error: 'ma' was not declared in this scope; did you mean 'mai'?
48 | dif = min(ma, p[n-1].first.first - p[0].first.first);
| ^~
| mai
|
s310929184 | p03735 | C++ | # coding: utf-8
# 整数の入力
#a = int(raw_input())
# スペース区切りの整数の入力
import numpy as np
import itertools
N = int(input())
Rmax = 0
Rmin = 1000000001
Bmax = 0
Bmin = 1000000001
for i in range(N):
x,y = list(map(int, input().split()))
if x > y:
if x > Rmax:
Rmax = x
if y > Bmax:
... | a.cc:1:3: error: invalid preprocessing directive #coding
1 | # coding: utf-8
| ^~~~~~
a.cc:2:3: error: invalid preprocessing directive #\U00006574\U00006570\U0000306e\U00005165\U0000529b
2 | # 整数の入力
| ^~~~~~~~~~
a.cc:3:2: error: invalid preprocessing directive #a
3 | #a = int(raw_input())
... |
s444731918 | p03735 | C++ | #include <bits/stdc++.h>using namespace std;typedef long long ll;const int MAX = (1e5)+1; int n;vector<pair<ll, ll> > a;multiset<ll> r, b;long long ans = LLONG_MAX;int main() { ios::sync_with_stdio(false); cin.tie(0); cin >> n; a.resize(n); for(int i = 0; i < n; i++) { cin >> a[i].first >> a[i].second; if(a[i].first ... | a.cc:1:31: warning: extra tokens at end of #include directive
1 | #include <bits/stdc++.h>using namespace std;typedef long long ll;const int MAX = (1e5)+1; int n;vector<pair<ll, ll> > a;multiset<ll> r, b;long long ans = LLONG_MAX;int main() { ios::sync_with_stdio(false); cin.tie(0); cin >> n; a.... |
s481658481 | p03735 | C++ | #include <bits/stdc++.h>using namespace std;typedef long long ll;const int MAX = (1e5)+1; int n;vector<pair<ll, ll> > a;multiset<ll> r, b;long long ans = LLONG_MAX;int main() { ios::sync_with_stdio(false); cin.tie(0); cin >> n; a.resize(n); for(int i = 0; i < n; i++) { cin >> a[i].first >> a[i].second; if(a[i].first ... | a.cc:1:31: warning: extra tokens at end of #include directive
1 | #include <bits/stdc++.h>using namespace std;typedef long long ll;const int MAX = (1e5)+1; int n;vector<pair<ll, ll> > a;multiset<ll> r, b;long long ans = LLONG_MAX;int main() { ios::sync_with_stdio(false); cin.tie(0); cin >> n; a.... |
s894049679 | p03735 | C++ | #include <algorithm>
#include <vector>
using namespace std;
const int inf=1e9;
pair<int,int> v[400010];
vector<int> poz[200010];
int main()
{
//freopen("file.in", "r", stdin);
//freopen("file.out", "w", stdout);
int n,max1=0,min1=inf,max2=0,min2=inf,a,b;
scanf("%d",&n);
for(int i=1;i<=n;i++)
... | a.cc: In function 'int main()':
a.cc:15:5: error: 'scanf' was not declared in this scope
15 | scanf("%d",&n);
| ^~~~~
a.cc:42:5: error: 'printf' was not declared in this scope
42 | printf("%lld",sol);
| ^~~~~~
a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably f... |
s985295232 | p03735 | C++ | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <map>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long LL;
const int MaxN = 400000;
int n, a[MaxN + 5], nxt[MaxN + 5];
int x[MaxN + 5], y[MaxN + 5], re[MaxN + 5];
bool flag[MaxN +5];
map <int, int> hash;
stru... | a.cc: In function 'void Init()':
a.cc:36:17: error: reference to 'hash' is ambiguous
36 | hash[a[i]] = cnt;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_bvector.h:65,
from /usr/include/c++/14/vector:67,
from a.cc:6:
/usr/include/c++... |
s442975796 | p03735 | C++ | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
#define ll long long
#define PI acos(-1.0)
#defi... | a.cc: In function 'int main()':
a.cc:68:5: error: 'i' was not declared in this scope
68 | i = ind[0], j = ind[N-1];
| ^
a.cc:68:17: error: 'j' was not declared in this scope
68 | i = ind[0], j = ind[N-1];
| ^
|
s841582339 | p03735 | C++ | #pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pii;
typedef pair<int,string> pis;
double pi=3.1415926535898;
#define speed ios::sync_with_stdio(false);cin.tie(NULL); cout.tie(NULL);
#define lop(i,n) for(int i=0;i<in... | a.cc: In function 'int main()':
a.cc:46:20: error: expected ')' before 'first'
46 | swap(p[n-1]F,p[0].S);
| ~ ^
| )
a.cc:46:13: error: no matching function for call to 'swap(std::pair<long long int, long long int>&, long long int&)'
46 | swap(p[n-1]F... |
s997111771 | p03735 | C++ | #include <cstdio>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <queue>
#define INT long long
#define MOD 1000000007
#define oo (1e18)+1
using namespace std;
INT n, a[200020], b[200020], ans, ma = oo, mb = oo, Ma, Mb, ans = oo;
bool poss(INT x)
{
}
int main()
{
ios::sync_... | a.cc:12:61: error: redefinition of 'long long int ans'
12 | INT n, a[200020], b[200020], ans, ma = oo, mb = oo, Ma, Mb, ans = oo;
| ^~~
a.cc:12:30: note: 'long long int ans' previously declared here
12 | INT n, a[200020], b[200020], ans, ma = oo, m... |
s178038850 | p03735 | C++ | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
#define ll long long
#define PI acos(-1.0)
#defi... | a.cc: In function 'int main()':
a.cc:16:20: error: expected ',' or ';' before 'long'
16 | #define ll long long
| ^~~~
a.cc:38:9: note: in expansion of macro 'll'
38 | ll comp1 = 0, comp2 = 0;
| ^~
a.cc:40:25: error: 'comp1' was not declared in this scope
4... |
s275123444 | p03735 | C++ | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
#define ll long long
#define PI acos(-1.0)
#defi... | a.cc: In function 'int main()':
a.cc:16:20: error: expected ',' or ';' before 'long'
16 | #define ll long long
| ^~~~
a.cc:41:9: note: in expansion of macro 'll'
41 | ll comp1 = 0, comp2 = 0;
| ^~
a.cc:43:25: error: 'comp1' was not declared in this scope
4... |
s813805325 | p03735 | C++ | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
#define ll long long
#define PI acos(-1.0)
#defi... | a.cc: In function 'int main()':
a.cc:16:20: error: expected ',' or ';' before 'long'
16 | #define ll long long
| ^~~~
a.cc:41:9: note: in expansion of macro 'll'
41 | ll comp1 = 0, comp2 = 0;
| ^~
a.cc:43:25: error: 'comp1' was not declared in this scope
4... |
s295237074 | p03735 | C++ | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
#define ll long long
#define PI acos(-1.0)
#defi... | a.cc: In function 'int main()':
a.cc:37:21: error: 'idx' was not declared in this scope
37 | Rmax = Rmin = x[idx[0]];
| ^~~
a.cc:43:25: error: 'comp1' was not declared in this scope
43 | if(x[i] > Rmax) comp1 = x[i] - Rmin;
| ^~~~~
a.cc:44:30: er... |
s941353141 | p03735 | C++ | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
#define ll long long
#define PI acos(-1.0)
#defi... | a.cc: In function 'int main()':
a.cc:32:27: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
32 | FOR(i, 0, N) ind[i] = i;
| ^
In file included from /usr/include/c++/14/vector:72,
from /usr/include/c++/14/queue:63,
... |
s890101835 | p03735 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <utility>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <algorithm>
#include <istream>
#include <ostream>
#include <cstdlib>
#include <cmath>
#include <cstdio>
using namespace std;
#define fi first
#define ... | a.cc: In function 'int main()':
a.cc:44:21: error: narrowing conversion of '1.0e+9' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
44 | ll mn[2] = {1e9,1e9}, mx[2] = {0,0};
| ^~~
a.cc:44:25: error: narrowing conversion of '1.0e+9' from 'double' to 'll' {aka 'long long int... |
s346091909 | p03735 | Java | public class Main {
public static void main(String[] args) {
//System.out.println("d");
Scanner sc = new Scanner( System.in );
int N = sc.nextInt();
int max_x = Integer.MIN_VALUE;
int max_y = Integer.MIN_VALUE;
int min_x = Integer.MAX_VALUE;
int min_y = Integer.MAX_VALUE;
int x = 0;//2つのうち... | Main.java:7: error: cannot find symbol
Scanner sc = new Scanner( System.in );
^
symbol: class Scanner
location: class Main
Main.java:7: error: cannot find symbol
Scanner sc = new Scanner( System.in );
^
symbol: class Scanner
location: class Main
2 errors
|
s131330629 | p03735 | C++ | #include<iostream>
#include<iomanip>
#include<cstdlib>
#include<math.h>
#include<algorithm>
#include<string>
#include<vector>
#include<list>
#include<queue>
#include<stack>
#include<deque>
#include<set>
#include<map>
#define REP(i, N) for(ll i = 0; i < N; ++i)
#define FOR(i, a, b) for(ll i = a; i < b; ++i)
#define ALL(... | a.cc: In function 'int main()':
a.cc:30:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'll' {aka '__int128'})
30 | cin>>N;
| ~~~^~~
| | |
| | ll {aka __int128}
| std::istream {aka std::b... |
s539818160 | p03735 | C++ | #include<iostream>
#include <vector>
#include <algorithm>
#include<queue>
#include <boost/multiprecision/cpp_int.hpp>
//typedef boost::multiprecision::cpp_int Cint;
typedef longlong Cint;
using namespace std;
int main(){
Cint n,x,y,t;
Cint miny=9000000000,maxy=0,minx=9000000000,maxx=0;
cin>>n;
for(Cint i=0;i<n;i++... | a.cc:5:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
5 | #include <boost/multiprecision/cpp_int.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s142761025 | p03735 | C++ | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <set>
#include <list>
#include <map>
#include <queue>
#include <iterator>
#include <iomanip>
#include <stdio.h>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
... | a.cc: In function 'int main()':
a.cc:93:30: error: expected primary-expression at end of input
93 | ll ans = abs((maxR -
| ^
a.cc:93:30: error: expected ')' at end of input
93 | ll ans = abs((maxR -
| ~ ^
| ... |
s828445602 | p03736 | C++ | #include <bits/stdc++.h>
#define err(args...) {}
#ifdef DEBUG
#include "_debug.cpp"
#endif
using namespace std;
using ll = long long;
using ld = long double;
template <typename T> using lim = numeric_limits<T>;
template <typename T> istream& operator>>(istream& is, vector<T>& a) { for(T& x : a) { is >> x; } return is; ... | a.cc:86:2: error: stray '#' in program
86 | }#include <bits/stdc++.h>
| ^
a.cc:86:3: error: 'include' does not name a type
86 | }#include <bits/stdc++.h>
| ^~~~~~~
a.cc:95:32: error: redefinition of 'template<class T> std::istream& operator>>(std::istream&, std::vector<_Tp>&)'
95 | template <typ... |
s731319098 | p03736 | C++ | #include<bits/stdc++.h>
using namespace std;
#define re register
#define ll long long
#define get getchar()
#define in inline
in int read()
{
int t=0; char ch=get;
while(ch<'0' || ch>'9') ch=get;
while(ch<='9' && ch>='0') t=t*10+ch-'0', ch=get;
return t;
}
const int _=2e5+5;
int n,q,A,B,x[_];
ll lazy[_<<4],min1[_<<... | a.cc: In function 'void update(int, int, int, int, int)':
a.cc:33:28: error: no matching function for call to 'min(long long int&, int)'
33 | min1[k]=min(min1[k],y-l);
| ~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
from /usr/i... |
s457845172 | p03736 | C++ | #include "moves.h"
#include <bits/stdc++.h>
using namespace std;
#define LL long long
#define DB double
#define ULL unsigned long long
#define PII pair<int,int>
#define mp make_pair
#define fi first
#define se ... | a.cc:1:10: fatal error: moves.h: No such file or directory
1 | #include "moves.h"
| ^~~~~~~~~
compilation terminated.
|
s388150115 | p03736 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> vi;
int N, Q, A, B;
LL posL, posR;
vi X;
int binser(int l, int r, int src){
int ret = l;
while(l <= r){
int mid = (l+r)/2;
if(X[mid] <= src){
ret = max(ret, mid);
l = mid + 1;
... | a.cc: In function 'int main()':
a.cc:99:32: error: too few arguments to function 'LL minimum_time(int, int, int, int, vi)'
99 | printf("%lld\n", minimum_time());
| ~~~~~~~~~~~~^~
a.cc:56:4: note: declared here
56 | LL minimum_time(int n, int q, int a, int b, vi x) {
| ^~~~~~~~~... |
s128321626 | p03736 | C++ | #include "moves.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> vi;
int N, Q, A, B;
LL posL, posR;
vi X;
int binser(int l, int r, int src){
int ret = l;
while(l <= r){
int mid = (l+r)/2;
if(X[mid] <= src){
ret = max(ret, mid);
... | a.cc:1:10: fatal error: moves.h: No such file or directory
1 | #include "moves.h"
| ^~~~~~~~~
compilation terminated.
|
s989023582 | p03736 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> vi;
#define PB push_back
const int MAXQ = 205;
const int MAXN = 205;
LL N, Q, A, B;
vi X;
LL memo[MAXQ][MAXN][MAXN];
LL mini(LL a, LL b){
if(a == -1) return b;
else if(b == -1) return a;
else if(a < b) return a;
... | a.cc: In function 'int main()':
a.cc:51:32: error: too few arguments to function 'LL minimum_time(int, int, int, int, vi)'
51 | printf("%lld\n", minimum_time());
| ~~~~~~~~~~~~^~
a.cc:38:4: note: declared here
38 | LL minimum_time(int n, int q, int a, int b, vi x) {
| ^~~~~~~~~... |
s662219383 | p03736 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> vi;
#define PB push_back
const int MAXQ = 205;
const int MAXN = 205;
LL N, Q, A, B;
vi X;
LL memo[MAXQ][MAXN][MAXN];
LL mini(LL a, LL b){
if(a == -1) return b;
else if(b == -1) return a;
else if(a < b) return a;
... | a.cc: In function 'LL minimum_time()':
a.cc:44:18: error: 'a' was not declared in this scope
44 | return dp(0, a, b);
| ^
a.cc:44:21: error: 'b' was not declared in this scope
44 | return dp(0, a, b);
| ^
|
s885881272 | p03736 | C++ | #include "moves.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> vi;
#define PB push_back
const int MAXQ = 205;
const int MAXN = 205;
LL N, Q, A, B;
vi X;
LL memo[MAXQ][MAXN][MAXN];
LL mini(LL a, LL b){
if(a == -1) return b;
else if(b == -1) return a;
else if(... | a.cc:1:10: fatal error: moves.h: No such file or directory
1 | #include "moves.h"
| ^~~~~~~~~
compilation terminated.
|
s119411199 | p03736 | C | #include <stdio.h>
#define NMAX 200000
#define INF 1e11
#define abs(a) ((a) > 0 ? (a) : -(a))
#define min(a, b) ((a) < (b) ? (a) : (b))
long long bit[NMAX+1], revbit[NMAX+1], dp[NMAX+1];
void add(int index, int value, int size);
int max(int index);
int main(void)
{
int i, n, q, a, b;
long long qsum = 0, ans = INF;... | main.c: In function 'main':
main.c:18:3: error: implicit declaration of function 'revadd' [-Wimplicit-function-declaration]
18 | revadd(a, a, n);
| ^~~~~~
main.c:24:12: error: implicit declaration of function 'minimize' [-Wimplicit-function-declaration]
24 | tmin = minimize(b) + b;
| ... |
s579654402 | p03736 | C | // Aimi >> Konomi Suzuki >> Yui >> Ikimono Gakari >> Garninelia >> Kalafina... dude?
// .... Sempre Amei Você ...
// Sempre amei você
// Mesmo de longe sem te ter
// Você me deu forças para viver
// E ser quem eu queria ser
//
//
// Você nunca verá uma menina como ela
// Mais linda em sentimentos que romance de ... | main.c:78:10: fatal error: bits/stdc++.h: No such file or directory
78 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s462681740 | p03736 | C++ | #include<vector>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
#define pb push_back
#define gt getchar()
#define ll long long
#define File(s) freopen(s".in","r",stdin),freopen(s".out","w",stdout)
typedef std::pair<int,int> P;
#define mk std::make_pair
#define fr first
#define s... | a.cc: In function 'void work1()':
a.cc:30:21: error: no matching function for call to 'max(int&, long long int&)'
30 | mmx=std::max(mmx,y[mx]);
| ~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/vector:62,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:25... |
s187198388 | p03736 | C++ | #include <bits/stdc++.h>
using namespace std;
const long long INF = 1e17;
struct SE {
int n, op;
vector<long long> v;
void Init(int _n, int _op) {
n = _n;
op = _op;
v.resize(n * 4 + 1, INF);
}
void Set(int t, int l, in... | a.cc: In function 'int main()':
a.cc:55:18: error: no matching function for call to 'min(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, int)'
55 | dp[a] = min(dp[a], abs(x[0] - b));
| ~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/... |
s711389942 | p03736 | C++ | #include <bits/stdc++.h>
using namespace std;
const long long INF = 1e17;
struct SE {
int n, op;
vector<long long> v;
void Init(int _n, int _op) {
n = _n;
op = _op;
v.resize(n * 4 + 1, INF);
}
void Set(int t, int l, int r, int x, long long _v) {
if (l == r) {
v[t] = _v + l * op;... | a.cc: In member function 'long long int SE::Query(int, int, int, int, int)':
a.cc:30:33: warning: overflow in conversion from 'long long int' to 'int' changes value from '100000000000000000' to '1569325056' [-Woverflow]
30 | int md = (l + r) >> 1, re = INF;
| ^~~
a.cc:31:26:... |
s778381946 | p03736 | C++ | #include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#define fi first
#define se second
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long LL;
const int maxn = 2e5 + 100;
LL Plus[maxn*4], Minus[maxn*4], tag[maxn*4];
inline LL abs(LL x) { return x < 0 ? -x : x; }
inlin... | a.cc: In function 'long long int Query(int, int, int, int, int, int)':
a.cc:47:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
47 | ans = min(Query(o*2+1, mid+1, r, L, R, ty), Query(o*2, l, mid, L, R, ty));
| ^~~
| abs
|
s533362174 | p03736 | C++ | #include<bits/stdc++.h>
using namespace std;
const int N=3000000;
long long n,m,a1,b1,i,tmp,ans;
long long p[N],p1[N],s[N],s1[N],a[N];
void update(int x,int k)
{ p1[x*2]+=p1[x]; p1[x*2+1]+=p1[x];
p[x*2]+=p1[x]; p[x*2+1]+=p1[x];
p1[x]=0;
s1[x*2]+=s1[x]; s1[x*2+1]+=s1[x];
s[x*2]+=s1[x]; s[x*2+1]+=s1[x];
s1[x]=... | a.cc: In function 'long long int query(int, int, int, int, int, int)':
a.cc:36:24: error: 'mid' was not declared in this scope
36 | if (x>=mid+1) return query(q*2+1,mid+1,r,x,y,k);
| ^~~
|
s705202919 | p03736 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
#define repr(i,a,b) for(int i=a;i<b;i++)
#define rep(i,n) for(int i=0;i<n;i++)
#define reprrev(i,a,b) for(int i=b-1;i>=a;i--)
#define reprev(i,n) reprrev(i,0,n)
using ll = long long;
constexpr long long INFL = LLONG_MAX / 2;
class SegT... | a.cc:13:28: error: 'LLONG_MAX' was not declared in this scope
13 | constexpr long long INFL = LLONG_MAX / 2;
| ^~~~~~~~~
a.cc:4:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
3 | #include <algorithm>
+++ |+#include... |
s274714345 | p03736 | C++ | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
const int N=2e5;
typedef long long LL;
const LL INF=1e14;
LL n,q,ax,bx,a[N+10];
LL sum=0,f[N+10];
struct bit {
LL t[N+10];
void clear() {
for (int i=1;i<=N;i++) t[i]=INF;
return;
}
int lowbit(int x) {
return x&(-x);... | a.cc: In function 'int main()':
a.cc:44:24: error: call of overloaded 'abs(LL)' is ambiguous
44 | bit1.Add(ax,abs(bx-a[1])-ax);
| ~~~^~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
from /usr/include/c++/14/ext/string_conversions.h:43,
... |
s880396516 | p03736 | C++ | #include<cstdio>
#include<cstring>
#define LL long long
#define N 1200000
#define INF 0x3f3f3f3f3f3f3f3f
LL n,m,x,y,ans,mn1,mn2,a[N],seg[2][N],seg0[2][N],seg1[2][N],tag[2][N];
ll min(ll x,ll y){ return x<y?x:y; }
ll max(ll x,ll y){ return x>y?x:y; }
ll abs(ll x){ return x>0?x:-x; }
void add(LL op,LL k){
seg[op][1]+=k... | a.cc:8:1: error: 'll' does not name a type; did you mean 'LL'?
8 | ll min(ll x,ll y){ return x<y?x:y; }
| ^~
| LL
a.cc:9:1: error: 'll' does not name a type; did you mean 'LL'?
9 | ll max(ll x,ll y){ return x>y?x:y; }
| ^~
| LL
a.cc:10:1: error: 'll' does not name a type; did you mean 'L... |
s106085602 | p03736 | C++ | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
using namespace std;
static const long long INFL = 0x3f3f3f3f3f3f3f3fLL;
long long dp[500][500][500];
int main() {
int n, q, A, B;
scanf("%d%d%d%d", &n, &q, &A, &B);
ve... | a.cc: In function 'int main()':
a.cc:19:9: error: 'memset' was not declared in this scope
19 | memset(dp, -1, sizeof dp);
| ^~~~~~
a.cc:8:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
7 | #include <set>
+++ |+#include <cstring>... |
s812514422 | p03736 | C++ | #include<bits/stdc++.h>
typedef unsigned int uint;
typedef long long ll;
typedef unsigned long long ull;
typedef double lf;
typedef long double llf;
typedef std::pair<int,int> pii;
#define xx first
#define yy second
template<typename T> inline T max(T a,T b){return a>b?a:b;}
template<typename T> inline T min(T a,T b... | a.cc: In function 'int main()':
a.cc:132:27: error: narrowing conversion of '1.0e+18' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
132 | qa=(node){1e18,1e18};
| ^~~~
a.cc:135:27: error: narrowing conversion of '1.0e+18' from 'double' to 'll' {aka 'long long... |
s943527406 | p03736 | C++ | #include<cstdio>
#include<algorithm>
#include<cmath>
#define fo(i,a,b) for(i=a;i<=b;i++)
using namespace std;
typedef long long ll;
const int maxn=200000+10;
const ll inf=1000000000000000;
ll t1[maxn*4],t2[maxn*4],sum[maxn],f[maxn];
int x[maxn],id[maxn],rank[maxn];
int i,j,k,l,t,n,m,a,b;
ll ans;
bool cmp(int a,int b){
... | a.cc: In function 'void work()':
a.cc:56:24: error: reference to 'rank' is ambiguous
56 | change(1,1,m+1,rank[0],f[1]-sum[1]-(ll)x[0]);
| ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
from /usr/include/c++/14/bits/stl_algobase.h:64,
... |
s358558060 | p03736 | C++ | #include <bits/stdc++.h>
#define N 256101
#define Q 3414680
using namespace std;
typedef long long ll;
const ll INF = 0x7f7f7f7f7f7f7f7fll;
struct tuple{
int w, id, pos;
tuple (int w0 = 0, int id0 = 0, int pos0 = 0): w(w0), id(id0), pos(pos0) {}
};
int n, A, B, i, inf, sup;
int x[N], fst[N];
ll f[2][2][N], *F[2], ... | a.cc:18:1: error: reference to 'tuple' is ambiguous
18 | tuple que[Q];
| ^~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/us... |
s065503440 | p03736 | C++ | #include <stdio.h>
#include <math.h>
#include <algorithm>
using namespace std;
const int INF = 1e9, SEGMENT_TREE_SIZE = 1 << 19;
long long f[200005];
struct info{int L, R;};
info merge(info a, info b) {info x = {f[a.L]-a.L < f[b.L]-b.L ? a.L : b.L, f[a.R]+a.R < f[b.R]+b.R ? a.R : b.R}; return(x);}
template <class T>
... | a.cc:40:5: error: ISO C++ forbids declaration of 'setval' with no type [-fpermissive]
40 | setval(int pos, T x) {update(0, pos, x);}
| ^~~~~~
a.cc: In member function 'int SegmentTree<T>::setval(int, T)':
a.cc:40:45: warning: no return statement in function returning non-void [-Wreturn-type]
40 | ... |
s361484280 | p03736 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mp make_pair
const ll INF = 1e18;
typedef pair<ll, ll> pll;
struct Node {
ll valm;
ll valp;
ll add;
Node() {}
};
const int N = 3e5 + 10;
Node tree[4 * N];
void update_node(int tv, int tl, int tr) {
if (tr - tl > 1) {
tree[tv].valm ... | a.cc: In function 'pll get_min(int, int, int, int, int)':
a.cc:73:9: error: 'res1' was not declared in this scope
73 | res1 = get_min(2 * tv + 1, tl, tm, l, min(r, tm));
| ^~~~
a.cc:74:9: error: 'res2' was not declared in this scope
74 | res2 = get_min(2 * tv + 2, tm, tr, max(l, tm),... |
s895400181 | p03736 | C++ | #include<Cstd
| a.cc:1:14: error: missing terminating > character
1 | #include<Cstd
| ^
a.cc:1:9: fatal error: Cstd: No such file or directory
1 | #include<Cstd
| ^
compilation terminated.
|
s468661408 | p03736 | C++ | あ | a.cc:1:1: error: '\U00003042' does not name a type
1 | あ
| ^~
|
s801449407 | p03736 | C++ | あ | a.cc:1:1: error: '\U00003042' does not name a type
1 | あ
| ^~
|
s200201599 | p03736 | C++ | い | a.cc:1:1: error: '\U00003044' does not name a type
1 | い
| ^~
|
s832785046 | p03736 | C++ | あ | a.cc:1:1: error: '\U00003042' does not name a type
1 | あ
| ^~
|
s196094485 | p03736 | C++ | _ | a.cc:1:1: error: '_' does not name a type
1 | _
| ^
|
s544184005 | p03736 | C++ | あ | a.cc:1:1: error: '\U00003042' does not name a type
1 | あ
| ^~
|
s351164775 | p03736 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mp make_pair
const ll INF = 1e18;
typedef pair<ll, ll> pll;
struct Node {
ll valm;
ll valp;
ll add;
Node() {}
};
const int N = 2e5 + 10;
Node tree[4 * N];
void build(int tv, int tl, int tr) {
if (tr - tl == 1) {
tree[tv].valm = INF... | a.cc:111:1: error: two or more data types in declaration of 'main'
111 | int
| ^~~
|
s035110093 | p03736 | C++ | E | a.cc:1:1: error: 'E' does not name a type
1 | E
| ^
|
s884536509 | p03736 | C++ | C | a.cc:1:1: error: 'C' does not name a type
1 | C
| ^
|
s282080794 | p03736 | C++ | CE | a.cc:1:1: error: 'CE' does not name a type
1 | CE
| ^~
|
s606310554 | p03736 | C++ | CE | a.cc:1:1: error: 'CE' does not name a type
1 | CE
| ^~
|
s587468503 | p03736 | C++ | try | a.cc:1:1: error: expected unqualified-id before 'try'
1 | try
| ^~~
|
s621675988 | p03736 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1e13;
const int INF = INT_MAX;
template <typename T>
struct SegmentTree {
int n;
vector<T> data;
//使うときは、この3つを適宜変更する
static T INITIAL_VALUE;
static T merge(T x, T y);
void updateNode(int k, T x);
Segme... | a.cc:9:11: error: conflicting declaration 'const int INF'
9 | const int INF = INT_MAX;
| ^~~
a.cc:7:10: note: previous declaration as 'const ll INF'
7 | const ll INF = 1e13;
| ^~~
|
s401100342 | p03736 | C++ | #define _USE_MATH_DEFINES
#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <complex>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include... | /usr/bin/ld: /tmp/ccOOOuUN.o: warning: relocation against `_ZN11SegmentTree9INIT_DATAE' in read-only section `.text._ZN11SegmentTreeC2Ei[_ZN11SegmentTreeC5Ei]'
/usr/bin/ld: /tmp/ccOOOuUN.o: in function `SegmentTree::SegmentTree(int)':
a.cc:(.text._ZN11SegmentTreeC2Ei[_ZN11SegmentTreeC5Ei]+0x6e): undefined reference to ... |
s329036514 | p03736 | C++ | #include <iostream>
#include <map>
using namespace std;
int N;
map <pair <int, int>, int> M;
pair <int, int> Array[200005];
pair <int, int> PMax, PMin;
vector <pair <int, pair <int, int> > > V;
int Max = -1, Min = 1000000005;
int P[800005];
void Read()
{
cin >> N;
for(int i = 1; i <= N; i++)
{
cin >... | a.cc:8:1: error: 'vector' does not name a type
8 | vector <pair <int, pair <int, int> > > V;
| ^~~~~~
a.cc: In function 'int Pair(int)':
a.cc:55:13: error: 'V' was not declared in this scope
55 | int x = V[pos].second.first;
| ^
a.cc: In function 'long long int Solve2()':
a.cc:67:13: ... |
s492184218 | p03737 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
char d=a.at(0),e=b.at(0),f=c.at(0);
int d,e,f;
char rr=d-32,ee=e-32,ff=f-32;
cout<<rr<<ee<<ff;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:7: error: conflicting declaration 'int d'
9 | int d,e,f;
| ^
a.cc:8:8: note: previous declaration as 'char d'
8 | char d=a.at(0),e=b.at(0),f=c.at(0);
| ^
a.cc:9:9: error: conflicting declaration 'int e'
9 | int d,e,f;
| ^
a.... |
s012576318 | p03737 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
int d=a.at(0)-32,e=b.at(0)-32,f=c.at(0)-32;
char d,e,f;
cout<<d<<e<<f;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:8: error: conflicting declaration 'char d'
9 | char d,e,f;
| ^
a.cc:8:7: note: previous declaration as 'int d'
8 | int d=a.at(0)-32,e=b.at(0)-32,f=c.at(0)-32;
| ^
a.cc:9:10: error: conflicting declaration 'char e'
9 | char d,e,f;
| ... |
s329468503 | p03737 | C++ | using namespace std;
int main() {
// ios_base::sync_with_stdio(false);
//cin.tie(NULL);
//cout.tie(NULL);
string s;
for(int i=0;i<3;i++){
string str;
cin>>str;
toupper(str[0]);
s+=str[0];
}
cout<<s;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'string' was not declared in this scope
9 | string s;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | using namespace std;
a.cc:11:1... |
s386856452 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
// ios_base::sync_with_stdio(false);
//cin.tie(NULL);
//cout.tie(NULL);
string s;
for(int i=0;i<3;i++){
string str;
cin>>str;
to_upper(str[0]);
s+=str[0];
}
cout<<s;
return 0;
} | a.cc: In function 'int main()':
a.cc:14:7: error: 'to_upper' was not declared in this scope; did you mean 'towupper'?
14 | to_upper(str[0]);
| ^~~~~~~~
| towupper
|
s386073727 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
// ios_base::sync_with_stdio(false);
//cin.tie(NULL);
//cout.tie(NULL);
string s;
for(int i=0;i<3;i++){
string str;
cin>>str;
s+=to_upper(str[0]);
}
cout<<s;
return 0;
} | a.cc: In function 'int main()':
a.cc:14:10: error: 'to_upper' was not declared in this scope; did you mean 'towupper'?
14 | s+=to_upper(str[0]);
| ^~~~~~~~
| towupper
|
s229109318 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
string s;
for(int i=0;i<3;i++){
string str;
cin>>str;
s+=to_upper(str[0]);
}
cout<<s;
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:10: error: 'to_upper' was not declared in this scope; did you mean 'towupper'?
14 | s+=to_upper(str[0]);
| ^~~~~~~~
| towupper
|
s897213805 | p03737 | C++ | #include <iostream>
#include <math.h>
#include <algorithm>
#include <string>
#include <map>
#include <vector>
#include <cmath>
using namespace std;
void a_three_letter_acronym(void) {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
transform(s1.begin(), s1.end(), s1.begin(), toupper);
transform(s2.begin(), s2.end(), s2... | a.cc: In function 'void a_three_letter_acronym()':
a.cc:14:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
14 | transform(s1.begin... |
s022527363 | p03737 | C | #include<stdio.h>
int main(){
char a,b,c;
scanf("%s%s%s",&a,&b,&c);
printf("%c%c%c",a[0]-32,b[0]-32,c[0]-32);
return 0;
} | main.c: In function 'main':
main.c:5:20: error: subscripted value is neither array nor pointer nor vector
5 | printf("%c%c%c",a[0]-32,b[0]-32,c[0]-32);
| ^
main.c:5:28: error: subscripted value is neither array nor pointer nor vector
5 | printf("%c%c%c",a[0]-32,b[0]-32,c[0]-32);
... |
s646737428 | p03737 | C | #include<stdio.h>
#include<string.h>
int main(){
char a[10],b[10],c[10];
scanf("%d %d %d",&a,&b,&c);
int a[0],b[0],c[0];
int g=a[0]-32,h=b[0]-32;y=c[0]-32;
char g,h,y;
printf("%c%c%c",g,h,y);
return 0;
}
| main.c: In function 'main':
main.c:6:7: error: conflicting types for 'a'; have 'int[0]'
6 | int a[0],b[0],c[0];
| ^
main.c:4:8: note: previous declaration of 'a' with type 'char[10]'
4 | char a[10],b[10],c[10];
| ^
main.c:6:12: error: conflicting types for 'b'; have 'int[0]'
6 |... |
s172476245 | p03737 | C | #include<stdio.h>
#include<string.h>
int main(){
char a[],b[],c[];
scanf("%d %d %d",&a,&b,&c);
int a[0],b[0],c[0];
int g=a[0]-32,h=b[0]-32;y=c[0]-32;
char g,h,y;
printf("%c%c%c",g,h,y);
return 0;
} | main.c: In function 'main':
main.c:4:8: error: array size missing in 'a'
4 | char a[],b[],c[];
| ^
main.c:4:12: error: array size missing in 'b'
4 | char a[],b[],c[];
| ^
main.c:4:16: error: array size missing in 'c'
4 | char a[],b[],c[];
| ^
main.c:6... |
s921631886 | p03737 | C | #include<stdio.h>
int main(void){
char s[3][10];
for(int i=0;i<3;i++){
for(int j=0;;j++){
Scanf("%c",&s[i][j]);
if(s[i][j]=='\0'){
break;
}
}
}
printf("%s%s%s",&s[0][0]-32,&s[1][0]-32,&s[2][0]-32);
return 0;
} | main.c: In function 'main':
main.c:6:25: error: implicit declaration of function 'Scanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
6 | Scanf("%c",&s[i][j]);
| ^~~~~
| scanf
|
s714009430 | p03737 | C++ | using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
a = toupper(a.at(0));
b = toupper(b.at(0));
c = toupper(c.at(0));
cout <<a <<b<<c << endl;
} | a.cc: In function 'int main()':
a.cc:5:2: error: 'string' was not declared in this scope
5 | string a,b,c;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | using namespace std;
a.cc:6:2: error: 'c... |
s621278212 | p03737 | C | #include<stdio.h>
#include<string.h>
void main()
{
char c[100];
int l,i,j=0;
clrscr();
printf("enter the string\n");
gets(c);
l=strlen(c);
for(i=0;i<l;i++)
{
if(c[i]==' '|| i==l-1)
{
if(( c[j]=='t' && c[j+1]=='h' && c[j+2]=='e' && c[j+3]==' ') || (c[j] == 'o'&& c[j+1]== 'f' && c[j+2]== ' ') || (c[j]=='f' && c[j+1]=='o... | main.c: In function 'main':
main.c:8:1: error: implicit declaration of function 'clrscr' [-Wimplicit-function-declaration]
8 | clrscr();
| ^~~~~~
main.c:10:1: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
10 | gets(c);
| ^~~~
| fgets
mai... |
s426395151 | p03737 | C | #include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char c[100];
int l,i,j=0;
clrscr();
printf("enter the string\n");
gets(c);
l=strlen(c);
for(i=0;i<l;i++)
{
if(c[i]==' '|| i==l-1)
{
if(( c[j]=='t' && c[j+1]=='h' && c[j+2]=='e' && c[j+3]==' ') || (c[j] == 'o'&& c[j+1]== 'f' && c[j+2]== ' ') || (c[j]==... | main.c:2:9: fatal error: conio.h: No such file or directory
2 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s471601319 | p03737 | C | #include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char c[100];
int l,i,j=0;
printf("enter the string\n");
gets(c);
l=strlen(c);
for(i=0;i<l;i++)
{
if(c[i]==' '|| i==l-1)
{
if(( c[j]=='t' && c[j+1]=='h' && c[j+2]=='e' && c[j+3]==' ') || (c[j] == 'o'&& c[j+1]== 'f' && c[j+2]== ' ') || (c[j]=='f' && c[j+... | main.c:2:9: fatal error: conio.h: No such file or directory
2 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s451245307 | p03737 | C++ | #include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char c[100];
int l,i,j=0;
printf("enter the string\n");
gets(c);
l=strlen(c);
for(i=0;i<l;i++)
{
if(c[i]==' '|| i==l-1)
{
if(( c[j]=='t' && c[j+1]=='h' && c[j+2]=='e' && c[j+3]==' ') || (c[j] == 'o'&& c[j+1]== 'f' && c[j+2]== ' ') || (c[j]=='f' && c[j+... | a.cc:2:9: fatal error: conio.h: No such file or directory
2 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s569861080 | p03737 | Java |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s1 = sc.next();
String s2 = sc.next();
String s3 = sc.next();
String ans = s1.charAt(0) + s2.charAt(0);
ans += s3.charAt(0);
... | Main.java:12: error: incompatible types: int cannot be converted to String
String ans = s1.charAt(0) + s2.charAt(0);
^
1 error
|
s770462210 | p03737 | Java |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s1 = sc.next();
String s2 = sc.next();
String s3 = sc.next();
String ans = s1.charAt(0) + s2.charAt(0) + s3.charAt(0);
System.out.pr... | Main.java:12: error: incompatible types: int cannot be converted to String
String ans = s1.charAt(0) + s2.charAt(0) + s3.charAt(0);
^
1 error
|
s230478711 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pa... | a.cc: In function 'int main()':
a.cc:61:13: error: 'i' was not declared in this scope
61 | cout << a[i] << b[i] << c[i];
| ^
|
s954368531 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
int main() {
string s,t,u;
cin>>s>>t>>u;
string S,T;
S="abcdefghijklmnopqrstuvwxyz";
T="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
for(ll i=0;i<26;i++) {
if(S[i]==s[0]) {
cout<<T[i];
}
for(ll i=0;i<26;i++) {
if(S[i]... | a.cc: In function 'int main()':
a.cc:26:10: error: expected '}' at end of input
26 | }
| ^
a.cc:16:27: note: to match this '{'
16 | for(ll i=0;i<26;i++) {
| ^
a.cc:26:10: error: expected '}' at end of input
26 | }
| ^
a.cc:12:24... |
s129009771 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main (){
string a, b, c;
cin >> a >> b >> c;
char dif=’A’ - ’a’;
printf("%c%c%c\n", a[0] + dif, b[0] + dif, c[0] + dif);
return 0;
}
| a.cc:7:10: error: extended character ’ is not valid in an identifier
7 | char dif=’A’ - ’a’;
| ^
a.cc:7:10: error: extended character ’ is not valid in an identifier
a.cc:7:16: error: extended character ’ is not valid in an identifier
7 | char dif=’A’ - ’a’;
| ^
a.cc:7:16: er... |
s591811771 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C, X, atoA;
cin >> A >> B >> C;
X.at(0) = A.at(0);
X.at(1) = B.at(0);
X.at(2) = C.at(0);
atoA = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
for(int i = 0; i < 26; i++) {
if(X.at(0) == atoA.at(i)) {
X.at(0) == ato... | a.cc: In function 'int main()':
a.cc:17:11: error: no matching function for call to 'std::__cxx11::basic_string<char>::at()'
17 | X.at() == atoA.at(i + 26);
| ~~~~^~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/... |
s085801646 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C, X, atoA;
cin >> A >> B >> C;
X.at(0) = A.at(0);
X.at(1) = B.at(0);
X.at(2) = C.at(0);
atoA = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
for(int i = 0, i < 26; i++) {
if(X.at(0) == atoA.at(i)) {
X.at(0) == ato... | a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before '<' token
10 | for(int i = 0, i < 26; i++) {
| ^~
| ;
a.cc:10:20: error: expected primary-expression before '<' token
10 | for(int i = 0, i < 26; i++) {
| ^
a.cc:15:1... |
s227275149 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, from, to) for (int i = from; i < (to); ++i)
#define mp(x,y) make_pair(x,y)
#define all(x) (x).begin(),(x).end()
#define pb push_back
using ll = long long;
using vin=vector<int>;
using vll=vector<ll>;
using vst=vector<string>;
using P = ... | a.cc: In function 'int main()':
a.cc:27:28: error: no match for 'operator-' (operand types are 'std::__cxx11::basic_string<char>' and 'char')
27 | cout<<(s[0]+'A'-'a')<<endl;
| ~~~~~~~~^~~~
| | |
| | char
| ... |
s601511573 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, from, to) for (int i = from; i < (to); ++i)
#define mp(x,y) make_pair(x,y)
#define all(x) (x).begin(),(x).end()
#define pb push_back
using ll = long long;
using vin=vector<int>;
using vll=vector<ll>;
using vst=vector<string>;
using P = ... | a.cc: In function 'int main()':
a.cc:27:27: error: no match for 'operator-' (operand types are 'std::__cxx11::basic_string<char>' and 'char')
27 | cout<<s[0]+'A'-'a'<<endl;
| ~~~~~~~~^~~~
| | |
| | char
| ... |
s409352310 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, from, to) for (int i = from; i < (to); ++i)
#define mp(x,y) make_pair(x,y)
#define all(x) (x).begin(),(x).end()
#define pb push_back
using ll = long long;
using vin=vector<int>;
using vll=vector<ll>;
using vst=vector<string>;
using P = ... | a.cc: In function 'int main()':
a.cc:27:19: error: 'c' was not declared in this scope
27 | cout<<c[0]+'A'-'a'<<endl;
| ^
|
s169338755 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define INF 1e12
#define PB push_back
#define PF push_front
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vpi vector<pii>
#define vll vector<ll>
#define vp... | a.cc: In function 'void solve()':
a.cc:72:21: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(int)'
72 | out(string(a[0]-32)+string(b[0]-32)+string(c[0]-32));
| ^
a.cc:30:24: note: in definition of macro 'out'
30 | #define out(x) cout << x << "\n... |
s766779361 | p03737 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
#define rep(i,N) for(int i=0; i<N; i++){ ;
int main() {
string A,B,C;
cin>>A>>B>>C;
transform(A.begin(), A.end(), A.begin(), toupper);
transform(B.begin(), B.end(), B.begin(), toupper);
transform(C.begin(), C.end(), C.begin(), ... | a.cc: In function 'int main()':
a.cc:8:15: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
8 | transform(A.begin(), A.end(), A.begin(), ... |
s881463252 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
transform(a.begin(),a.end(),a.begin(),toupper);
transform(b.begin(),b.end(),b.begin(),toupper);
transform(c.begin(),c.end(),c.begin(),toupper);
cout << a[0] << b[0] << c[0] << endl;
} | a.cc: In function 'int main()':
a.cc:6:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
6 | transform(a.begin(),a.end(),a.begin(),touppe... |
s858499345 | p03737 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
transform(a.begin(),a.end(),a.bgin(),toupper);
transform(b.begin(),b.end(),b.bgin(),toupper);
transform(c.begin(),c.end(),c.bgin(),toupper);
cout << a[0] << b[0] << c[0] << endl;
} | a.cc: In function 'int main()':
a.cc:6:33: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'bgin'; did you mean 'begin'?
6 | transform(a.begin(),a.end(),a.bgin(),toupper);
| ^~~~
| begin
a.cc:7:33: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.