submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s143480639 | p03908 | C++ | // In the name of God
#include <iostream>
#include <algorithm>
#include <fstream>
#include <vector>
#include <deque>
#include <assert.h>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <stdio.h>
#include <string.h>
#include <utility>
#include <math.h>
#include <bitset>
#include <iomanip>
usin... | a.cc: In function 'int32_t main()':
a.cc:51:35: warning: 'void std::random_shuffle(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<long long int*, vector<long long int> >]' is deprecated: use 'std::shuffle' instead [-Wdeprecated-declarations]
51 | random_shuffle(p[d].begin(), p[d].... |
s103762383 | p03908 | C++ | #include <stdio.h>
#include <string.h>
#include <algorithm>
long long int N;
char A[1000000000000];
int f[12], ans = 0;
int ctoi(char c) {
switch (c) {
case '0': return 0;
case '1': return 1;
case '2': return 2;
case '3': return 3;
case '4': return 4;
case '5': return 5;
case '6': return 6;
case '7': return ... | /tmp/ccrIzefY.o: in function `main':
a.cc:(.text+0x11f): relocation truncated to fit: R_X86_64_PC32 against symbol `f' defined in .bss section in /tmp/ccrIzefY.o
a.cc:(.text+0x148): relocation truncated to fit: R_X86_64_PC32 against symbol `f' defined in .bss section in /tmp/ccrIzefY.o
a.cc:(.text+0x190): relocation tr... |
s672834957 | p03908 | C++ | #include <stdio.h>
#include <string.h>
#include <algorithm>
int N;
char A[1000000000000];
int f[12], ans = 0;
int ctoi(char c) {
switch (c) {
case '0': return 0;
case '1': return 1;
case '2': return 2;
case '3': return 3;
case '4': return 4;
case '5': return 5;
case '6': return 6;
case '7': return 7;
case '... | /tmp/ccGsxCy7.o: in function `main':
a.cc:(.text+0x11f): relocation truncated to fit: R_X86_64_PC32 against symbol `f' defined in .bss section in /tmp/ccGsxCy7.o
a.cc:(.text+0x148): relocation truncated to fit: R_X86_64_PC32 against symbol `f' defined in .bss section in /tmp/ccGsxCy7.o
a.cc:(.text+0x189): relocation tr... |
s006519945 | p03909 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w;
cin >> h >> w;
vector<vector<string>> s(h, vector<string>(w));
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
cin >> s[i][j];
if (s[i][j] == "snuke") {
char r = j + 'A'
... | a.cc: In function 'int main()':
a.cc:13:17: error: expected ',' or ';' before 'cout'
13 | cout << r << i+1 << endl;
| ^~~~
|
s541629037 | p03909 | C++ | #include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000; // n の最大値
// nCk を取得
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-... | a.cc: In function 'int main()':
a.cc:31:7: error: 'q' was not declared in this scope
31 | cout<<q<<i/t+1<<endl;}}}
| ^
|
s324582196 | p03909 | C++ | #include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000; // n の最大値
// nCk を取得
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-... | a.cc: In function 'int main()':
a.cc:27:24: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
27 | string q = 'A' + (int)t-1;}
| ~~~~~~~~~~~~^~
a.cc:29:26: error: conversion from 'll' {aka 'long long int'} to non-scalar type 'std::string... |
s626177440 | p03909 | C++ | #include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000; // n の最大値
// nCk を取得
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-... | a.cc: In function 'int main()':
a.cc:27:19: error: conversion from 'll' {aka 'long long int'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
27 | string q = 'A' + t-1;}
| ~~~~~~~^~
a.cc:29:21: error: conversion from 'll' {aka 'long long int'} to non-scalar type '... |
s006627215 | p03909 | C++ | #include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000; // n の最大値
// nCk を取得
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-... | a.cc:25:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
25 | if(s=='snuke'){
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:25:5: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
25 | if(s=='snuke'... |
s592700213 | p03909 | Java | import java.util.*;
public class Main{
public static char chalpha(int n){
char[] ch="ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
return ch[n];
}
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int h=sc.nextInt(),w=sc.nextInt(),f=0;
char c='';
String[][] str=new Strin... | Main.java:11: error: empty character literal
char c='';
^
1 error
|
s825145636 | p03909 | Java | import java.util.*;
public class Main{
public static char chalpha(int n){
char[] ch="ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
return ch[n];
}
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int h=sc.nextInt(),w=sc.nextInt(),f=0;
char c;
String[][] str=new String[h... | Main.java:22: error: variable c might not have been initialized
System.out.println(c+""+f);
^
1 error
|
s602341548 | p03909 | Java | import java.util.*;
public class Main{
public static chalpha(int n){
char[] ch="ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
return ch[n];
}
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int h=sc.nextInt(),w=sc.nextInt(),f=0;
char c;
String[][] str=new String[h][w];... | Main.java:4: error: invalid method declaration; return type required
public static chalpha(int n){
^
1 error
|
s852098335 | p03909 | C++ | #define repr(i, n) for(int i = n;i >= 0;i--)
#define For(i, s, e) for(int i = s;i <= e;i++)
#define Sort(v, n) sort(v, v+n);
#define VSort(v) sort(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define INF 999999999
#define cY cout<<"Yes";
#define cN cout<<"No";
#define cA(a) cout<<a;
const ll MOD... | a.cc: In function 'int main()':
a.cc:15:5: error: 'cin' was not declared in this scope
15 | cin>>h>>w;
| ^~~
a.cc:16:5: error: 'string' was not declared in this scope
16 | string s;
| ^~~~~~
a.cc:19:20: error: 's' was not declared in this scope
19 | cin >> s;
| ... |
s609617204 | p03909 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H, W;
cin >> H >> W;
for(int row=0; row<H; row++){
for(int col=0; col<W; col++){
string s;
cin << s;
if(s=="snuke"){
cout << char(col + 'A') << row + 1 << endl;
return 0;
}
}
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:11:11: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
11 | cin << s;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__c... |
s898393352 | p03909 | C++ | #include <cstdio>
#include <cctype>
using namespace std;
template <typename T> inline void read(T& ret) {
int c = getchar(); ret = 0;
while(!isdigit(c)) { c = getchar(); }
while(isdigit(c)) { ret = ret * 10 + c - 48, c = getchar(); }
}
template <typename T, typename... Args> inline void read(T& ret, Args&... args... | a.cc: In function 'int main()':
a.cc:15:9: error: 'string' was not declared in this scope
15 | string s; cin >> s;
| ^~~~~~
a.cc:3:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
2 | #include <cctype>
+++ |+#include <string>
... |
s874052627 | p03909 | C++ | #include <bits/stdc++.h>
using namespace std;
struct union_find {
vector<long long> parent, sizes;
void init(long long n) {
for (long long i = 0; i < n; i++) {
parent.push_back(i);
sizes.push_back(1);
}
}
long long root(long long n) {
if (parent[n] == n) return n;
return parent[n];
... | a.cc:21:2: error: expected ';' after struct definition
21 | }
| ^
| ;
|
s662543783 | p03909 | C++ | #include <iostream>
using namespace std;
int main(){
int h, w, i, j;
string s;
cin >> h >> w;
for(i=0; i<h; i++){
for(j=0; j<w; j++){
cin >> s;
if(s == "snuke"){
cout << (char)("A"+j) << (i+1) << "\n";
return 0;
}
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:12:17: error: cast from 'const char*' to 'char' loses precision [-fpermissive]
12 | cout << (char)("A"+j) << (i+1) << "\n";
| ^~~~~~~~~~~~~
|
s777478518 | p03909 | C++ | def main():
h, w = map(int, input().split())
s = [list(input().split()) for _ in range(h)]
for i in range(h):
for j in range(w):
if s[i][j] == "snuke":
print(chr(ord('A')+j)+str(i+1))
return
main() | a.cc:1:1: error: 'def' does not name a type
1 | def main():
| ^~~
|
s574988360 | p03909 | C++ | #include<bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long
using namespace std;
int main(){
int h,w;cin>>h>>w;
rep(i,h)rep(j,w){
string s;cin>>s;
if(s=="snuke"){
vout<<'A'+j<<i+1<<endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:13:7: error: 'vout' was not declared in this scope
13 | vout<<'A'+j<<i+1<<endl;
| ^~~~
|
s255137492 | p03909 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int h,w;
cin >> h >> w;
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
string s;
cin >> s;
if(s=="sunke"){
cout << char('A'+j) << i+1 << endl;
return 0;
}
}
}
| a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' at end of input
15 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s679697889 | p03909 | C++ | #include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
int h,w;
cin >> h >> w;
string s;
for(int i=0; i<h; i++) {
for(int j=0; j<w; j++) {
cin >> s;
if(s=='snuke') {
cout << (char)('A'+j) << i+1 << endl;
}
}
}
} | a.cc:12:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
12 | if(s=='snuke') {
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:12:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
12 ... |
s651141878 | p03909 | C++ | #include<stdio.h>
int main()
{
char str[10];
scanf("%d %d",&n,&m);
for(i=1;i<=n;i++)
{
for(j=1;j<=m;j++)
{
scanf("%s",str);
if(str[2]='u')
{
printf("%d%c",i,'A'+j-1);
return 0;
}
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:24: error: 'n' was not declared in this scope
5 | scanf("%d %d",&n,&m);
| ^
a.cc:5:27: error: 'm' was not declared in this scope
5 | scanf("%d %d",&n,&m);
| ^
a.cc:6:13: error: 'i' was not declare... |
s900774152 | p03909 | C | i;main(h,w,j){char s[6];for(scanf("%d%d",&h,&w);i++<h;)for(j=0;j++<w;){scanf("%s",s);if(b[0]+b[2]+b[4]==313)printf("%c%d",j+64,i);}} | main.c:1:1: warning: data definition has no type or storage class
1 | i;main(h,w,j){char s[6];for(scanf("%d%d",&h,&w);i++<h;)for(j=0;j++<w;){scanf("%s",s);if(b[0]+b[2]+b[4]==313)printf("%c%d",j+64,i);}}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:3: error: ret... |
s062618302 | p03909 | C++ | #include<algorithm>
#include<iostream>
#include<functional>
#include<cmath>
#include<iomanip>
using namespace std;
int main(){
int n,x;
string count,aa="ABCDEFGHIJKLMNOPQRSTUVWXYZ;
cin>>n>>x;
for(int i=0;i<n;i++){
for(int j=0;j<x;j++){
string name;
cin>>name;
count=name;
if(count=="s... | a.cc:9:19: warning: missing terminating " character
9 | string count,aa="ABCDEFGHIJKLMNOPQRSTUVWXYZ;
| ^
a.cc:9:19: error: missing terminating " character
9 | string count,aa="ABCDEFGHIJKLMNOPQRSTUVWXYZ;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int ma... |
s717232829 | p03909 | C++ | #include<algorithm>
#include<iostream>
#include<functional>
#include<cmath>
#include<iomanip>
using namespace std;
int main(){
int n,x;
string count,aa="ABCDEFGHIJKLMNOPQRSTUVWXYZ;
cin>>n>>x;
for(int i=0;i<n;i++){
for(int j=0;j<x;j++){
string name;
cin>>name;
count=name;
if(count=="s... | a.cc:9:19: warning: missing terminating " character
9 | string count,aa="ABCDEFGHIJKLMNOPQRSTUVWXYZ;
| ^
a.cc:9:19: error: missing terminating " character
9 | string count,aa="ABCDEFGHIJKLMNOPQRSTUVWXYZ;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int ma... |
s742837252 | p03909 | Java | class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
H = sc.nextInt(), W = sc.nextInt();
String[][] S = new String[H][W];
ansH = -1,ansW = -1;
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
S[i][j] = s.next();
if(S[i][j].equals("snuke")){
... | Main.java:4: error: ';' expected
H = sc.nextInt(), W = sc.nextInt();
^
Main.java:6: error: ';' expected
ansH = -1,ansW = -1;
^
Main.java:16: error: '.class' expected
System.out.println(char("A"+j)+(i+1))
^
Main.java:16: error: not a statement
S... |
s280271620 | p03909 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
int H,W;
char A;
string S;
cin>>H>>W;
for(int y=0;y<H;y++){
for(int x=0;x<W;y++){
cin>>S;
A=65+x;
if(S=='snuke'){
cout<<A<<y+1<<endl;
return 0;
}
}
}
return 0;
} | a.cc:13:31: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
13 | if(S=='snuke'){
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:13:29: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::bas... |
s181472733 | p03909 | C++ | 15 10
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake sn... | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 15 10
| ^~
|
s275178510 | p03909 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int h, w;
cin >> h >> w;
vector< vector<string> > S(h, vector<string>(w);
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
cin >> S[i][j];
if (S[i][j] == "snuke") {
cout << 'A' + j << i + 1... | a.cc: In function 'int main()':
a.cc:10:56: error: expected ')' before ';' token
10 | vector< vector<string> > S(h, vector<string>(w);
| ~ ^
| )
|
s463499267 | p03909 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int h, w;
cin >> h >> w;
vector< vector<string> > S(h, vextor<string>(w);
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
cin >> S[i][j];
if (S[i][j] == "snuke") {
cout << 'A' + j << i + 1... | a.cc: In function 'int main()':
a.cc:10:39: error: 'vextor' was not declared in this scope
10 | vector< vector<string> > S(h, vextor<string>(w);
| ^~~~~~
a.cc:10:52: error: expected primary-expression before '>' token
10 | vector< vector<string> > S(h, v... |
s615465828 | p03909 | C++ | #include <bits/stdc++.h>
typedef long long LL;
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
using namespace std;
int main(void)
{
int h,w;
cin >> h >> w;
REP(i,h) RE(j,w){
string s;
cin >> s;
if(s=="snuke") cout << (char)'A'+j... | a.cc: In function 'int main()':
a.cc:13:15: error: 'j' was not declared in this scope
13 | REP(i,h) RE(j,w){
| ^
a.cc:13:12: error: 'RE' was not declared in this scope; did you mean 'REP'?
13 | REP(i,h) RE(j,w){
| ^~
| REP
|
s553767362 | p03909 | C++ | h, w = gets.split(" ").map(&:to_i)
x = y = -1
h.times { |i|
a = gets.split(" ")
if a.include?("snuke")
x = ('A'.ord+a.index("snuke"))
y = i+1
end
}
puts "#{x.chr}#{y}"
| a.cc:1:1: error: 'h' does not name a type
1 | h, w = gets.split(" ").map(&:to_i)
| ^
a.cc:13:1: error: 'puts' does not name a type
13 | puts "#{x.chr}#{y}"
| ^~~~
|
s904687561 | p03909 | C++ | 1 1
snuke | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 1 1
| ^
|
s719862630 | p03909 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int h, w;
cin >> h >> w;
vector< vector<string> > S(h, w);
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
cin >> S[i][j];
if (S[i][j] == "snuke") {
cout << 'A' + j << i + 1 << endl;
}
... | a.cc: In function 'int main()':
a.cc:10:40: error: no matching function for call to 'std::vector<std::vector<std::__cxx11::basic_string<char> > >::vector(int&, int&)'
10 | vector< vector<string> > S(h, w);
| ^
In file included from /usr/include/c++/14/vector:66,
... |
s904861202 | p03909 | C++ | 15 10
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake sn... | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 15 10
| ^~
|
s572760308 | p03910 | C++ | Inputs()= parse.(Int,split(readline()))
Input()=parse.(Int,readline())
function main()
N=Input()
A=[]
while N>0
t=floor(Int,N/2+1)
push!(A,t)
N-=t
end
sort!(A)
for i=1:length(A)
println(A[i])
end
end
main() | a.cc:1:9: error: expected constructor, destructor, or type conversion before '=' token
1 | Inputs()= parse.(Int,split(readline()))
| ^
|
s155451603 | p03910 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int n; cin >> n;
ll num = 0, ans;
for(int i=1; ; i++) {
num += i;
if(n <= num) {
ans = i;
break;
}
}
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
6 | ll num = 0, ans;
| ^~
a.cc:8:5: error: 'num' was not declared in this scope; did you mean 'enum'?
8 | num += i;
| ^~~
| enum
a.cc:10:7: error: 'ans' was not declared in this scope; did you ... |
s785511591 | p03910 | C++ | #include <cmath>
#include <map>
#include <queue>
using namespace std;
typedef long long ll;
typedef long double ld;
const ll MOD=ll(1e9+7);
//repetition
#define REP(i,n) for(ll i=0;i<n;i++)
ll P_POW(ll i, ll n) {
if(n==0) return 1;
n--;
ll rep = i;
while(n) {
rep = rep * i;
n--;
}
retur... | a.cc: In function 'unsigned int binarySearch(ll, ll, ll)':
a.cc:46:1: warning: no return statement in function returning non-void [-Wreturn-type]
46 | }
| ^
a.cc: At global scope:
a.cc:62:18: error: 'string' has not been declared
62 | void f(int rest, string s) {
| ^~~~~~
a.cc: In fun... |
s469538624 | p03910 | C++ | #include <iostream>
using LLONG = long long;
using namespace std;
int main()
{
LLONG N; cin >> N;
LLONG max = 0;
for(max = sqrt(2 * N);; ++max)
{
LLONG tmp = max * (max + 1) / 2;
if(tmp > N)
{
break;
}
}
LLONG ng = max * (max + 1) / 2 - N;
for(in... | a.cc: In function 'int main()':
a.cc:10:15: error: 'sqrt' was not declared in this scope
10 | for(max = sqrt(2 * N);; ++max)
| ^~~~
|
s860588158 | p03910 | C++ | #include <bits/stdc++.h>
using namespace std;
#define PI 3.141592653589793
#define MOD 1000000007
typedef long long ll;
typedef long double ld;
ll calc(ll N){
ll num = 1;
while(1){
if(num * (num + 1) /2 >= N){
break;
}
num++;
}
return num;
}
int main() {
ll N;
... | a.cc:1:1: error: extended character is not valid in an identifier
1 | #include <bits/stdc++.h>
| ^
a.cc:1:3: error: stray '#' in program
1 | #include <bits/stdc++.h>
| ^
a.cc:1:1: error: '\U00003000' does not name a type
1 | #include <bits/stdc++.h>
| ^~
a.cc: In function 'int main(... |
s355020527 | p03910 | C | //Exactly N points
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define int long long
#define rep(i,x,y) for(ll i=x;i<y;i++)
#define irep(i,a) for(auto i = a.begin(); i != a.end(); ++i)
#define nvarep(n,a) ll n;cin>>n;vector<ll>a(n);rep(i,0,n)cin>>a[i]
#define vecrep(n,a,type) vector<type>a(n);re... | main.c:3:9: fatal error: bits/stdc++.h: No such file or directory
3 | #include<bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s387222553 | p03910 | C++ | // include
// ------------------------------------------------
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
// func
// ------------------------------------------------
int CalcSumOfDigit(int n); // 各桁の和を計算する。
int getDigit(int n); // 数字の桁数を取得する。
string upper(string str); // 英字を... | a.cc: In function 'int main()':
a.cc:59:22: error: expected ';' before ')' token
59 | a = (n-2) / 2);
| ^
| ;
|
s264535900 | p03910 | C++ | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i ,n) for(int i = 0 ; i < (n) ; i ++ )
#define mp(x,y) make_pair(x,y)
#define all(x) (x).begin(),(x).end()
using namespace std;
using ll = long long;
using vin=vector<int>;
using P = pair<int, int>;
const int inf=1e9+7;
const ll INF=1e18;
wakaran | a.cc:12:1: error: 'wakaran' does not name a type
12 | wakaran
| ^~~~~~~
|
s405685322 | p03910 | C | #include <iostream>
#include <vector>
using namespace std;
int main(void)
{
int N; cin >> N;
while(N > 0)
{
cout << N/2+1 << endl;
N /= 2;
}
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s566162647 | p03910 | C++ | #include <stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
for (int i=1;i<=n;++i){
if (i*(i+1)/2>=n){
for (int j=i;j>=1;--j){
if (j<=n){
cout<<i<<"\n";
n-=j;
}
}
break;
}
}
return 0;
}
| a.cc:1:10: fatal error: stdc++.h: No such file or directory
1 | #include <stdc++.h>
| ^~~~~~~~~~
compilation terminated.
|
s400326923 | p03910 | C++ | #include <vector>
#include <cmath>
using namespace std;
int main(int argc, char* argv[]) {
long double N;
cin >> N;
long long X = ceil((-1.0 + sqrt(1.0 + 8.0 * N)) / 2.0);
vector<long long> ret;
ret.push_back(X);
long long cur = N;
cur -= X;
while (true) {
if (cur <= X - 1) {
ret.push_back... | a.cc: In function 'int main(int, char**)':
a.cc:8:3: error: 'cin' was not declared in this scope
8 | cin >> N;
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include <cmath>
+++ |+#include <iostream>
3 |
a.cc:34:... |
s039007619 | p03910 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0;i<n;i++)
#define erep(i,n) for(int i = 0;i<=n;i++)
#define rep1(i,n) for(int i = 1;i<n;i++)
#define erep1(i,n) for(int i = 1;i<=n;i++)
typedef long long ll;
#define vint vector<int>
#define vvint vector<vector<int>>
#define vstring vector<strin... | a.cc: In function 'int main()':
a.cc:37:15: error: 's' was not declared in this scope
37 | for(int i = s.size()-1;i >= 0;i--) cout << ans[i] << endl;
| ^
|
s684072181 | p03910 | C++ | #include <bits/stdc++.h>
using namespace std;
int justpoint01(int n, int i) {
int A = 0;
for (int j = 1; j < n + 1; j++) {
A += j;
if (0 <= A - n && A - n < j) {
i = j;
break;
}
return A,i;
}
}
void justpoint02(int a, int n, int i) {
bitset<i> B;
for (int j = 0; j < i; j++) {
... | a.cc: In function 'void justpoint02(int, int, int)':
a.cc:17:11: error: 'i' is not a constant expression
17 | bitset<i> B;
| ^
a.cc:17:11: note: in template argument for type 'long unsigned int'
a.cc:19:7: error: request for member 'set' in 'B', which is of non-class type 'int'
19 | B.set(j,... |
s358241029 | p03910 | C++ | #include <bits/stdc++.h>
using namespace std;
int justpoint01(int n, int i) {
int A = 0;
for (int j = 1; j < n + 1; j++) {
A += j;
if (0 <= A - N && A - N < j) {
i = j;
break;
}
return A,i;
}
}
void justpoint02(int a, int n, int i) {
bitset<i> B;
for (int j = 0; j < i; j++) {
... | a.cc: In function 'int justpoint01(int, int)':
a.cc:8:18: error: 'N' was not declared in this scope
8 | if (0 <= A - N && A - N < j) {
| ^
a.cc: In function 'void justpoint02(int, int, int)':
a.cc:17:11: error: 'i' is not a constant expression
17 | bitset<i> B;
| ^
a.... |
s375278448 | p03910 | C++ | import sys
from math import ceil, floor
from collections import deque, Counter, defaultdict
from fractions import gcd
from bisect import bisect_left
input = lambda: sys.stdin.readline().rstrip()
def eprint(s):
sys.stderr.write('DEBUG: {}'.format(s))
return
def main():
n = int(input())
cumsum = list()
... | a.cc:9:22: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
9 | sys.stderr.write('DEBUG: {}'.format(s))
| ^~~~~~~~~~~
a.cc:34:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
34 | if __name__ == '__main__':
|... |
s060531903 | p03910 | C++ | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define FOR(i,a,b) for(int i=(a); i<=(b); i++)
#define rep(i,n); for(int i = 0; i < (n); i++)
#define chmin(a,b) if((a)>(b)) (a)=(b);
#define chmax(a,b) if((a)<(b)) (a)=(b);
#define vi vector<int>
#define all(v) (v).begin(),(v).end()
int gcd(int a,in... | a.cc:50:5: error: redefinition of 'long long int gcd(long long int, long long int)'
50 | int gcd(int a,int b){/*a>=0,b>=0,¬(a=b=0)*/
| ^~~
a.cc:10:5: note: 'long long int gcd(long long int, long long int)' previously defined here
10 | int gcd(int a,int b){/*a>=0,b>=0,¬(a=b=0)*/
| ^~~
a.cc:53:5... |
s593430786 | p03910 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++)
#define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(),(a).end()
#define vi vector<int>
#define vii vector<vi>
#define pii pair<int,int>
#define priq... | a.cc: In function 'int main()':
a.cc:26:14: error: 'K' was not declared in this scope
26 | memo=P-K;
| ^
|
s755169123 | p03910 | C++ | #include<bits/stdc++.h>
#include<unordered_set>
#include<unordered_map>
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define FORR(i,a,b)for(ll i=(a);i<=(b);i++)
#define repR(i,n)... | a.cc: In function 'int main()':
a.cc:47:6: error: redeclaration of 'long long int cu'
47 | ll cu=0;
| ^~
a.cc:45:6: note: 'long long int cu' previously declared here
45 | ll cu=n;
| ^~
|
s133565484 | p03910 | C++ | #include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int ok = 20000, ng = 0;
while(ok - ng > 1){
int mid = (ok + ng) / 2;
if(mid * (mid + 1) / 2 >= N){
ok = mid;
}else{
ng = mid;
}
}
set<int> ans;
for(int i = ok; i >= 1; i--){
if(N >= i){
cout << ... | a.cc: In function 'int main()':
a.cc:18:3: error: 'set' was not declared in this scope
18 | set<int> ans;
| ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
1 | #include<iostream>
+++ |+#include <set>
2 | using namespace std;
a.cc:18... |
s039846463 | p03910 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int n; cin>>n;
int dp[1001];
dp[0]=0; dp[1]=1;
for(int i=2;i<1001;i++){
dp[i]=dp[i-1]+i;
}
int i=1000;
while(n!=0){
while(dp[i]>=n){
i--;
}
i+=1;
cout<<i<<endl;
n-=i;
}
| a.cc: In function 'int main()':
a.cc:19:4: error: expected '}' at end of input
19 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s392341932 | p03910 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int n; cin>>n;
int dp[1001];
dp[0]=0; dp[1]=1;
for(int i=2;i<1001;i++){
dp[i]=pd[i-1]+i;
}
int i=1000;
while(n!=0){
while(dp[i]>=n){
i--;
}
i+=1;
cout<<i<<endl;
n-=i;
}
} | a.cc: In function 'int main()':
a.cc:9:11: error: 'pd' was not declared in this scope; did you mean 'dp'?
9 | dp[i]=pd[i-1]+i;
| ^~
| dp
|
s356199353 | p03910 | C++ | #include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
#define rep(i,n) for(int i = 0;i<n;i++)
const long long MOD = 1000000007;
bool visited[8][8];
string map[8] = {};
int main(){
int n;cin >> n;
int i = 1;
int sum = 0;
while(sum < n){
sum += i;
i++;
}
int n... | a.cc: In function 'int main()':
a.cc:24:6: error: expected '}' at end of input
24 | }
| ^
a.cc:11:11: note: to match this '{'
11 | int main(){
| ^
|
s678836620 | p03910 | C++ | #include <bits/stdc++.h>
#pragma GCC optimize("O3")
#define REP(i,n) for(int i=0;i<n;i++)
#define REPP(i,n) for(int i=1;i<=n;i++)
#define ALL(obj) (obj).begin(), (obj).end()
const double PI = acos(-1);
const double EPS = 1e-15;
long long INF=(long long)1E17;
#define i_7 (long long)(1E9+7)
long mod(long a){
long lon... | a.cc: In function 'int main()':
a.cc:54:7: error: 'mav_v' was not declared in this scope; did you mean 'max_v'?
54 | mav_v = i;
| ^~~~~
| max_v
|
s094648967 | p03910 | C++ | #include <bits/stdc++.h>
#pragma GCC optimize("O3")
#define REP(i,n) for(int i=0;i<n;i++)
#define REPP(i,n) for(int i=1;i<=n;i++)
#define ALL(obj) (obj).begin(), (obj).end()
const double PI = acos(-1);
const double EPS = 1e-15;
long long INF=(long long)1E17;
#define i_7 (long long)(1E9+7)
long mod(long a){
long lon... | a.cc: In function 'int main()':
a.cc:54:7: error: 'mav_v' was not declared in this scope; did you mean 'max_v'?
54 | mav_v = i;
| ^~~~~
| max_v
a.cc:60:3: error: 'diff' was not declared in this scope
60 | diff = limit - n;
| ^~~~
|
s823104516 | p03910 | C++ | #include<bits\stdc++.h>
using namespace std;
#define int long long
int n,sum;
main() {
cin >> n;
for(int i=0;;++i) {
sum += i;
if (sum >= n) {
sum -= n;
n = i;
break;
}
}
for(int i=1;i<=n;++i) if (i != sum) cout << i << " ";
cout << endl;
}
| a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s075973515 | p03910 | C | #include<iostream>
#include<vector>
#include<set>
#include<queue>
#include<map>
#include<algorithm>
#include<cstring>
#include<string>
#include<cassert>
#include<cmath>
#include<climits>
#include<iomanip>
#include<stack>
using namespace std;
#define MOD 1000000007
#define REP(i,n) for(int (i)=0;(i)<(n);(i)++)
#define F... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s925523058 | p03910 | C++ | #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(ll (i) = (0);(i) < (n);++i)
#define REV(i,n) for(ll (i) = (n) - 1;(i) >= 0;--i)
#define PB push_back
#define EB emplace_back
#define MP make_pair
#define FI first
#define SE second
#define SHOW1d(v,n) {REP(WW,n)cerr << v[WW] << ' ';cerr << endl << end... | a.cc: In function 'int main()':
a.cc:40:39: error: invalid operands of types 'void' and 'const char [2]' to binary 'operator<<'
40 | REP(i, n)if(no[i])ans.PB(i+1) << " " << endl;
| ~~~~~~~~~~~ ^~ ~~~
| | |
| ... |
s107797669 | p03910 | C++ | #include<stdio.h>
int main()
{
int cnt=0,i;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
if(cnt<n)
cnt=cnt+i,tmp=i;
else
break;
}
for(i=tmp;i>=1;i--)
{
if(n-i>=0)
{
arr[i]=1;
n=n-i;
}
}
for(i=1;i<=tmp;i++)
{
if(ar... | a.cc: In function 'int main()':
a.cc:5:21: error: 'n' was not declared in this scope
5 | scanf("%d",&n);
| ^
a.cc:9:21: error: 'tmp' was not declared in this scope
9 | cnt=cnt+i,tmp=i;
| ^~~
a.cc:13:15: error: 'tmp' was not declared in this s... |
s302244393 | p03910 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,sum=0,tmp;
cin >> n;
for(int i=1;i<=n;i++){
sum+=i;
if(sum>=n){
tmp=sum-n;
break;
}
int a=0;
for(int i=1;i<=n;i++){
if(a==n)break;
if(i!=tmp){
cout << i << endl;
a+=i;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:21:2: error: expected '}' at end of input
21 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s412715744 | p03910 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,sum=0,tmp;
cin >> n;
for(int i=1;i<=n;i++){
sum+=i;
if(sum>=n){
tmp=sum-n;
break;
}
int a=0;
for(int i=1;i<=n;i++){
if(a==n) return 0;
if(i!=tmp){
cout << i << endl;
a+=i;
}
}
}
| a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
20 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s175528271 | p03910 | C++ | #include <bits/stdc++.h>
typedef long long LL;
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
using namespace std;
int plans(int n,int m)
{
if(n==0) return 0;
else if(m>n) return plans(n,--m);
else{
cout << m << endl;
return plans(n... | a.cc: In function 'int plans(int, int)':
a.cc:15:26: error: expected ';' before ')' token
15 | return plans(n-m,--m));
| ^
| ;
a.cc:15:26: error: expected primary-expression before ')' token
|
s227076949 | p03910 | C++ | #include <bits/stdc++.h>
typedef long long LL;
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
using namespace std;
int plans(int n,int m)
{
if(n==0) return 0;
else if(m>n) return plans(n,--m);
else{
cout << m << endl;
return plans(n... | a.cc: In function 'int plans(int, int)':
a.cc:15:26: error: expected ';' before ')' token
15 | return plans(n-m,--m))
| ^
| ;
a.cc:15:26: error: expected primary-expression before ')' token
|
s103575881 | p03910 | C++ |
using namespace std;
int plans(int n,int m)
{
if(n==0) return 0;
else if(m>n) return plans(n,--m);
else{
cout << m << endl;
return plans(n-m,--m))
}
}
int main(void)
{
int n;
cin >> n;
REP(i,n+1) if(i*(i+1)/2>=n) return plans(n,i);
return 0;
} | a.cc: In function 'int plans(int, int)':
a.cc:8:5: error: 'cout' was not declared in this scope
8 | cout << m << endl;
| ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 |
a.cc:8:18: error: '... |
s890232819 | p03910 | 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:38:2: error: stray '#' in program
38 | }#include <iostream>
| ^
a.cc:38:3: error: 'include' does not name a type
38 | }#include <iostream>
| ^~~~~~~
a.cc:64:5: error: redefinition of 'int main()'
64 | int main() {
| ^~~~
a.cc:27:5: note: 'int main()' previously defined here
27 ... |
s531603708 | p03911 | C++ | {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1... | a.cc:1:1: error: expected unqualified-id before '{' token
1 | {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1... |
s236505856 | p03911 | C++ | #include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(ll i=0;i<n;i++)
#define repl(i,l,r) for(ll i=(l);i<(r);i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define perl(i,r,l) for(ll i=r-1;i>=l;i--)
#define fi first
#define se second
#define pb push_back
#define ins insert
#define all(x)... | a.cc: In function 'int main()':
a.cc:10:12: error: request for member 'push_back' in 'a[l]', which is of non-class type 'll' {aka 'long long int'}
10 | #define pb push_back
| ^~~~~~~~~
a.cc:140:10: note: in expansion of macro 'pb'
140 | a[l].pb(i);}
| ^~
a.cc:144:13: error: requ... |
s120547429 | p03911 | C++ | #include <bits/stdc++.h>
using namespace std;
struct union_find {
vector<long long> parent, sizes;
void init(long long n) {
for (long long i = 0; i < n; i++) {
parent.push_back(i);
sizes.push_back(1);
}
}
long long root(long long n) {
if (parent[n] == n) return n;
return parent[n];
... | a.cc:21:2: error: expected ';' after struct definition
21 | }
| ^
| ;
|
s886606941 | p03911 | C++ | #include <bits/stdc++.h>
using namespace std;
struct union_find {
vector<long long> parent, sizes;
void init(long long n) {
for (long long i = 0; i < n; i++) {
parent.push_back(i);
sizes.push_back(1);
}
}
long long root(long long n) {
if (parent[n] == n) return n;
return parent[n];
... | a.cc:21:2: error: expected ';' after struct definition
21 | }
| ^
| ;
|
s869839767 | p03911 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,m;scanf("%d%d",&n,&m);
vector<vector<int>> G(n,vector<int>()),lang(m,vector<int>());
for(int i=0;i<n;i++){
int k;scanf("%d",&k);
for(int j=0;j<k;j++){
int l;scanf("%d",&l);l--;
lang[l].push_back(i);
... | a.cc: In function 'int main()':
a.cc:37:2: error: expected '}' at end of input
37 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s013054857 | p03911 | C++ | #include<bits/stdc++.h>
#include<unordered_set>
#include<unordered_map>
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define FORR(i,a,b)for(ll i=(a);i<=(b);i++)
#define repR(i,n)... | a.cc: In function 'int main()':
a.cc:96:14: error: 'root' was not declared in this scope
96 | h.insert(root(i));
| ^~~~
|
s034778679 | p03911 | C++ | #include <bits/stdc++.h>
using namespace std;
int parent[1000], ranks[1000];
void initset(int n) {
for (int i = 0; i < n; i++) {
parent[i] = i;
ranks[i] = 0;
}
}
int findset(int x) {
if (parent[x] == x) return x;
parent[x] = findset(parent[x]);
return parent[x];
}
bool sameset(int x, int y) {
re... | a.cc: In function 'void mergeset(int, int)':
a.cc:26:22: error: missing template arguments before '[' token
26 | if (ranks[x] > rank[y]) {
| ^
|
s038423029 | p03911 | Java | import java.util.*;
public class Main {
static int[] par;
static int[] rank;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
par = new int[n];
rank = new int[n];
ArrayList[] list = new ArrayList[m];
for(int i = ... | Main.java:26: error: incompatible types: Object cannot be converted to int
unite(list[i].get(j), list[i].get(j + 1));
^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiag... |
s927988243 | p03911 | C++ | #define _CRT_SECURE_NO_WARNINGS
#include "bits/stdc++.h"
#if defined(_MSC_VER) || defined(ONLINE_JUDGE)
#define getchar_unlocked _getchar_nolock
#define putchar_unlocked _putchar_nolock
#endif
#define rep(i, n) for(int i=0; i<(n); ++i)
#define FOR(i, m, n) for(int i=(m); i<(n); ++i)
#define sz(x) ((int)(x).size())
#def... | a.cc:181:10: fatal error: dump.hpp: No such file or directory
181 | #include "dump.hpp"
| ^~~~~~~~~~
compilation terminated.
|
s477301315 | p03911 | C++ | #include<iostream>
#include <list>
#include<stack>
#include<queue>
#include <vector>
#include <set>
#include <map>
#include<algorithm>
#include<math.h>
#include<stdlib.h>
#include<string>
#include <functional>
#include"time.h"
using namespace std;
#define FOR(k,m,n) for(int (k)=(m);(k)<(n);(k)++)
#define REP(i,n) FOR(... | a.cc: In function 'void output()':
a.cc:88:25: error: 'connection' was not declared in this scope; did you mean 'connectionP'?
88 | for (auto var : connection) {
| ^~~~~~~~~~
| connectionP
|
s621305726 | p03911 | C++ | #include <bits/stdc++.h>
#define ll long long
#define INF 999999999
#define MOD 1000000007
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
typedef pair<int,int>P;
const int MAX_N = 100005;
vector<int> lan[MAX_N];
int par[MAX_N];
int rank[MAX_N];
void initial(int n){ //初期化
for(int i=0;i<n;i++){
par[i... | a.cc: In function 'void initial(int)':
a.cc:20:17: error: reference to 'rank' is ambiguous
20 | rank[i] = 0;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/... |
s934833166 | p03911 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef pair<int, int> pii;
typedef long long ll;
typedef unsigned long long ull;
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin()... | a.cc: In function 'int main()':
a.cc:87:44: error: no match for 'operator-' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} and 'ull' {aka 'long long unsigned int'})
87 | set_union(all(a[h[0]]), all(a[h[j]]-j+1), back_i... |
s637902450 | p03911 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <queue>
#include <map>
typedef long long ll;
#define rep(i, b) for(int i = 0; i < b; i++)
#define repi(i, a, b) for(int i = a; i < b; i++)
#if defined(_MSC_VER) || __cplusplus > 199711L
#define aut(r,v) auto r = (v... | /tmp/ccsNsLfe.o: in function `main':
a.cc:(.text+0x1bd): relocation truncated to fit: R_X86_64_PC32 against symbol `C_check' defined in .bss section in /tmp/ccsNsLfe.o
a.cc:(.text+0x26a): relocation truncated to fit: R_X86_64_PC32 against symbol `C_check' defined in .bss section in /tmp/ccsNsLfe.o
a.cc:(.text+0x2ad): r... |
s035117696 | p03911 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <queue>
#include <map>
typedef long long ll;
#define rep(i, b) for(int i = 0; i < b; i++)
#define repi(i, a, b) for(int i = a; i < b; i++)
#if defined(_MSC_VER) || __cplusplus > 199711L
#define aut(r,v) auto r = (v... | /tmp/cczdZv1R.o: in function `main':
a.cc:(.text+0x214): relocation truncated to fit: R_X86_64_PC32 against symbol `C_check' defined in .bss section in /tmp/cczdZv1R.o
a.cc:(.text+0x2cc): relocation truncated to fit: R_X86_64_PC32 against symbol `C_check' defined in .bss section in /tmp/cczdZv1R.o
a.cc:(.text+0x313): r... |
s576535084 | p03911 | C++ | 4 4
2 1 2
2 1 2
1 3
2 4 3 | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 4 4
| ^
|
s252699144 | p03911 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <queue>
#include <map>
typedef long long ll;
#define rep(i, b) for(int i = 0; i < b; i++)
#define repi(i, a, b) for(int i = a; i < b; i++)
#if defined(_MSC_VER) || __cplusplus > 199711L
#define aut(r,v) auto r = (v... | /tmp/cccx5z2j.o: in function `main':
a.cc:(.text+0x214): relocation truncated to fit: R_X86_64_PC32 against symbol `check' defined in .bss section in /tmp/cccx5z2j.o
a.cc:(.text+0x2cc): relocation truncated to fit: R_X86_64_PC32 against symbol `check' defined in .bss section in /tmp/cccx5z2j.o
a.cc:(.text+0x313): reloc... |
s871609791 | p03911 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <queue>
#include <map>
typedef long long ll;
#define rep(i, b) for(int i = 0; i < b; i++)
#define repi(i, a, b) for(int i = a; i < b; i++)
#if defined(_MSC_VER) || __cplusplus > 199711L
#define aut(r,v) auto r = (v... | /tmp/ccYyQLmk.o: in function `main':
a.cc:(.text+0x214): relocation truncated to fit: R_X86_64_PC32 against symbol `check' defined in .bss section in /tmp/ccYyQLmk.o
a.cc:(.text+0x2cc): relocation truncated to fit: R_X86_64_PC32 against symbol `check' defined in .bss section in /tmp/ccYyQLmk.o
a.cc:(.text+0x313): reloc... |
s463497811 | p03911 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <queue>
#include <map>
typedef long long ll;
#define rep(i, b) for(int i = 0; i < b; i++)
#define repi(i, a, b) for(int i = a; i < b; i++)
#if defined(_MSC_VER) || __cplusplus > 199711L
#define aut(r,v) auto r = (v... | /tmp/ccMfPoiM.o: in function `main':
a.cc:(.text+0x214): relocation truncated to fit: R_X86_64_PC32 against symbol `check' defined in .bss section in /tmp/ccMfPoiM.o
a.cc:(.text+0x2cc): relocation truncated to fit: R_X86_64_PC32 against symbol `check' defined in .bss section in /tmp/ccMfPoiM.o
a.cc:(.text+0x313): reloc... |
s145559207 | p03911 | C++ | #include <iostream>
#include <vector>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <queue>
#include <set>
using namespace std;
int main() {
int l[100000];
bool reached[100001];
int n, m;
cin >> n >> m;
vector<vector<int>> oks(m + 1);
int k;
for (int i = 0; i <= m; i++) {
reached[i]... | a.cc: In function 'int main()':
a.cc:39:40: error: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'class std::vector<int>'} has no member named 'puah_back'; did you mean 'push_back'?
39 | oks[y].puah_back(x);
| ... |
s148144266 | p03911 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <queue>
#include <map>
typedef long long ll;
#define rep(i, b) for(int i = 0; i < b; i++)
#define repi(i, a, b) for(int i = a; i < b; i++)
#if defined(_MSC_VER) || __cplusplus > 199711L
#define aut(r,v) auto r = (v... | /tmp/cc1YQFpE.o: in function `main':
a.cc:(.text+0xc2): relocation truncated to fit: R_X86_64_PC32 against symbol `T' defined in .bss section in /tmp/cc1YQFpE.o
a.cc:(.text+0x1a6): relocation truncated to fit: R_X86_64_PC32 against symbol `T' defined in .bss section in /tmp/cc1YQFpE.o
a.cc:(.text+0x223): relocation tru... |
s465732610 | p03911 | C++ | #include <bits/stdc++.h> // {{{
// clang-format off
#pragma GCC optimize "O3,omit-frame-pointer,inline"
#pragma GCC target "tune=native,sse4.2"
#define ARG4(_1, _2, _3, _4, ...) _4
#define rep(...) ARG4(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define REP(i, a) FOR(i, 0, a)
#define FOR(i, a, b) for (int i = (a); i < (int)(b... | a.cc:41:10: fatal error: copr/ds/uf.hpp: No such file or directory
41 | #include <copr/ds/uf.hpp>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s775317086 | p03911 | C++ | #include <iostream>
#include <vector>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <queue>
using namespace std;
bool ok[100001][100001];
int l[100000];
int main() {
bool reached[100001];
int n, m;
cin >> n >> m;
int k;
for (int i = 0; i < m; i++) {
reached[i] = true;
}
for (int i ... | /tmp/cc6VlUPH.o: in function `main':
a.cc:(.text+0x9d): relocation truncated to fit: R_X86_64_PC32 against symbol `l' defined in .bss section in /tmp/cc6VlUPH.o
a.cc:(.text+0xc6): relocation truncated to fit: R_X86_64_PC32 against symbol `l' defined in .bss section in /tmp/cc6VlUPH.o
a.cc:(.text+0x10d): relocation trun... |
s137360126 | p03911 | C++ | #include "bits/stdc++.h"
using namespace std;
//諸機能
#pragma region MACRO
#define putans(x) std::cerr << "[ answer ]: " ; cout << (x) << endl
#define dputans(x) std::cerr << "[ answer ]: "; cout << setprecision(40) << (double)(x) << endl
#define REP(i,a,n) for(int i=(a); i<(int)(n); i++)
#define RREP(i,n,a) for(int i... | a.cc: In function 'int main()':
a.cc:68:21: error: expected '(' before 'each'
68 | for each( auto k in usedL[i] ) {
| ^~~~
| (
a.cc:68:27: error: expected primary-expression before 'auto'
68 | for each( auto k in usedL[i] ) {
... |
s995795061 | p03911 | C++ | #include <iostream>
#include <vector>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <queue>
using namespace std;
bool ok[100001][100001];
int l[100000];
bool reached[100001];
int main() {
int n, m;
cin >> n >> m;
int k;
for (int i = 0; i <= m; i++) {
reached[i] = true;
}
for (int i ... | /tmp/ccLxuAqO.o: in function `main':
a.cc:(.text+0x45): relocation truncated to fit: R_X86_64_PC32 against symbol `reached' defined in .bss section in /tmp/ccLxuAqO.o
a.cc:(.text+0x94): relocation truncated to fit: R_X86_64_PC32 against symbol `l' defined in .bss section in /tmp/ccLxuAqO.o
a.cc:(.text+0xbd): relocation... |
s955581109 | p03911 | C++ | #include <bits/stdc++.h>
typedef long long LL;
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
using namespace std;
class UnionFind {
vector<int> p;
public:
UnionFind (int n) : p(n, -1) {}
int root(int x) {
return p[x] < 0 ? x : p[x] = r... | a.cc: In function 'int main()':
a.cc:41:27: error: expected unqualified-id before 'union'
41 | if(la[l]!=-1) if(uf.union(la[l], i)) ++answer;
| ^~~~~
a.cc:41:27: error: expected ')' before 'union'
41 | if(la[l]!=-1) if(uf.union(la[l], i)) ++answer;
| ... |
s578182783 | p03911 | C++ | #include <iostream>
#include <vector>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <queue>
using namespace std;
bool ok[100001][100001];
int l[100000];
bool reached[100001];
int main() {
int n, m;
cin >> n >> m;
// cout << n << " " << m << endl;
int k;
for (int i = 0; i <= m; i++) {
... | /tmp/cc46YvJG.o: in function `main':
a.cc:(.text+0x45): relocation truncated to fit: R_X86_64_PC32 against symbol `reached' defined in .bss section in /tmp/cc46YvJG.o
a.cc:(.text+0x94): relocation truncated to fit: R_X86_64_PC32 against symbol `l' defined in .bss section in /tmp/cc46YvJG.o
a.cc:(.text+0xbd): relocation... |
s824795473 | p03911 | C++ | #include "bits/stdc++.h"
using namespace std;
//諸機能
#pragma region MACRO
#define putans(x) std::cerr << "[ answer ]: " ; cout << (x) << endl
#define dputans(x) std::cerr << "[ answer ]: "; cout << setprecision(40) << (double)(x) << endl
#define REP(i,a,n) for(int i=(a); i<(int)(n); i++)
#define RREP(i,n,a) for(int i... | a.cc: In function 'int main()':
a.cc:68:21: error: expected '(' before 'each'
68 | for each( auto k in usedL[i] ) {
| ^~~~
| (
a.cc:68:27: error: expected primary-expression before 'auto'
68 | for each( auto k in usedL[i] ) {
... |
s669250357 | p03911 | C++ | #include<iostream>
#include<cstdio>
#include<cmath>
#include<vector>
#include<queue>
#include<map>
#include<algorithm>
#include<complex>
#include<string>
#include<cstring>
using namespace std;
#define rep2(x,from,to) for(int x=(from);(x)<(to);(x)++)
#define rep(x,to) rep2(x,0,to)
#define INF 100000000
#define debug(x) ... | a.cc: In function 'void init(int)':
a.cc:30:17: error: reference to 'rank' is ambiguous
30 | rank[i]=0;
| ^~~~
In file included from /usr/include/c++/14/bits/move.h:37,
from /usr/include/c++/14/bits/exception_ptr.h:41,
from /usr/include/c++/14/e... |
s901903143 | p03911 | C++ | #include <bits/stdc++.h>
#include<iostream>
#include<cstdio>
#include<vector>
#include<queue>
#include<map>
#include<cstring>
#include<string>
#include <math.h>
#include<algorithm>
// #incl... | a.cc: In function 'int main()':
a.cc:124:14: error: 'cour' was not declared in this scope
124 | else cour<<"NO"<<endl;
| ^~~~
|
s016446838 | p03911 | C++ | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <functional>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <li... | a.cc:80:7: error: 'N' was not declared in this scope
80 | int l[N];
| ^
a.cc: In function 'int main()':
a.cc:82:14: error: 'l' was not declared in this scope
82 | mset(l, -1);
| ^
a.cc:33:27: note: in definition of macro 'mset'
33 | #define mset(m,v) memset((m),(v),sizeof... |
s228380403 | p03911 | C++ | #include<bits/stdc++.h>
using namespace std;
struct UnionFind
{
vector< int > data;
UnionFind(int sz)
{
data.assign(sz, -1);
}
void unite(int x, int y)
{
x = find(x), y = find(y);
if(x != y) {
if(data[x] > data[y]) swap(x, y);
data[x] += data[y];
data[y] = x;
}
}
i... | a.cc:38:3: error: expected initializer before 'int'
38 | int N, M;
| ^~~
a.cc:39:3: error: 'cin' does not name a type
39 | cin >> N >> M;
| ^~~
a.cc:41:16: error: 'N' was not declared in this scope
41 | UnionFind uf(N + M);
| ^
a.cc:41:20: error: 'M' was not declared ... |
s147054206 | p03912 | C++ | #include<bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
#define rrep(i,n) for(int i = (n)-1; i >= 0; i--)
#define rep1(i,n) for(int i = 1; i <= (n); i++)
#define rrep1(i,n) for(int i = (n); i > 0; i--)
#define ll long long
#define pi pair<int, int>
#define pll pair<ll, ll>
#define MOD 1000000007
#defin... | a.cc: In function 'int main()':
a.cc:47:12: error: 'tt' was not declared in this scope; did you mean 't'?
47 | if(tt>=2 && mm[k]>=2){
| ^~
| t
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.