submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s546334359 | p00756 | C++ | #include <iostream>
#include <complex>
#include <vector>
using namespace std;
#define x real()
#define y imag()
#define pb push_back
typedef double D;
typedef complex<D> P;
typedef struct circle{
P p;
D r;
} C;
int rel[24];
C c[24];
vector<int> color[4];
bool used[1<<24];
int cmax;
bool IC(C a,C b){
D d=norm(a.p... | a.cc: In function 'int main()':
a.cc:40:29: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'double')
40 | cin >> c[i].p.x >> c[i].p.y >> c[i].r;
| ~~~ ^~
| |
| ... |
s686778187 | p00756 | C++ | #include<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
using namespace std;
struct Disk{
double x, y, r;
int c, id;
}disk[30];
vector<Disk> colors[6];
char dp[1<<24];
double dis[25][25];
bool iscover(int a, int b){
double r = (disk[a].r+disk[b].r)*(disk[a].r+disk[b].r);
if(dis[a][b] < r){
return ... | a.cc: In function 'int main()':
a.cc:59:81: error: no matching function for call to 'max(char&, int)'
59 | dp[nstate] = max(dp[nstate], dp[i]+2);
| ~~~^~~~~~~~~~~~~~~~~~~... |
s872386143 | p00756 | C++ | #include<stdio.h>
#include<stdlib.h>
#include<algorithm>
using namespace std;
struct circle
{
double x, y, r;
int c;
}cc[30];
int dp[(1<<24)];
int n;
bool intersect(int i, int j)
{
double x1, y1, x2, y2;
double r1, r2;
x1 = cc[i].x, y1 = cc[i].y, r1 = cc[i].r;
x2 = cc[j].x, y2 = cc[j].y, r2 = cc... | a.cc:56:5: error: expected unqualified-id before 'return'
56 | return true;
| ^~~~~~
a.cc:57:1: error: expected declaration before '}' token
57 | }
| ^
a.cc: In function 'bool check(int, int, int)':
a.cc:54:5: warning: control reaches end of non-void function [-Wreturn-type]
54 | }
... |
s088094577 | p00756 | C++ | #include<stdio.h>
#include<stdlib.h>
#include<algorithm>
#define INIT 100
using namespace std;
struct circle
{
int x, y, r;
int c;
}cc[24];
char dp[(1<<24)];
int n;
bool intersect(int i, int j)
{
int x1, y1, x2, y2;
int r1, r2;
x1 = cc[i].x, y1 = cc[i].y, r1 = cc[i].r;
x2 = cc[j].x, y2 = cc[j].y... | a.cc:57:5: error: expected unqualified-id before 'return'
57 | return true;
| ^~~~~~
a.cc:58:1: error: expected declaration before '}' token
58 | }
| ^
a.cc: In function 'bool check(int, int, int)':
a.cc:55:5: warning: control reaches end of non-void function [-Wreturn-type]
55 | }
... |
s148717203 | p00756 | C++ | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <algorithm>
#include <vector>
#include <array>
#include <utility>
inline int getInt() { int s; scanf("%d", &s); return s; }
#define SIZE 10
typedef array<array<int, SIZE>, SIZE> Table;
int dx[] = {0, 1, 0, -1};
int dy[] = {1, 0, -1, 0};
int g_c;
void fillC... | a.cc:10:9: error: 'array' does not name a type
10 | typedef array<array<int, SIZE>, SIZE> Table;
| ^~~~~
a.cc:16:6: error: variable or field 'fillColor' declared void
16 | void fillColor(Table &state, int from, int to) {
| ^~~~~~~~~
a.cc:16:16: error: 'Table' was not declared in this scop... |
s726559423 | p00756 | C++ | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <algorithm>
#include <vector>
#include <array>
#include <utility>
using namespace std;
typedef long long ll;
#define ALL(c) begin((c)), end((c))
#define REP(i,n) for(ll i=0;i<(ll)n;++i)
inline int getInt() { int s; scanf("%d", &s); return s; }
#define SIZ... | a.cc: In function 'int main()':
a.cc:79:30: error: expected ';' before 'if'
79 | cin >> h >> w
| ^
| ;
80 | if (h == 0) break;
| ~~
|
s931431381 | p00756 | C++ | #include<cstdio>
#include<iostream>
#include<algorithm>
#define rep(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
#define REP(i,a) rep((i),0,(a))
using namespace std;
//global
struct Data{
int x, y,r;
int c;
};
Data data[24];
bool dp[1024 * 1024 * 16];
int min_num;
int N;
bool double_check(int i, int j){
int dx, dy, dr;
d... | a.cc: In function 'bool double_check(int, int)':
a.cc:19:14: error: reference to 'data' is ambiguous
19 | dx = data[j].x - data[i].x;
| ^~~~
In file included from /usr/include/c++/14/string:53,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/i... |
s867983055 | p00756 | C++ | #include<iostream>
#include<cmath>
const int limit=10;
int n,ans;
int num[limit],x[limit],y[limit],r[limit],v[limit];
bool visit[limit];
bool road[limit][limit];
using namespace std;
void dfs(int step)
{
if(step-1>ans) ans=step-1;
for(int i=1;i<=n;i++)
if ((!visit[i])&&(num[i]==0))
for(int j=1;j<=n;j++) if ((v[i... | a.cc: In function 'int main()':
a.cc:43:47: error: 'link' was not declared in this scope
43 | for(int j=1;j<=n;j++) link[i][j]=false;
| ^~~~
|
s155985519 | p00757 | Java |
import java.io.*;
import java.util.*;
public class AOJ1176 {
int H;
int W;
int S;
int[][] map;
int[][] sum;
Pair[][][][] dp;
public void solve() {
while (true) {
H = nextInt();
W = nextInt();
S = nextInt();
if (H == 0) break;
map = new int[H][W];
sum = new int[H + 1][W + 1];
dp = ... | Main.java:5: error: class AOJ1176 is public, should be declared in a file named AOJ1176.java
public class AOJ1176 {
^
1 error
|
s817329985 | p00757 | Java | import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
public class Main {
static PrintWriter out;
static InputReader ir;
static boolean debug = false;
static int s;
static voi... | Main.java:12: error: illegal character: '\u3000'
static boolean debug =?false;
^
1 error
|
s021623978 | p00757 | Java | import java.io.*;
import java.util.*;
public class Main {
private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
private static StringTokenizer st;
public static void main ( String [] args ) throws IOException
{
int h,w,s;
while(true){
st = new StringTokeniz... | Main.java:53: error: variable declaration not allowed here
int[] temp = {0, 0};
^
1 error
|
s791819290 | p00757 | Java |
import java.util.Scanner;
public class blackout2 {
Scanner sc=new Scanner(System.in);
static int h;
static int w;
static int mandatory;
static int[][][][] sumArr;
static int [][]arr;
static int[][][][] Divdone;
static int[][][][] Remdone;
private void cal(){
while(true){
h=sc... | Main.java:4: error: class blackout2 is public, should be declared in a file named blackout2.java
public class blackout2 {
^
1 error
|
s920590563 | p00757 | C++ | ////////////////////
/// template ///
////////////////////
#include <cassert>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <numeric>
#include <functional>
#include <vector>
#include <queue>
#include <string>
#include <complex>
#include <s... | a.cc: In function 'std::pair<COST, std::vector<int> > prim(const std::vector<std::vector<_Tp> >&)':
a.cc:316:9: error: need 'typename' before 'P::COST' because 'P' is a dependent scope
316 | P::COST totalCost = 0;
| ^
a.cc:316:16: error: expected ';' before 'totalCost'
316 | P::COST to... |
s693260099 | p00757 | C++ | #include <iostream>
#include <utility>
using namespace std;
typedef pair<int, int> pii;
int dx[] = {1,0,-1,0};
int dy[] = {0,1,0,-1};
const pii INIT = pii(-1,-1);
int board[33][33];
int acc[33][33];
pii memo[33][33][33][33];
int H, W, E, S;
int getsum(int p, int q, int x, int y){
return board[x][y] - board[p][y] - ... | a.cc: In function 'int main()':
a.cc:46:5: error: 'memset' was not declared in this scope
46 | memset(board, 0, sizeof(board));
| ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include <utility>
+++ |+#include <cstrin... |
s702548999 | p00757 | C++ | #include <iostream>
using namespace std;
#define rep2(i,m,n) for(int i=m;i<n;i++)
#define rep(i,n) rep2(i,0,n)
struct p{
int g,m;
p(){}
p(int g,int m):g(g),m(m){}
};
int h,w,s,sum[32][32];
p dp[32][32][32][32];
int main(){
while(cin>>h>>w>>s&&h){
memset(sum,0,sizeof(sum));
memset(dp,0,sizeof(dp));
rep(i,h... | a.cc: In function 'int main()':
a.cc:18:17: error: 'memset' was not declared in this scope
18 | memset(sum,0,sizeof(sum));
| ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include <iostream>
++... |
s386186087 | p00757 | C++ | #include<iostream>
#include<vector>
using namespace std;
int h,w,s;
int cost[32][32];
int sum[33][33];
int num[32][32][32][32];
int cap[32][32][32][32];
int M;
int calc_sum(int x1,int y1,int x2,int y2){
x1++;y1++;x2++;y2++;
return sum[y2][x2]-sum[y2][x1-1]-sum[y1-1][x2]+sum[y1-1][x1-1];
}
typedef pair<int,int> A;
... | a.cc: In function 'void solve()':
a.cc:49:9: error: 'memset' was not declared in this scope
49 | memset(num,-1,sizeof(num));
| ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include<vector>
+++ |+#include <cst... |
s184864312 | p00757 | C++ | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
#define INF (1<<20)
int h,w,s;
int u[32][32];
struct Group{
int n,yobi;
}dp[32][32][32][32];
int total[32][32];
int calc(int y1,int y2,int x1,int x2){
int a,b,c,d;
b=c=d=0;
a = total[y2][x2];
if(x1)b = total[y2][x1-1];
... | a.cc: In function 'int main()':
a.cc:64:17: error: 'memset' was not declared in this scope
64 | memset(dp,-1,sizeof(dp));
| ^~~~~~
a.cc:5:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
4 | #include<algorithm>
+++... |
s098049093 | p00757 | C++ | typedef pair<int,int> P;
int h,w,s,all,t[32][32];
int rec[32][32][32][32]; //長方形の合計[ly][lx][hy][hx]
P dp[32][32][32][32]; //メモ化
//全ての(lx,ly)〜(hx,hy)の長方形合計を計算
void mkRec(){
memset(rec,0,sizeof(rec));
rep(i,h){
rep(j,w){
rec[i][j][i][j] = t[i][j];
for(int y=i-1;y>=0;y--)
rec[y][j][i][j] = ... | a.cc:1:9: error: 'pair' does not name a type
1 | typedef pair<int,int> P;
| ^~~~
a.cc:5:1: error: 'P' does not name a type
5 | P dp[32][32][32][32]; //メモ化
| ^
a.cc: In function 'void mkRec()':
a.cc:9:3: error: 'memset' was not declared in this scope
9 | memset(rec,0,sizeof(rec));
... |
s257759650 | p00757 | C++ | #include <iostream>
#include <cstring>
#include <string>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
typedef pair<int,int> P;
int h,w,s,all,t[32][32];
int rec[32][32][32][32]; //長方形の合計[ly][lx][hy][hx]
P dp[32][32][32][32]; //メモ化
//全ての(lx,ly)〜(hx,hy)の長方形合計を計算
void mkR... | a.cc: In function 'void mkRec()':
a.cc:18:7: error: 'i' was not declared in this scope
18 | rep(i,h){
| ^
a.cc:18:3: error: 'rep' was not declared in this scope; did you mean 'rec'?
18 | rep(i,h){
| ^~~
| rec
a.cc: In function 'int main()':
a.cc:68:9: error: 'i' was not declared in... |
s558503361 | p00757 | C++ | #include<cstdio>
#include<algorithm>
using namespace std;
int field[33][33];
int sum[33][33];
int num[33][33][33][33];
int msz[33][33][33][33];
int H,W,S;
int all;
const int inf=1<<29;
int get(int i1,int i2,int j1,int j2){
i1--;j1--;
return sum[i2][j2]-sum[i1][j2]-sum[i2][j1]+sum[i1][j1];
}
int main(){
while(t... | a.cc: In function 'int main()':
a.cc:26:17: error: 'memset' was not declared in this scope
26 | memset(sum,0,sizeof(sum));
| ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include<algorithm>
++... |
s656511423 | p00758 | C++ | #include<iostream>
#include<fstream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
#define LL long long
/*
#ifdef unix
#define INT64 "%lld"
#else
#define INT64 "%I64d"
#endif
*/
using namespace std;
int n,m,cnt,snt,K,s,times;
int xx1,xx2,yy1,yy2,len;
LL oo=1000000007;
double pi=3.1415926535897;... | a.cc:32:9: error: expected unqualified-id before 'else'
32 | else if (dis(x1,y2,0,0)+y1-y2+x2-x1+dis(x2,y2,0,0)+y1-y2>=2*l)
| ^~~~
a.cc:86:9: error: expected unqualified-id before 'else'
86 | else //蜿ッ莉・逶ク莠、
| ^~~~
a.cc:121:15: error: expected constructor, destructor, o... |
s857803171 | p00758 | C++ | #include<iostream>
#include<fstream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
#define LL long long
/*
#ifdef unix
#define INT64 "%lld"
#else
#define INT64 "%I64d"
#endif
*/
using namespace std;
int n,m,cnt,snt,K,s,times;
int xx1,xx2,yy1,yy2,len;
LL oo=1000000007;
double pi=3.1415926535897;... | a.cc:32:9: error: expected unqualified-id before 'else'
32 | else if (dis(x1,y2,0,0)+y1-y2+x2-x1+dis(x2,y2,0,0)+y1-y2>=2*l)
| ^~~~
a.cc:86:9: error: expected unqualified-id before 'else'
86 | else //蜿ッ莉・逶ク莠、
| ^~~~
a.cc:121:15: error: expected constructor, destructor, o... |
s232584840 | p00759 | C++ | #include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
#define REP(i,s,n) for(int i=(int)(s);i<(int)(n);++i)
#define rep(i,n) REP(i, 0, n)
typedef pair<int, int> pint;
int H, W;
struct Edge { int num, to; Edge(int n, int t) : num(n), to(t) {}};
vector<vector<Edge>> edges;
bool bfs(int broken_edge, v... | a.cc: In function 'int main()':
a.cc:45:21: error: no matching function for call to 'std::vector<std::vector<Edge> >::assign(int)'
45 | edges.assign(H * W);
| ~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/vector:66,
from /usr/include/c++/14/functional:64,
... |
s504006096 | p00760 | Java | // 国内予選 2012 A ミレニアム
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
int y = sc.nextInt();
int m = sc.nextInt();
int d... | Main.java:22: error: ';' expected
length += lengthOfMonth(y, m) - d a+ 1;
^
Main.java:22: error: not a statement
length += lengthOfMonth(y, m) - d a+ 1;
^
2 errors
|
s778992805 | p00760 | Java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.math.BigDecimal;
import java.math.BigInteger;
public cl... | Main.java:29: error: not a statement
a[2]==1;
^
1 error
|
s993425665 | p00760 | Java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.math.BigDecimal;
import java.math.BigInteger;
public cl... | Main.java:22: error: cannot find symbol
int[] a=ir.nextIntArray(n);
^
symbol: variable n
location: class Main
1 error
|
s872402682 | p00760 | Java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.math.BigDecimal;
import java.math.BigInteger;
public cl... | Main.java:29: error: not a statement
a[2]==1;
^
1 error
|
s340297276 | p00760 | Java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.math.BigDecimal;
import java.math.BigInteger;
public cl... | Main.java:33: error: cannot find symbol
out.println(birth-ans);
^
symbol: variable ans
location: class Main
1 error
|
s965138296 | p00760 | Java | #include <stdio.h>
int Days(int year, int month, int day);
int main(){
int data;
int year, month, day;
int i;
int millennium_days = Days(1000, 1, 1);
int birthday;
scanf("%d", &data);
for(i=0; i<data; i++){
scanf("%d %d %d", &year, &month, &day);
birthday = Days(year, month, day);
printf("%d\n", millenn... | Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
(use --enable-preview to enable unnamed classes)
Main.java:1... |
s658168684 | p00760 | Java | import java.util.*;
class Main {
public static void main(String[] args) {
int big=20;
int sml=19;
Scanner scn=new Scanner(System.in);
int n=scn.nextInt();
int[][] dat=new int[n][3];
int[] ans=new int[n];
for (int i=0;i<dat.length;i++){
for(int j=0;j<3;j++){
dat[i][j]=scn.nextInt();
}
int cnt... | Main.java:50: error: reached end of file while parsing
}
^
1 error
|
s324538094 | p00760 | Java |
import java.util.*;
import static java.lang.Math.*;
import static java.util.Arrays.*;
public class P1179 {
int INF = 1 << 28;
void run() {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int c=0;c<n;c++) {
int y = sc.nextInt(), m = sc.nextInt(), d = sc.nextInt(), cnt = 0;
while( !( y ==... | Main.java:6: error: class P1179 is public, should be declared in a file named P1179.java
public class P1179 {
^
1 error
|
s208515579 | p00760 | Java | package Vol011;
import java.util.Scanner;
public class AOJ11_79
{
public static void main(String arg[])
{
Scanner in = new Scanner(System.in);
int n=in.nextInt();
while(n--!=0)
{
int all=0;
all=333*200+666*195+1;
int y=in.nextInt();
int m=in.nextInt();
int d=in.nextInt();
int yc =0;
int... | Main.java:4: error: class AOJ11_79 is public, should be declared in a file named AOJ11_79.java
public class AOJ11_79
^
1 error
|
s358732109 | p00760 | Java | import java.util.*;
public class 1179Millennium {
static Scanner kbd = new Scanner(System.in);
public static void main(String[] args) {
int n = kbd.nextInt(); //データセット数
while(n>0) {
solve();
n--;
}
}
static void solve() {
int y = kbd.nextInt(); //誕生年
int m = kbd.nextInt(); /... | Main.java:3: error: <identifier> expected
public class 1179Millennium {
^
1 error
|
s461544540 | p00760 | Java | mport java.util.*;
public class AOJ1179{
public static boolean judge(int y){
if(y%3==0) return true;
return false;
}
public static int days(int y,int m,int d){
int days = 0;
for(int i=1;i<y;i++){
if(i%3=... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
1 error
|
s604429443 | p00760 | Java | mport java.util.*;
public class Main{
public static boolean judge(int y){
if(y%3==0) return true;
return false;
}
public static int days(int y,int m,int d){
int days = 0;
for(int i=1;i<y;i++){
if(i%3==0)... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
1 error
|
s537463827 | p00760 | Java | mport java.util.*;
class AOJ1179{
public static boolean judge(int y){
if(y%3==0) return true;
return false;
}
public static int days(int y,int m,int d){
int days = 0;
for(int i=1;i<y;i++){
if(i%3==0){
... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
1 error
|
s165844272 | p00760 | Java | mport java.util.*;
class Main{
public static boolean judge(int y){
if(y%3==0) return true;
return false;
}
public static int days(int y,int m,int d){
int days = 0;
for(int i=1;i<y;i++){
if(i%3==0){
... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
1 error
|
s097552080 | p00760 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s504815982 | p00760 | C | #include <stdio.h>
#define USUAL_DAYS_OF_YEAR 195
#define UNUSUAL_DAYS_OF_YEAR 200
#define DAYS_OF_THREEYEARS 590
#define DAYS_OF_SMONTH 19
#define DAYS_OF_LMONTH 20
long CntDay(int y,int m,int d);
int main(){
int n,i,Year,Month,Day;
scanf("%d\n",&n);
i=1;
while(i<=n){
scanf("%d %d %d",&Year,&Month,&Day);
pri... | main.c: In function 'CntDay':
main.c:25:19: error: expected ';' before '}' token
25 | return yea+mon+day
| ^
| ;
26 | }
| ~
main.c: At top level:
main.c:30:1: error: expected identifier or '(' before '}' token
30 | }
| ^
|
s361437260 | p00760 | C | #include <stdio.h>
#define USUAL_DAYS_OF_YEAR 195
#define UNUSUAL_DAYS_OF_YEAR 200
#define DAYS_OF_THREEYEARS 590
#define DAYS_OF_SMONTH 19
#define DAYS_OF_LMONTH 20
long CntDay(int y,int m,int d);
int main(){
int n,i,Year,Month,Day;
scanf("%d\n",&n);
i=1;
while(i<=n){
scanf("%d %d %d",&Year,&Month,&Day);
pri... | main.c:30:1: error: expected identifier or '(' before '}' token
30 | }
| ^
|
s187370682 | p00760 | C | #include <stdio.h>
#define USUAL_DAYS_OF_YEAR 195
#define UNUSUAL_DAYS_OF_YEAR 200
#define DAYS_OF_THREEYEARS 590
#define DAYS_OF_SMONTH 19
#define DAYS_OF_LMONTH 20
long CntDay(int y,int m,int d);
int main(){
int n,i,Year,Month,Day;
scanf("%d\n",&n);
i=1;
while(i<=n){
scanf("%d %d %d",&Year,&Month,&Day);
pri... | main.c:30:1: error: expected identifier or '(' before '}' token
30 | }
| ^
|
s851795131 | p00760 | C | #include <stdio.h>
long CntDay(int y,int m,int d);
int main(){
int USUAL_DAYS_OF_YEAR 195;
int UNUSUAL_DAYS_OF_YEAR 200;
int DAYS_OF_THREEYEARS 590;
int DAYS_OF_SMONTH 19;
int DAYS_OF_LMONTH 20;
int n,i,Year,Month,Day;
scanf("%d\n",&n);
i=1;
while(i<=n){
scanf("%d %d %d",&Year,&Month,&Day);
printf("%ld\n", C... | main.c: In function 'main':
main.c:7:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
7 | int USUAL_DAYS_OF_YEAR 195;
| ^~~
main.c:8:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
8 | int UNUSUAL_DAYS_OF_YEAR 20... |
s897722980 | p00760 | C | #include <stdio.h>
long CntDay(int y,int m,int d);
int main(){
int USUAL_DAYS_OF_YEAR = 195;
int UNUSUAL_DAYS_OF_YEAR = 200;
int DAYS_OF_THREEYEARS = 590;
int DAYS_OF_SMONTH = 19;
int DAYS_OF_LMONTH = 20;
int n,i,Year,Month,Day;
scanf("%d\n",&n);
i=1;
while(i<=n){
scanf("%d %d %d",&Year,&Month,&Day);
printf(... | main.c: In function 'CntDay':
main.c:25:15: error: 'DAYS_OF_THREEYEARS' undeclared (first use in this function)
25 | yea=(999-y)/3*DAYS_OF_THREEYEARS+((y%3==0)?0:((y%3==1)?(USUAL_DAYS_OF_YEAR+UNUSUAL_DAYS_OF_YEAR):UNUSUAL_DAYS_OF_YEAR));
| ^~~~~~~~~~~~~~~~~~
main.c:25:15: note: each undeclared id... |
s850845508 | p00760 | C | #include <stdio.h>
long CntDay(int y,int m,int d);
int main(){
int USUALDAYSOFYEAR = 195;
int UNUSUALDAYSOFYEAR = 200;
int DAYSOFTHREEYEARS = 590;
int DAYSOFSMONTH = 19;
int DAYSOFLMONTH = 20;
int n,i,Year,Month,Day;
scanf("%d\n",&n);
i=1;
while(i<=n){
scanf("%d %d %d",&Year,&Month,&Day);
printf("%ld\n", Cnt... | main.c: In function 'CntDay':
main.c:25:15: error: 'DAYSOFTHREEYEARS' undeclared (first use in this function)
25 | yea=(999-y)/3*DAYSOFTHREEYEARS+((y%3==0)?0:((y%3==1)?(USUALDAYSOFYEAR+UNUSUALDAYSOFYEAR):UNUSUALDAYSOFYEAR));
| ^~~~~~~~~~~~~~~~
main.c:25:15: note: each undeclared identifier is rep... |
s111918334 | p00760 | C | #include <stdio.h>
int main(){
int n, i, j, All=196471 , Y, M, D, sum;
scanf("%d",&n);
for(i = 0 ,sum = 0 ; i < n ; i++ , sum = 0){
scanf("%d %d %d",&Y, &M, &D);
/*テ・ツケツエテ」ツ?ョテヲツ敖。テ、ツサツカテ」ツ?ォテ」ツつ暗」ツ?」テ」ツ?ヲテヲツ?シテ・ツ?、テ」ツつ津、ツサツ」テ・ツ?・テ」ツ?陛」ツ?崚ァツカツ堙」ツ?妥」ツつ?/
for(i = 1 ; i < Y ; i++){
if(j % 3 == 0){
su... | main.c: In function 'main':
main.c:7:3: error: unterminated comment
7 | /*テ・ツケツエテ」ツ?ョテヲツ敖。テ、ツサツカテ」ツ?ォテ」ツつ暗」ツ?」テ」ツ?ヲテヲツ?シテ・ツ?、テ」ツつ津、ツサツ」テ・ツ?・テ」ツ?陛」ツ?崚ァツカツ堙」ツ?妥」ツつ?/
| ^
main.c:6:3: error: expected declaration or statement at end of input
6 | scanf("%d %d %d",&Y, &M, &D);
| ^~~~~
main.c:6:3: e... |
s562555575 | p00760 | C | /*テヲツ敖。テ、ツサツカテ」ツ?ォテ」ツつ暗」ツ?」テ」ツ?ヲテ・ツ?、テ」ツつ津ィツソツステ・ツ環?」ツ?療ァツカツ堙」ツ?妥」ツつ?/
#include <stdio.h>
int main(){
int n, i, j, All=196471 , Y, M, D, sum;
scanf("%d",&n);
for(j = 0 ,sum = 0 ; j < n ; j++ , sum = 0){
scanf("%d %d %d",&Y, &M, &D);
for(i = 1 ; i < Y ; i++){
if(j % 3 == 0){
sum+=200;
}else{
... | main.c:1:1: error: unterminated comment
1 | /*テヲツ敖。テ、ツサツカテ」ツ?ォテ」ツつ暗」ツ?」テ」ツ?ヲテ・ツ?、テ」ツつ津ィツソツステ・ツ環?」ツ?療ァツカツ堙」ツ?妥」ツつ?/
| ^
|
s897168065 | p00760 | C | #include<stdio.h>
int main(void)
{
int i,j;
int ymd[100][3], n, y3=590, date;
scanf("%d", &n);
for(i=0; i<n; i++) {
for(j=0; j<3; j++) {
scanf("%d", &ymd[i][j]);
}
}
for(i=0;i<n;i++) {
date = 0;
date += ((ymd[i][0]-1)/3)*y3;
switch(ymd[i][0]%3){
case 2:
date += 195;
... | main.c: In function 'main':
main.c:46:1: error: expected expression before '}' token
46 | }
| ^
|
s711530295 | p00760 | C | #include<stdio.h>
int main(void)
{
int i,j;
int ymd[100][3], n, y3=590, date;
scanf("%d", &n);
for(i=0; i<n; i++) {
for(j=0; j<3; j++) {
scanf("%d", &ymd[i][j]);
}
}
for(i=0;i<n;i++) {
date = 0;
date += ((ymd[i][0]-1)/3)*y3;
switch(ymd[i][0]%3){
case 2:
date += 195;
... | main.c:45:3: error: expected identifier or '(' before 'for'
45 | for(i=0;i<100000;i++){
| ^~~
main.c:45:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
45 | for(i=0;i<100000;i++){
| ^
main.c:45:21: error: expected '=', ',', ';', 'asm' or '__attribute__' be... |
s029422655 | p00760 | C | #include<stdio.h>
int main(void)
{
int i,j;
int ymd[100][3], n, y3=590, date;
scanf("%d", &n);
for(i=0; i<n; i++) {
for(j=0; j<3; j++) {
scanf("%d", &ymd[i][j]);
}
}
for(i=0;i<n;i++) {
date = 0;
date += ((ymd[i][0]-1)/3)*y3;
switch(ymd[i][0]%3){
case 2:
date += 195;
... | main.c:45:3: error: expected identifier or '(' before 'for'
45 | for(i=0;i<100000;i++){
| ^~~
main.c:45:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
45 | for(i=0;i<100000;i++){
| ^
main.c:45:21: error: expected '=', ',', ';', 'asm' or '__attribute__' be... |
s799043785 | p00760 | C | #include<stdio.h>
int main(void)
{
int i,j;
int ymd[100][3], n, y3=590, date;
scanf("%d", &n);
for(i=0; i<n; i++) {
for(j=0; j<3; j++) {
scanf("%d", &ymd[i][j]);
}
}
for(i=0;i<n;i++) {
date = 0;
date += ((ymd[i][0]-1)/3)*y3;
switch(ymd[i][0]%3){
case 2:
date += 195;
... | main.c:45:3: error: expected identifier or '(' before 'for'
45 | for(i=0;i<100000;i++){
| ^~~
main.c:45:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
45 | for(i=0;i<100000;i++){
| ^
main.c:45:21: error: expected '=', ',', ';', 'asm' or '__attribute__' be... |
s969019312 | p00760 | C | #include<stdio.h>
int main(void)
{
int i,j;
int ymd[100][3], n, y3=590, date;
scanf("%d", &n);
for(i=0; i<n; i++) {
for(j=0; j<3; j++) {
scanf("%d", &ymd[i][j]);
}
}
for(i=0;i<n;i++) {
date = 0;
date += ((ymd[i][0]-1)/3)*y3;
switch(ymd[i][0]%3){
case 2:
date += 195;
... | main.c:45:3: error: expected identifier or '(' before 'for'
45 | for(i=0;i<100000;i++)
| ^~~
main.c:45:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
45 | for(i=0;i<100000;i++)
| ^
main.c:45:21: error: expected '=', ',', ';', 'asm' or '__attribute__' befo... |
s528810810 | p00760 | C | #include<stdio.h>
int main(void)
{
int i,j,k;
int ymd[100][3], n, y3=590, date;
scanf("%d", &n);
for(i=0; i<n; i++) {
for(j=0; j<3; j++) {
scanf("%d", &ymd[i][j]);
}
}
for(i=0;i<n;i++) {
date = 0;
date += ((ymd[i][0]-1)/3)*y3;
switch(ymd[i][0]%3){
case 2:
date += 195;
... | main.c: In function 'main':
main.c:49:1: error: expected declaration or statement at end of input
49 | }
| ^
|
s548207107 | p00760 | C | dfhghdkjfg | main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | dfhghdkjfg
| ^~~~~~~~~~
|
s819283181 | p00760 | C | #include<stdio.h>
int main(void){
????int n,y,m,d,count;
????scanf("%d",&n);
????while(n--){
????????count=0;
????????scanf("%d%d%d",&y,&m,&d);
????????count=(y-1)*39*5;
????????count+=((y-1)/3)*1*5;
????????if(y%3==0){
????????????count+=(m-1)*20;
????????}
????????else{
????????????count+=(m-1)*20-(m-1)/2*1;
????????... | main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
3 | ????int n,y,m,d,count;
| ^
main.c:4:1: error: expected expression before '?' token
4 | ????scanf("%d",&n);
| ^
main.c:4:17: error: 'n' undeclared (first use in this function)
4 | ????scanf("%d",&n);
| ... |
s861436861 | p00760 | C | #include<stdio.h>
int main(void){
????int n,y,m,d,count;
????scanf("%d",&n);
????while(n--){
????????count=0;
????????scanf("%d%d%d",&y,&m,&d);
????????count=(y-1)*39*5;
????????count+=((y-1)/3)*1*5;
????????if(y%3==0){
????????????count+=(m-1)*20;
????????}
????????else{
????????????count+=(m-1)*20-(m-1)/2*1;
????????... | main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
3 | ????int n,y,m,d,count;
| ^
main.c:4:1: error: expected expression before '?' token
4 | ????scanf("%d",&n);
| ^
main.c:4:17: error: 'n' undeclared (first use in this function)
4 | ????scanf("%d",&n);
| ... |
s683290556 | p00760 | C | #include<stdio.h>
int main(void){
????int n,y,m,d,count;
????scanf("%d",&n);
????while(n--){
????????count=0;
????????scanf("%d%d%d",&y,&m,&d);
????????count=(y-1)*39*5;
????????count+=((y-1)/3)*1*5;
????????if(y%3==0){
????????????count+=(m-1)*20;
????????}
????????else{
????????????count+=(m-1)*20-(m-1)/2*1;
????????... | main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
3 | ????int n,y,m,d,count;
| ^
main.c:4:1: error: expected expression before '?' token
4 | ????scanf("%d",&n);
| ^
main.c:4:17: error: 'n' undeclared (first use in this function)
4 | ????scanf("%d",&n);
| ... |
s973290600 | p00760 | C | #include<stdio.h>
void AoD(int year,int month,int day);
int main(void){
int y,m,d,i,data;
scanf("%d",&data);
for(i=1;i<=n;i++){
scanf("%d %d %d",&y,&m,&d);
AoD(y,m,d);
}
}
void AoD(int year,int month,int day){
int i,count;
if(year%3==0)
count = 20-day;
else if(month%2!=0)
count = 20-day;... | main.c: In function 'main':
main.c:7:14: error: 'n' undeclared (first use in this function)
7 | for(i=1;i<=n;i++){
| ^
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'AoD':
main.c:30:30: error: expected ';' before 'else'
... |
s827316023 | p00760 | C | #include<iostream>
main(){int y,m,d;for(std::cin>>d;std::cin>>y>>m>>d;printf("%d\n",196490-d))d+=195*--y+y/3*5+19*m+m--/2+!(++y%3)*m/2;} | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s869577931 | p00760 | C | main(y,m,d){for(gets(&y);~scanf("%d%d%d",&y,&m,&d);printf("%d\n",196471-(--y)*195-y/3*5-(--m)*20+(y%3-2?m/2:0)-d));exit(0);} | main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(y,m,d){for(gets(&y);~scanf("%d%d%d",&y,&m,&d);printf("%d\n",196471-(--y)*195-y/3*5-(--m)*20+(y%3-2?m/2:0)-d));exit(0);}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:1:1: er... |
s011457197 | p00760 | C | main(y,m,d){for(scanf("%d",&y);~scanf("%d%d%d",&y,&m,&d);printf("%d\n",196471-(--y)*195-y/3*5-(--m)*20+(y%3-2?m/2:0)-d));exit(0);} | main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(y,m,d){for(scanf("%d",&y);~scanf("%d%d%d",&y,&m,&d);printf("%d\n",196471-(--y)*195-y/3*5-(--m)*20+(y%3-2?m/2:0)-d));exit(0);}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:1... |
s763582760 | p00760 | C | #include <stdio.>
int main(void){
int i,n;
scanf("%d",&n);
for(i=0;i<n;i++){
int y,m,d,total=0;
scanf("%d %d %d",&y,&m,&d);
if(y%3 ==0){
total +=(999-y)/3*590;
total += (10-m)*20;
total += 21-d;
}
else if(y%3 ==1){
total +=(999-y+1)/3*59... | main.c:1:10: fatal error: stdio.: No such file or directory
1 | #include <stdio.>
| ^~~~~~~~
compilation terminated.
|
s357179099 | p00760 | C | #include <stdio.h>
int main(void){
int i,n;
scanf("%d",&n);
for(i=0;i<n;i++){
int y,m,d,total=0;
scanf("%d %d %d",&y,&m,&d);
if(y%3 ==0){
total +=(999-y)/3*590;
total += (10-m)*20;
total += 21-d;
}
else if(y%3 ==1){
total +=(999-y+1)/3*5... | main.c: In function 'main':
main.c:37:1: error: expected declaration or statement at end of input
37 | }
| ^
main.c:37:1: error: expected declaration or statement at end of input
|
s335299258 | p00760 | C | #include <stdio.h>
int main(void){
int i,n;
scanf("%d",&n);
for(i=0;i<n;i++){
int y,m,d,total=0;
scanf("%d %d %d",&y,&m,&d);
if(y%3 ==0){
total +=(999-y)/3*590;
total += (10-m)*20;
total += 21-d;
}
else if(y%3 ==1){
total +=(999-y+1)/3*5... | main.c: In function 'main':
main.c:37:1: error: expected declaration or statement at end of input
37 | }
| ^
main.c:37:1: error: expected declaration or statement at end of input
|
s268471545 | p00760 | C | #include <stdio.h>
int main(void)
{
int i,n;
scanf("%d",&n);
for(i=0;i<n;i++){
int y,m,d,total=0;
scanf("%d %d %d",&y,&m,&d);
if(y%3 ==0){
total +=(999-y)/3*590;
total += (10-m)*20;
total += 21-d;
}
else if(y%3 ==1){
total +=(999-y+1)/3*... | main.c: In function 'main':
main.c:38:1: error: expected declaration or statement at end of input
38 | }
| ^
main.c:38:1: error: expected declaration or statement at end of input
|
s399117011 | p00760 | C | #include <stdio.h>
int y,m,d,total;
void year(void){
if(y%3==0){
total+=(999-y)/3*590;
}else if(y%3==1){
total+=(997-y)/3*590;
total+=395;
}else if(y%3==2){
total+=(998-y)/3*590;
total+=200;
}
}
void month(void){
if(y%3==0){
total+=(10-m)*20;
}else{
... | main.c: In function 'month':
main.c:45:1: error: expected declaration or statement at end of input
45 | }
| ^
|
s183820616 | p00760 | C | #include<stdio.h>
int n,y,m,d,i,total;
void year(void){
if(y%3==0){
total+=(999-y)/3*590;
}else if(y%3==1){
total+=(998-y)/3*590+200;
}else {
total+=(997-y)/3*590+395;
}
}
void month(void){
if(y%3!=0){
if(m%2==0){
total+=(10-m)/2*39;
}else{
total+=(9-m)/2*39+19;
... | main.c: In function 'main':
main.c:45:12: error: expected ';' before ':' token
45 | return 0:
| ^
| ;
|
s252733918 | p00760 | C | main(Y,M,D){for(gets(&i);~scanf("%d%d%d",&Y,&M,&D);printf("%d\n",196686-Y*195-(Y-1)/3*5-M*20+(Y%3?--M/2:0)-D));} | main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(Y,M,D){for(gets(&i);~scanf("%d%d%d",&Y,&M,&D);printf("%d\n",196686-Y*195-(Y-1)/3*5-M*20+(Y%3?--M/2:0)-D));}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'Y' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of... |
s838276084 | p00760 | C | Y;main(M,D){for(gets(&i);Y=~scanf("%d%d%d",&Y,&M,&D);printf("%d\n",196686-Y*195-(Y-1)/3*5-M*20+(Y%3?--M/2:0)-D));} | main.c:1:1: warning: data definition has no type or storage class
1 | Y;main(M,D){for(gets(&i);Y=~scanf("%d%d%d",&Y,&M,&D);printf("%d\n",196686-Y*195-(Y-1)/3*5-M*20+(Y%3?--M/2:0)-D));}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'Y' [-Wimplicit-int]
main.c:1:3: error: return type defaults ... |
s363806775 | p00760 | C | main(Y,M,D){for(gets(&i);~scanf("%d%d%d",&Y,&M,&D)*Y;printf("%d\n",196686-Y*195-(Y-1)/3*5-M*20+(Y%3?--M/2:0)-D));} | main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(Y,M,D){for(gets(&i);~scanf("%d%d%d",&Y,&M,&D)*Y;printf("%d\n",196686-Y*195-(Y-1)/3*5-M*20+(Y%3?--M/2:0)-D));}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'Y' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type ... |
s309417717 | p00760 | C | # include <stdio.h>
int y[100], m[100], d[100], out[100];
void input(int n){
scanf("%d%d%d", y[n], m[n], d[n]);
}
void output(int n){
printf("%d\n", out[n]);
}
int main(void){
int n, i, num;
int year, month, day;
scanf("%d", &n);
for(i=0; i<n; i++){
input(n);
}
for(i=0; i<n; i++){
if(y[i] % 3 == ... | main.c: In function 'main':
main.c:36:37: error: subscripted value is neither array nor pointer nor vector
36 | out[i] += (num - day[i]);
| ^
|
s176510362 | p00760 | C++ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s227625752 | p00760 | C++ | [harsan@localhost Programing]$ cat Millennium.cpp
#include<stdio.h>
#include<iostream>
#include<list>
#include<map>
#include<math.h>
#include<vector>
#include<algorithm>
#include<string.h>
#include<iomanip>
#define range(i,a,b) for(int i = (a); i < (b); i++)
#define rep(i,b) range(i,0,b)
#define debug(x) cout << "debu... | a.cc:1:8: error: stray '@' in program
1 | [harsan@localhost Programing]$ cat Millennium.cpp
| ^
a.cc:1:1: error: expected unqualified-id before '[' token
1 | [harsan@localhost Programing]$ cat Millennium.cpp
| ^
In file included from /usr/include/wchar.h:53,
from /usr/include... |
s750595822 | p00760 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, y, m, d;
int sum_day;
cin >> n;
while(n--) {
cin >> y >> m >> d;
sum_day = 0;
for(int i = y; i < 1000; ++i) {
for(int j = (i == y ? m : 1); j <= 10; j++) {
for(int k = (i == y && j... | a.cc: In function 'int main()':
a.cc:25:6: error: expected '}' at end of input
25 | }
| ^
a.cc:5:12: note: to match this '{'
5 | int main() {
| ^
|
s318426220 | p00760 | C++ | #include<iostream>
//#include<fstream>
using namespace std;
int main() {
//??§??????:20??\
//?°???????:19??\
//1??´:195??\
//3??§?????????????????´:200??\
//ifstream fin("in.txt");
int n = 0;
fin >> n;
//1000??´????????\??°
const int allday = 196471;// = 195 * 666 + 200 * 333 + 1
for (int i = 0; i < n; ... | a.cc: In function 'int main()':
a.cc:15:9: error: 'fin' was not declared in this scope
15 | fin >> n;
| ^~~
|
s868600309 | p00760 | C++ | // foo.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int n,y,m,d;
int y3,yd,m2,md,dd,y2;
cin >> n;
for(int i=0;i<n;i++){
cin >> y >> m >> d;
if(y%3!=0) y2=y+(3-y%3);
else y2=y;
y3 = 334-y2/3;
yd = y3*200 + ... | a.cc:4:10: fatal error: stdafx.h: No such file or directory
4 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s407744330 | p00760 | C++ | 6 9
....#.
.....#
......
......
......
......
......
#@...#
.#..#.
11 9
.#.........
.#.#######.
.#.#.....#.
.#.#.###.#.
.#.#..@#.#.
.#.#####.#.
.#.......#.
.#########.
...........
11 6
..#..#..#..
..#..#..#..
..#..#..###
..#..#..#@.
..#..#..#..
..#..#..#..
7 7
..#.#..
..#.#..
###.###
...@...
###.###
..#.#..
..#.#..
0 0 | a.cc:2:5: error: stray '#' in program
2 | ....#.
| ^
a.cc:3:6: error: stray '#' in program
3 | .....#
| ^
a.cc:9:2: error: invalid preprocessing directive #@
9 | #@...#
| ^
a.cc:10:2: error: stray '#' in program
10 | .#..#.
| ^
a.cc:10:5: error: stray '#' in program
... |
s705454908 | p00760 | C++ | #include <iostream>
using namespace std;
int sum(int y, int m, int d) {
int t = 0;
t += (y - 1) * 195 + (y - 1) / 3 * 5;
t += (m - 1) * 19 + m / 2;
if (y % 3 == 0) t += (m - 1) / 2;
t += d - 1;
return t;
}
int main() {
int n;
cin >> n;
if (n == 0) break;
while (n--) {
int y, m, d;
cin >> y >> m >> d;
... | a.cc: In function 'int main()':
a.cc:16:21: error: break statement not within loop or switch
16 | if (n == 0) break;
| ^~~~~
|
s301896412 | p00760 | C++ | a | a.cc:1:1: error: 'a' does not name a type
1 | a
| ^
|
s745526782 | p00760 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main()
{
int n;
cin >> n;
// ????????´?????\??°
auto numberOfDaysInYear = [](int y) {
if (y % 3 == 0) {
return 20 * 10;
}
else {
return 20 * 5 + 19 * 5;
}
};
// y + 1??´????... | a.cc: In function 'int main()':
a.cc:50:14: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'void')
50 | cout << remainDays(y, m, d) << endl;
| ~~~~ ^~ ~~~~~~~~~~~~~~~~~~~
| | |
| | ... |
s462606115 | p00760 | C++ | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
#define base 196471
int n;
int main() {
cin >> n;
int Y, M, D;
vector<int> ans;
while (n--) {
int tmp = 0;
cin >> Y >> M >> D;
tmp += (Y % 3 && !(M % 2)) ? 20 - D : 21 - D;
for (int i = M+1; i <= 10; ++i) {
tmp... | a.cc: In function 'int main()':
a.cc:28:18: error: expected '}' at end of input
28 | return 0;
| ^
a.cc:8:12: note: to match this '{'
8 | int main() {
| ^
|
s607436788 | p00760 | C++ | #include<iostream>
using namespace std;
struct PEO{
int ye;
int mon;
int day;} peo[200];
int main(){
int t[200]; //time peo have lived
int n;
cin>>n; //imput the number of the people
for(int i=0;i<n;i++) {
cin >> peo[i].ye >> peo[i].mon>>peo[i].day;} //save... | a.cc: In function 'int main()':
a.cc:14:135: error: request for member 'day' in 'peo', which is of non-class type 'PEO [200]'
14 | t[i]=(((peo[i].ye-1)/3)*200+(peo[i].ye-1-((peo[i].ye-1)/3))*195+(((peo[i].mon-1)/2)*20+(peo[i].mon-1-(peo[i].mon-1)/2))*19)+peo.day-1) ;
| ... |
s679074438 | p00760 | C++ | gets.to_i.times {
y,m,d = gets.split(' ').map(&:to_i)
d += (y-1)/3*590+(y-1)%3*195
d += y%3 == 0 ? (m-1)*20 : (m-1)*19 + m/2
puts 196471-d
} | a.cc:1:1: error: 'gets' does not name a type
1 | gets.to_i.times {
| ^~~~
|
s420636690 | p00760 | C++ | #include <iostream>
int main(){
int n;
cin>>n;
while(n--){
int y,m,d,cnt=0;
cin>>y>>m>>d;
if(y % 3 == 0) {
cnt += (21 - d);
}
else {
cnt += ((m % 2 == 0 ? 20 : 21) - d);
}
for(int i = m + 1; i <= 10; i++) {
if(y % 3 == 0) {
cnt += 20;
}
else{
if(i % 2 == 0) {
cn... | a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>n;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; //... |
s845927985 | p00760 | C++ | #include <string>
#include <vector>
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<stack>
#include<queue>
#include<cmath>
#include<algorithm>
#include<functional>
//--
#include<list>
#include<deque>
#include<bitset>
#include<set>
#include<map>
#include<cstdio>
#include<cstring>
#include<sstream>
#define... | a.cc:25:9: error: '__int64' does not name a type; did you mean '__int64_t'?
25 | typedef __int64 ll;
| ^~~~~~~
| __int64_t
|
s220897417 | p00760 | C++ | #include <iostream>
#define MAX 196470
using namespace std;
int main(void){
int n;
cin >> n;
while(n--){
int y,m,d;
cin >> y >> m >> d;
y--; m--; d--;
int day = 0;
day += ( 20*5 + 19*5) * y;
day += (y/3) * 5;
day += m * 20;
if( (y + 1) % 3 != 0 ) day -= (m/2);
day += d;
cout << N ... | a.cc: In function 'int main()':
a.cc:21:12: error: 'N' was not declared in this scope
21 | cout << N - day << endl;
| ^
|
s160975948 | p00761 | Java |
#include <iostream>
#include <stdio.h>
#include <string>
#include <sstream>
#include <vector>
#include <stdlib.h>
#include <math.h>
#include <list>
#include <algorithm>
using namespace std;
int main(void){
//FILE* fp_in = freopen("data.txt", "r", stdin);
while( 1 ) {
stringstream a_0;
int a,L;
cin >> a >> L... | Main.java:2: error: illegal character: '#'
#include <iostream>
^
Main.java:3: error: illegal character: '#'
#include <stdio.h>
^
Main.java:4: error: illegal character: '#'
#include <string>
^
Main.java:5: error: illegal character: '#'
#include <sstream>
^
Main.java:6: error: illegal character: '#'
#include <vector>
^
M... |
s816486329 | p00761 | Java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.math.BigInteger;
public class Main{
static PrintWriter out... | Main.java:27: error: incompatible types: possible lossy conversion from double to int
dig[i]=a/Math.pow(10,i);
^
1 error
|
s827422656 | p00761 | Java | import java.util.Arrays;
import java.util.Scanner;
public class Main2 {
/**
* @param args
*/
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
while(true){
int[] a = new int[21];
a[0] = cin.nextInt();
int L = cin.nextInt();
if(a[0]==0&&L==0){
break;
}
int i... | Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
^
1 error
|
s939262918 | p00761 | Java | import java.util.*;
public class AOJ_1180_2{
void run(){
Scanner sc = new Scanner(System.in);
while(true){
String[] A = new String[21];
String a = sc.next();
int L = sc.nextInt();
if(a.equals("0") && L == 0){
break;
}
... | Main.java:2: error: class AOJ_1180_2 is public, should be declared in a file named AOJ_1180_2.java
public class AOJ_1180_2{
^
1 error
|
s272410337 | p00761 | Java | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a=0,l=0;
int as=0,am=0; // テ・ツ、ツァテ」ツ?催」ツ??ヲツ閉ーテ」ツ?ィテ・ツーツ湘」ツ?陛」ツ??ヲツ閉ー
while(sc.hasNext()){
a = sc.nextInt();
l = sc.nextInt();
if(a == 0 && ... | Main.java:38: error: cannot find symbol
check = true;
^
symbol: variable check
location: class Main
1 error
|
s343210867 | p00761 | Java | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a=0,l=0;
int as=0,am=0; // テ・ツ、ツァテ」ツ?催」ツ??ヲツ閉ーテ」ツ?ィテ・ツーツ湘」ツ?陛」ツ??ヲツ閉ーテァツ板ィ
while(sc.hasNext()){
a = sc.nextInt();
l = sc.nextInt();
if(a == ... | Main.java:38: error: cannot find symbol
check = true;
^
symbol: variable check
location: class Main
1 error
|
s333788826 | p00761 | Java | import java.util.Arrays;
import java.util.Scanner;
/**
* Created by Reopard on 2014/06/26.
*/
public class RecurringDecimals{
static Scanner sc = new Scanner(System.in);
public static void main(String[] args){
int[] a, accend, decend;
int a_first, L, max, min, j, hoge;
while((a_first... | Main.java:7: error: class RecurringDecimals is public, should be declared in a file named RecurringDecimals.java
public class RecurringDecimals{
^
1 error
|
s391386177 | p00761 | C | #include <stdio.h>
int main(void) {
a[20][i]
}
| main.c: In function 'main':
main.c:6:5: error: 'a' undeclared (first use in this function)
6 | a[20][i]
| ^
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:11: error: 'i' undeclared (first use in this function)
6 | a[20][i]
| ... |
s265713679 | p00761 | C | #include <algorithm>
#include <cstdio>
#include <map>
#define repeat(i, n) for (int i = 0; (i) < int(n); ++(i))
#define whole(f, x, ...) ([&](decltype((x)) whole) { return (f)(begin(whole), end(whole), ## __VA_ARGS__); })(x)
using namespace std;
string to_string(int a, int l) {
string s;
repeat (i, l) {
... | main.c:1:10: fatal error: algorithm: No such file or directory
1 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s248696069 | p00761 | C | #include <iostream>
#include <cmath>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <vector>
using namespace std;
int main(){
while(1){
char a[20];
int L;
cin>>a>>L;
if(!L) break;
int hist[30], after=0, count=1;
int ans1, ans2;
hist[0] =atoi(a);
while(1){
fill(a+strlen(a), a... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s140501776 | p00761 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s591702111 | p00761 | C | #include<stdio.h>
#include<stdilib.h>
int cmp1(const void *a, const void *b){
return *((char *)a) - *((char *)b);
}
int cmp2(const void *a, const void *b){
return *((char *)b) - *((char *)a);
}
int ff(int a,int b){
int m,mm;
int i;
char s[7]={0};
for(i = 5;i >= 0;i--){
s[i] = a%10;
a /= 10;
if(a==0)break;... | main.c:2:9: fatal error: stdilib.h: No such file or directory
2 | #include<stdilib.h>
| ^~~~~~~~~~~
compilation terminated.
|
s271497708 | p00761 | C | #include<stdio.h>
#include<stdlib.h>
int cmp1(const void *a, const void *b){
return *((char *)a) - *((char *)b);
}
int cmp2(const void *a, const void *b){
return *((char *)b) - *((char *)a);
}
int ff(int a,int b){
int m,mm;
int i;
char s[7]={0};
for(i = 5;i >= 0;i--){
s[i] = a%10;
a /= 10;
if(a==0)break;
... | main.c: In function 'ff':
main.c:20:26: error: subscripted value is neither array nor pointer nor vector
20 | for(;i >= 0;i--)a[i] = 0;
| ^
|
s005483112 | p00761 | C | #include<stdio.h>
#include<stdilib.h>
int cmp1(const void *a, const void *b){
return *((char *)a) - *((char *)b);
}
int cmp2(const void *a, const void *b){
return *((char *)b) - *((char *)a);
}
int ff(int a,int b){
int m,mm;
int i;
char s[7]={0};
for(i = 5;i >= 0;i--){
s[i] = a%10;
a /= 10;
if(a==0)break;... | main.c:2:9: fatal error: stdilib.h: No such file or directory
2 | #include<stdilib.h>
| ^~~~~~~~~~~
compilation terminated.
|
s039286321 | p00761 | C | #include<stdio.h>
#include<stdilib.h>
int cmp1(const void *a, const void *b){
return *((char *)a) - *((char *)b);
}
int cmp2(const void *a, const void *b){
return *((char *)b) - *((char *)a);
}
int ff(int a,int b){
int m,mm;
int i;
char s[7]={0};
for(i = 5;i >= 0;i--){
s[i] = a%10;
a /= 10;
if(a==0)break;... | main.c:2:9: fatal error: stdilib.h: No such file or directory
2 | #include<stdilib.h>
| ^~~~~~~~~~~
compilation terminated.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.