submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s000899239 | p00000 | C | #include<stdio.h>
int main(){
int a,b,c;
for(a=1;a<=9;a++)
for(b=1;b<=9;b++
{
c=a*b;
printf("%d*%d=%d\n",a,b,c);
}
return 0;
} | main.c: In function 'main':
main.c:6:23: error: expected ')' before '{' token
6 | for(b=1;b<=9;b++
| ~ ^
| )
7 | {
| ~
main.c:12:1: error: expected expression before '}' token
12 | }
| ^
|
s051508042 | p00000 | C | #include<stdio.h>
int main(){
int i;
for(i=1;i<=9;i++)
printf("%d*%d=%d\n",i,i,i*i);
return 0;
}
~ | main.c:10:1: error: expected identifier or '(' before '~' token
10 | ~
| ^
|
s591887837 | p00000 | C | #include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <string>
#include <map>
using namespace std;
const int maxn = 1000010;
const int maxk = 26;
char s1[maxn], s2[maxn];
int con[maxk], pre[maxn];
int rev[maxk];
inline bool equal(... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s914773361 | p00000 | C | /*
* P.cpp
*
* Created on: Dec 2, 2012
* Author: carber
*/
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <string>
#include <map>
#include <queue>
using namespace std;
int mpp[16][16], use[16][1<<15], n, dis[16][1... | main.c:8:10: fatal error: iostream: No such file or directory
8 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s970037813 | p00000 | C | /*
* Y.cpp
*
* Created on: Oct 25, 2012
* Author: carber
*/
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace std;
typedef pair<int, int> PII;
#define mp make_pair
#include <queue>
const int V = 17;
const int E = V << 1;
int... | main.c:8:10: fatal error: iostream: No such file or directory
8 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s743542149 | p00000 | C | #include <cstdio>
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
typedef pair<double, double> PDD;
const double eps = 1e-8;
double val(PDD a)
{
return sqrt(a.first * a.first + a.second * a.second);
}
int mai... | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s983315408 | p00000 | C | #include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;
const double eps=1e-6;
double c[100][100],p[100],s[100];
void init()
{
memset(c,0,sizeof(c));
c[0][0]=1;
for (int i=1; i<=50; i++)
{
c[i][0]=1;
for (int j=1; j<=i; j++) c[i][j]=c[i-1][j]+c[i-1][j-1];... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s335670407 | p00000 | C | void f(int *a, int *b){
if(&a + 1 == &b) return;
if(&a + 2 == &b) while(1);
*a = 1 / 0;
}
int main(void){
f();
return 0;
} | main.c: In function 'f':
main.c:4:16: warning: division by zero [-Wdiv-by-zero]
4 | *a = 1 / 0;
| ^
main.c: In function 'main':
main.c:8:9: error: too few arguments to function 'f'
8 | f();
| ^
main.c:1:6: note: declared here
1 | void f(int *a, int *b){
... |
s655707200 | p00000 | C | #include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int i,j,temp;
for (i=1;i<10;i++)
{
for (j=1;j<10;j++)
{
temp=i * j;
printf("%dx%d=%d\n",i,j,temp);
}
}
system ("pause");
return 0;
} | main.c:2:10: fatal error: iostream: No such file or directory
2 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s148039696 | p00000 | C | #include<iostream>
using namespace std;
int main(){
int i,j;
for(i = 1;i <= 9;i++ )
for(j = 1; j <= i; j++)
cout<<j<<"*"<<i<<"="<<i*j<<endl;
return 0;
} | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s996237857 | p00000 | C | http://d.pr/f/9luv
"QAAQAQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ" | main.c:1:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
1 | http://d.pr/f/9luv
| ^
|
s224587158 | p00000 | C | #include<stdio.h>
int main(void){
int printf(1x1=1,1x2=2,..9x8=72,9x9=81)
return 0;
} | main.c: In function 'main':
main.c:4:20: error: invalid suffix "x1" on integer constant
4 | int printf(1x1=1,1x2=2,..9x8=72,9x9=81)
| ^~~
main.c:4:20: error: expected declaration specifiers or '...' before numeric constant
main.c:4:26: error: invalid suffix "x2" on integer constant
... |
s055403947 | p00000 | C | #include<stdio.h>
int main(){
int i,j,x;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
x=i*j;
printf("%dx%d=%d",i,j,x);
}
return 0;
} | main.c: In function 'main':
main.c:14:1: error: expected declaration or statement at end of input
14 | }
| ^
|
s112630494 | p00000 | C | #include <functional>
#include <algorithm>
#include <stdexcept>
#include <iostream>
#include <sstream>
#include <fstream>
#include <numeric>
#include <iomanip>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <cctype>
#include <vector>
#include <string>
#include <bitset>
#include <queue>
#include <stdi... | main.c:1:10: fatal error: functional: No such file or directory
1 | #include <functional>
| ^~~~~~~~~~~~
compilation terminated.
|
s418325240 | p00000 | C | #include <cstdio>
int main(){
for(int i=1;i<10;i++){
for(int j=1;j<10;j++){
printf("%dx%d=%d\n",i,j,i*j);
}
}
return 0;
} | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s682362043 | p00000 | C | #include<iostream>
#include<cstring>
using namespace std;
int pow[15],num[15];
int f[15][15][15][3];
int dfs(int l,int pre,int k,int flag,int e)
{
if(l==-1) return (k==0)&&flag;
if(!e && f[l][pre][k][flag]!=-1)return f[l][pre][k][flag];
int u=(e?num[l]:9),res=0;
for(int i=0;i<=u;i++)
res+=dfs(... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s790372747 | p00000 | C | #include "stdio.h"
int main()
{int i j,s;
for(i=1;i<=9;i++)
{for(j=1;j<=9;j++)
{s=i*j;
printf("%d*%d=*d",i,j,s);}
}
return 0;
} | main.c: In function 'main':
main.c:3:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'j'
3 | {int i j,s;
| ^
main.c:3:8: error: 'j' undeclared (first use in this function)
main.c:3:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:10: e... |
s126319423 | p00000 | C | #include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstring>
#include<vector>
#include<map>
#include<set>
using namespace std;
const int maxn = 10010;
int first[maxn], ma1[maxn], ma2[maxn], dist[maxn], cnt, n, du[maxn];
struct Arc{
int v, a, b, next;
}arc[maxn * 2];
void add(int u,int v, int a, int b)
... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s941264731 | p00000 | C | #include<iostream>
void main()
{
printf("1x1=1\n");
printf("1x2=2\n");
printf(".\n");
printf(".\n");
printf("9x8=72\n");
printf("9x9=81\n");
} | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s910705088 | p00000 | C | #include<iostream>
void main()
{
printf("1*1=1\n");
printf("1*2=2\n");
printf(".\n");
printf(".\n");
printf("9*8=72\n");
printf("9*9=81\n");
} | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s630690560 | p00000 | C | #include <iostream>
#include <math.h>
using namespace std;
int main()
{
for( int i=1;i<=9;i++)
{
for(int j=1;j<=10;j++)
{
cout << i << "*" << j << "="<<i*j <<endl;
}
}
return 0;
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s801079926 | p00000 | C | int main(){
int i,j;
for (i=1;i<=9;++i)
for (j=1;j<=9;++j) printf("%dx%d=%d\n",i,j,i*j)
return 0;
} | main.c: In function 'main':
main.c:5:20: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
5 | for (j=1;j<=9;++j) printf("%dx%d=%d\n",i,j,i*j)
| ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
... |
s411761926 | p00000 | C | #include<iostream>
#include<cstdio>
using namespace std;
#define MAXN 100100
#define MAXT 100100
int f[MAXN];
int last[MAXN];
int n, t, tn;
struct node{
int type;
int a, b;
} work[MAXT];
int query(int loc){
if(f[loc] == loc) return loc;
int fat = f[loc];
int ret = query(f[loc]);
if(last[loc]<tn) f[loc] = f[f... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s094428644 | p00000 | C | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
#define maxn 100005
int n;
map <long long int, int> mp1, mp2;
vector <long long> a, b;
int x, sum;
long long index[maxn];
int bs1(long long k,vector<long long> vec)
{
int l=0,r=ve... | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s184354000 | p00000 | C | #include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<iostream>
using namespace std;
#define MP(x, y) make_pair(x, y)
#define F first
#define S second
#define PII pair<int,int>
const double eps = 1e-8;
int sgn(double x) {return x < -eps ? -1 : x > eps;}
struct Point
{
... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s137534551 | p00000 | C | 3
20 30 35
37 24 29
60 20 13
cnt=6
{2.500000 0.000000}
{22.500000 0.000000}
{37.500000 0.000000}
{51.500000 0.000000}
{53.500000 0.000000}
{66.500000 0.000000} | main.c:1:1: error: expected identifier or '(' before numeric constant
1 | 3
| ^
main.c:7:1: error: expected identifier or '(' before '{' token
7 | {22.500000 0.000000}
| ^
main.c:8:1: error: expected identifier or '(' before '{' token
8 | {37.500000 0.000000}
| ^
main.c:9:1: error: expecte... |
s475085012 | p00000 | C | #include<cstdio>
#include<iostream>
#include<algorthm>
#include<cmath>
#include<cstring>
#include<queue>
#include<stack>
#include<string>
using namespace std;
const int N=55;
const double eps=1e-6;
double a[N][N],double x[N];
inline int sig(double x) {return (x>eps)-(x<-eps);}
int gauss()
{
int row,col;
for(row... | main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s710822942 | p00000 | C | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<iostream>
#include<math.h>
#include<vector>
#include<queue>
#include<set>
#include<string>
#include<map>
#include<stack>
#define op operator
#define db double
#define cp const Point&
#define rt return
#define cn const
#define INF 1e-18
using namespace std... | main.c:4:9: fatal error: iostream: No such file or directory
4 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s748605113 | p00000 | C | #include<stdio.h>
int main(){
int a, b, c;
for(a = 1;a <= 9;a++){
for(b = 1;b <= 9;b++){
c = a * b;
printtf("%d×%d=%d\n",a,b,c);
}
}
return 0;
} | main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'printtf'; did you mean 'printf'? [-Wimplicit-function-declaration]
8 | printtf("%d×%d=%d\n",a,b,c);
| ^~~~~~~
| printf
|
s176752515 | p00000 | C | m;main(n){for(;++m<10||m=1,n++<10;)printf("%dx%d=%d\n",n,m,n*m);} | main.c:1:1: warning: data definition has no type or storage class
1 | m;main(n){for(;++m<10||m=1,n++<10;)printf("%dx%d=%d\n",n,m,n*m);}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
1 | m;main(n){for(;... |
s944092040 | p00000 | C | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#define DBLE 1e-8
#define PI 3.1415926535898
#define INF 1000000000
#define MAXN 1024
#define MOD 100000... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s789052343 | p00000 | C | #include <stdio.h>
int main()
{
do{
int ax ,ay;
ax=1 ; ay=1 ;
do{
printf("%dx%d=$d\n", ax,ay,ax*ay); ay=ay+1 ;
} while (ay==10);
ax=ax+1 ;
} while (ax==10);
return(0);
} | main.c: In function 'main':
main.c:14:10: error: 'ax' undeclared (first use in this function)
14 | } while (ax==10);
| ^~
main.c:14:10: note: each undeclared identifier is reported only once for each function it appears in
|
s453285674 | p00000 | C | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<algorithm>
#include<string>
#include<sstream>
#include<set>
#include<map>
#include<vector>
#include<queue>
#include<iostream>
#include<time.h>
#define forn(i,n) for(int i=0;i<n;i++)
#define clr(a,b) memset(a,b,sizeof(a))
//#define ll long... | main.c:5:9: fatal error: algorithm: No such file or directory
5 | #include<algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s541732376 | p00000 | C | #include<stdio.h>
int mian()
{
printf("1x1=1\n");
printf("1x2=2\n");
printf(".\n");
printf(".\n");
printf("9x8=72\n");
printf("9x9=81\n");
} | /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
|
s021775410 | p00000 | C | #include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstring>
#include<string>
#include<cmath>
#include<queue>
#include<map>
using namespace std;
#define M 100017
#define inf 0x3f3f3f3f
#define ll long long
char s[110000];
int a[11][26],ans,l[11],all[26];
int n;
bool check()
{
int tmp[26]={0};
for (... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s902825705 | p00000 | C | #include <stdio.h>
#include <string.h>
#include <queue>
#include <math.h>
#include <vector>
#include <iostream>
#include <algorithm>
#include <time.h>
#include <map>
#include <string>
#include <set>
using namespace std;
#define ll int
#define cons(x,y) x##e##y
#define sqr(x) (x)*(x)
const double eps=1e-8;
const double ... | main.c:3:10: fatal error: queue: No such file or directory
3 | #include <queue>
| ^~~~~~~
compilation terminated.
|
s462021399 | p00000 | C | #include <stdio.h>
#include <string.h>
#include <queue>
#include <math.h>
#include <vector>
#include <iostream>
#include <algorithm>
#include <time.h>
#include <map>
#include <string>
#include <set>
using namespace std;
#define ll int
#define cons(x,y) x##e##y
#define sqr(x) (x)*(x)
const double eps=1e-8;
const double ... | main.c:3:10: fatal error: queue: No such file or directory
3 | #include <queue>
| ^~~~~~~
compilation terminated.
|
s302441371 | p00000 | C | #include <stdio.h>
#include <string.h>
#include <algorithm>
#define clr(x, y) memset(x, y, sizeof(x))
#define ll __int64
using namespace std;
int a[200],b[200];
char sz[500010];
char c;
int main(){
#ifdef H403
freopen("d:\\in.txt","r",stdin);
#endif
while(~scanf("%c",&c)){
clr(a,0);
a[c]++;
... | main.c:3:10: fatal error: algorithm: No such file or directory
3 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s143504533 | p00000 | C | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <algorithm>
#include <map>
#define sqr(x) ((x)*(x))
#define clr(x, y) memset(x, y, sizeof(x))
#define forn(i, n) for(int i=0; i<n; i++)
#define ll __int64
using namespace std;
const double INF=1e50;
int n;
map<pair<int,int> ,int > ma;
map<pair<int,int> ... | main.c:4:10: fatal error: algorithm: No such file or directory
4 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s157844992 | p00000 | C | #include <stdio.h>
#include <string.h>
#include <algorithm>
#define clr(x, y) memset(x, y, sizeof(x))
#define ll __int64
#define inf 1e18
using namespace std;
int t;
double a,b,c;
const double EPS=1e-10;
double MIN=1, MAX=inf;
double cal(double k)
{
double s=(a*k*k-a*k+b*k)*(a*k*k-a*k+b*k)-4*a*(k*(k-1)*b/2+k*c+a*(... | main.c:3:10: fatal error: algorithm: No such file or directory
3 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s509736111 | p00000 | C | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<?php echo $this->config->item('base_url') ?>www/" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<tit... | main.c:1:1: error: expected identifier or '(' before '<' token
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| ^
main.c:34:25: error: expected identifier or '(' before '?' token
34 | ?>
| ... |
s632908611 | p00000 | C | #include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
typedef long long LL;
const int N=22;
const LL mod=1e9+7;
struct node
{
int cnt;
LL sum,sum2;
node(){}
node(int cnt,LL sum,LL sum2) :
cnt(cnt),sum(sum),sum2(sum2) {}
}dp[N][2][2][8][8];
LL pow_10[N];
char A[N],B[N];
bool vis[N][2][2][8... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s745337205 | p00000 | C | #include<stdio.h>
#include<string.h>
#include<algorithm>
#include<queue>
using namespace std;
int N,M;
struct bian
{
int u,v,w;
int next;
}E[60000],e[300000];
int dis[60000];
int vis[60000];
int dist[60000],vst[60000];
int head[60000];
int num;
int dfs(int u) {
vst[u]=true;
for(int h=head[u];h!=-1;h=e[h... | main.c:3:9: fatal error: algorithm: No such file or directory
3 | #include<algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s024760502 | p00000 | C | #include <stdio.h>
#include <string.h>
#define ll long long
#define clr(a,b) memset(a,b,sizeof(a))
using namespace std;
const int N = 1200100;
const int M = 1000100;
const int Maxn = 100100;
char str[M], tmp[Maxn];
int r[N], vis[N], cnt[M];
int id[Maxn];
int ua[N], ub[N], us[N], sa[N];
int cmp(int *r,int a,int b,int ... | main.c:5:1: error: unknown type name 'using'
5 | using namespace std;
| ^~~~~
main.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
5 | using namespace std;
| ^~~
main.c:10:6: error: variably modified 'str' at file scope
10 | char str[M], tmp[Maxn];
... |
s868664524 | p00000 | C | #include <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std;
const int N = 110;
int n,sum,sumB;
int B[N],base[N],pt1[20],pt2[20];
int time[N][20],base1[20][N],base2[20][N];
int ww[N][20],vv[N][20],f[N][1100];
int main()
{
freopen("C://in.txt","r",stdin);
int t;
scanf("%d",&t);
w... | main.c:3:10: fatal error: algorithm: No such file or directory
3 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s266954572 | p00000 | C | #include <stdio.h>
#include <iostream>
#include <string.h>
#include <algorithm>
#include <string>
#include <iterator>
#include <map>
using namespace std;
char str[55][110];
int n;
map<string,int>mp;
map<string,int>::iterator p;
string ss[5500];
int slen[110];
int main()
{
freopen("C://in.txt","r",stdin);
i... | main.c:2:10: fatal error: iostream: No such file or directory
2 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s237843804 | p00000 | C | #include <stdio.h>
#include <string.h>
#define ll long long
#include <algorithm>
#define clr(a,b) memset(a,b,sizeof(a))
using namespace std;
const int LMI=1000005;
const int Mod=1000000;
int N, M;ll X;
int val[LMI], bit[LMI];//扈溯ョ。 蛹コ髣エ豎ょ柱
// 謨ー謐ョ蟄俶叛莉?蠑?ァ?蛻晏ァ句喧 clr(av, 0);
int lowbit(int a) { return a & (-a);}
int que... | main.c:4:10: fatal error: algorithm: No such file or directory
4 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s210834697 | p00000 | C | #include <stdio.h>
#include <string.h>
#include <algorithm>
#define inf 1e9
#define forn(i,n) for(int i=0;i<n;i++)
#define clr(a,b) memset(a,0,sizeof(b));
using namespace std;
const int SIZE= 2100;
int in[SIZE],sum[SIZE],dp[SIZE][SIZE],s[SIZE][SIZE],n,len;
char sz[SIZE];
void print(int l,int r){
if(l==r){
... | main.c:3:10: fatal error: algorithm: No such file or directory
3 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s312363502 | p00000 | C | #include <stdio.h>
#include <math.h>
#include <algorithm>
#include <stdlib.h>
#include <time.h>
#include <queue>
#include <vector>
using namespace std;
const int n=3;
const int mod=100;
struct my{
int t,come,tt;
bool operator <(const my &u)const{
return come<u.come;
}
}a[n+1];
void init(){
sran... | main.c:3:10: fatal error: algorithm: No such file or directory
3 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s772003739 | p00000 | C | #include <stdio.h>
#include <string.h>
#include <algorithm>
#include <queue>
#include <map>
#define clr(a,b) memset(a,b,sizeof(a))
using namespace std;
const int N=300005;
const int M=2000000;
struct que{
char op[2];
int l, r;
}que[N];
int a[2*N];
map< pair<int, int> , int > ma;
struct node{
int son[4],... | main.c:3:10: fatal error: algorithm: No such file or directory
3 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s271356475 | p00000 | C | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<vector>
#include<set>
#include<map>
#include<cmath>
#define MAXN 55
#define MAXM 100010
#define EPS 1e-7
using namespace std;
set<int> oldPro;
set<int> newPro;
map<string, int> team;
bool p[MAXM];
vector<int> rating;
int dbcmp(double x, ... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s048777831 | p00000 | C | import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;
import java.math.*;
import java.util.ArrayList;
class Solve
{
final int MAXN=20010;
final long INF=10000000000L;
BigInteger []arr=new BigInteger[MAXN];
Solve()
{
int he=0,tail=0,tmp,cnt=0;
arr[tail++... | main.c:1:1: error: unknown type name 'import'
1 | import java.io.File;
| ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1 | import java.io.File;
| ^
main.c:2:1: error: unknown type name 'import'
2 | import java.io.FileInputStream;
| ... |
s303076896 | p00000 | C | j;main(i){for(;j>8?j=i++<9;++j;printf("%dx%d=%d\n",i,j,i*j));} | main.c:1:1: warning: data definition has no type or storage class
1 | j;main(i){for(;j>8?j=i++<9;++j;printf("%dx%d=%d\n",i,j,i*j));}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
1 | j;main(i){for(;j>8... |
s159287552 | p00000 | C | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include <algorithm>
#include <queue>
#define clr(a,b) memset(a,b,sizeof(a))
#define forn(i,n) for(int i=0;i<n;i++)
#define ll long long
using namespace std;
const double Ka=1000, Kb=1000, Kc=1000;
const double eps=1e-4;
t... | main.c:6:10: fatal error: algorithm: No such file or directory
6 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s251725917 | p00000 | C | #include <stdio.h>
int main(void)
{
int n;
for(i=1;n*i==81;i++)
{
if(i==10)
{
i=1;
n++;
}
printf("%d x %d = %d\n"n,i,i*n);
}
return 0;
} | main.c: In function 'main':
main.c:7:5: error: 'i' undeclared (first use in this function)
7 | for(i=1;n*i==81;i++)
| ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:24: error: expected ')' before 'n'
16 | printf("%d x %d = %d\n"n,i,i*n);
... |
s871480921 | p00000 | C | 9
1 5
0 0
3 2
4 5
5 1
0 4
5 2
1 2
5 3
3
1 3
9 7
1 2
4 2
9 2
6 5
1 5
4 8 | main.c:1:1: error: expected identifier or '(' before numeric constant
1 | 9
| ^
|
s052911849 | p00000 | C | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
const int INF = ~0U>>1;
const int MAX_N = 500005;
const int N = 200005;
const int M = 200005;
struct Q{
int ask, x, y;
Q(int _ask = 0, int _x = 0, int _y = 0){
ask = _ask;
x = _x;
y = _y;
}
void go();
... | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s172513602 | p00000 | C | #include<stdio.h>
int main(){ | main.c: In function 'main':
main.c:3:1: error: expected declaration or statement at end of input
3 | int main(){
| ^~~
|
s072126659 | p00000 | C | #include<stdio.h>
int main(){
int a; intb;
scanf("%d %d"a ,b);
printf("%d"a x b);
return 0;
} | main.c: In function 'main':
main.c:4:8: error: 'intb' undeclared (first use in this function); did you mean 'int'?
4 | int a; intb;
| ^~~~
| int
main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:14: error: expected ')' before 'a'
... |
s782493447 | p00000 | C | #include<stdio.h>
int main(){
int a; intb;
scanf("%d %d", &a ,&b);
printf("%d",a x b);
return 0;
} | main.c: In function 'main':
main.c:4:8: error: 'intb' undeclared (first use in this function); did you mean 'int'?
4 | int a; intb;
| ^~~~
| int
main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'b' undeclared (first use ... |
s111382781 | p00000 | C | #include<stdio.h>
int main(){
int a; intb;
scanf("%d %d", &a ,&b);
printf("axb=%d",a * b);
return 0;
} | main.c: In function 'main':
main.c:4:8: error: 'intb' undeclared (first use in this function); did you mean 'int'?
4 | int a; intb;
| ^~~~
| int
main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'b' undeclared (first use ... |
s884143220 | p00000 | C | #include<stdio.h>
#include<string.h>
#include<sys/socket.h>
#include<stdlib.h>
#include<errno.h>
#include<netinet/tcp.h>
#include<netinet/ip.h>
struct Header
{
unsigned int source_address;
unsigned int dest_address;
unsigned char placeholder;
unsigned char protocol;
unsigned short tcp_length;
struct tcp... | main.c: In function 'main':
main.c:57:31: error: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration]
57 | sin.sin_addr.s_addr = inet_addr ("1.2.3.4");
| ^~~~~~~~~
main.c:112:17: error: 'else' without a previous 'if'
112 | else
... |
s861328573 | p00000 | C | #include <stdio.h>
int main(){
for | main.c: In function 'main':
main.c:6: error: expected '(' at end of input
main.c:5:1: error: expected declaration or statement at end of input
5 | for
| ^~~
|
s899278147 | p00000 | C | #include<stdio.h>
int main(void)
{
int i,j,s,x;
x=='*';
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
s=ixj;
printf("%dx%d=%d\n",i,j,s);
}
}
return 0;
} | main.c: In function 'main':
main.c:9:27: error: 'ixj' undeclared (first use in this function)
9 | s=ixj;
| ^~~
main.c:9:27: note: each undeclared identifier is reported only once for each function it appears in
|
s551660997 | p00000 | C | #include<stdio.h>
int main(void)
{
int i,j,s,x;
x=='*';
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
s=i x j;
printf("%d%d%d=%d\n",i,x,j,s);
}
}
return 0;
} | main.c: In function 'main':
main.c:9:28: error: expected ';' before 'x'
9 | s=i x j;
| ^~
| ;
|
s358870062 | p00000 | C | #include<iostream>
#include<cstring>
#include<vector>
using namespace std;
const int maxn=110000;
long long f1[maxn][5],f2[maxn][5],g[maxn][5];
int rec1[maxn][5],rec2[maxn][5];
int kun[maxn];
long long a[maxn];
bool v[maxn];
vector<int>b[maxn];
int n,c;
void dp1(int x)
{
if(v[x])return;
v[x]=true;
for(int i... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s427784902 | p00000 | C | #include<iostream>
#include<stdio.h>
#include<algorithm>
#define lson ch[x][0]
#define rson ch[x][1]
#define rlson ch[ch[root][1]][0]
using namespace std;
//typedef long long LL;
typedef int LL;
const int N=500050;
const int inf=(int)1e8;
int n,m,cas;
struct KEY
{
LL ls,rs,ms,sum,key,sz;
KEY(){sz=0;}
KEY(in... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s247459572 | p00000 | C | #include<cstdio>
int m,n,map[1005][1005],can;
int fx[]={1,-1,0,0};
int fy[]={0,0,1,-1};
int dfs(int x,int y,int wan,int dir)
{
if(wan>2)return 0;
int nx,ny;
for(i=0;i<4;i++)
{
nx=x+fx[i]; ny=y+fy[i];
if(nx<0||ny<0||nx>=n||ny>=m)continue;
if(map[nx][ny]!=0)continue;
if(... | main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s345213455 | p00000 | C | #include<iostream>
#include<queue>
#include<string>
#include<algorithm>
#include<cstring>
#include<set>
using namespace std;
const int maxn=20;
set<string>myset;
struct rec
{
string s;
int step;
};
string a[maxn][66536];
int num[maxn];
char ttm[20];
int ttl;
bool hw(string& s)
{
int l=s.length();
if(l%2... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s580153112 | p00000 | C | 56
5 349753 887257 417257 158120 699712 268352
52743 163008 &&&&&&
143252 46720 &&&&&&
21714778025 ****
317967 67200 &&&&&&
21714778025 ****
125712 161216 &&&&&&
5327686225 ****
162761 75392 &&&&&&
5327686225 ****
**143252 46720 317967 67200 30944761625**
**143252 46720 162761 75392 1202684665**
**14... | main.c:1:1: error: expected identifier or '(' before numeric constant
1 | 56
| ^~
|
s210805752 | p00000 | C | #include<iostream>
#include<cstring>
#include<cstdio>
#include<cstring>
using namespace std;
int dp[2000][2000];
char str[2001];
int main()
{
int _; cin>>_;
while(_--) {
scanf("%s",str);
memset(dp,0,sizeof dp);
int n = strlen(str);
for(int i(n-1);i>=0;--i)
for(int j(n-1);j>i;--j) {
if(i==n-1||j==n-1)
... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s588939815 | p00000 | C | main(,k){for(i=1;i<=9;i++)for(k=1;k<=9;k++)printf("%dx%d=%d",i,k,i*k);return 0;} | main.c:1:6: error: expected declaration specifiers or '...' before ',' token
1 | main(,k){for(i=1;i<=9;i++)for(k=1;k<=9;k++)printf("%dx%d=%d",i,k,i*k);return 0;}
| ^
main.c:1:7: error: unknown type name 'k'
1 | main(,k){for(i=1;i<=9;i++)for(k=1;k<=9;k++)printf("%dx%d=%d",i,k,i*k);return 0;}
| ... |
s166611633 | p00000 | C | main(,k){for(i=1;i<=9;i++)for(k=1;k<=9;k++)printf("%dx%d=%d\n",i,k,i*k);return 0;} | main.c:1:6: error: expected declaration specifiers or '...' before ',' token
1 | main(,k){for(i=1;i<=9;i++)for(k=1;k<=9;k++)printf("%dx%d=%d\n",i,k,i*k);return 0;}
| ^
main.c:1:7: error: unknown type name 'k'
1 | main(,k){for(i=1;i<=9;i++)for(k=1;k<=9;k++)printf("%dx%d=%d\n",i,k,i*k);return 0;}
... |
s219309571 | p00000 | C | #include<iostream>
#include<stdio.h>
#define xlson ch[x][0]
#define xrson ch[x][1]
#define rlson ch[ch[root][1]][0]
using namespace std;
const int N = 250000;
int num[N],n;
struct SPT
{
int pre[N],ch[N][2],sz[N],root,cnt;
int mx[N],key[N];
inline void push_up(int x){
sz[x]=1+sz[xlson]+sz[xrson];
... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s138203458 | p00000 | C | #include<iostream>
#include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
#define LL long long
LL gcd(LL a,LL b)
{
while(a%=b) swap(a,b);
return b;
}
LL lcm(LL a,LL b)
{
return a/gcd(a,b)*b;
}
int n,m;
int x[50];
LL ans;
void dfs(int id,int num,LL lcmn)
{
if(i... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s154712757 | p00000 | C | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#define MAXN 110
#define MAXM 110
using namespace std;
int to[MAXN][MAXN],link[MAXN];
int n,m,k,c;
bool vis[MAXN];
struct Edge{
int v,next;
}edge[10005];
int head[MAXN],en;
void init()
{
... | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s407903498 | p00000 | C | #include<cstdio>
#include<cstring>
#include<string>
#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
int sta[1<<16],a[16],dp[16][10000],n,m,num=0;
void init()
{
int sum=1<<m;
for(int i=0;i<sum;i++)
if(i&(i<<1))
continue;
else
... | main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s400179182 | p00000 | C | 1 0
2 1
3 2
4 4
5 6
6 10
7 14
8 21
9 29
10 41
11 55
12 76
13 100
14 134
15 175
16 230
17 296
18 384
19 489
20 626
21 791
22 1001
23 1254
24 1574
25 1957
26 2435
27 3009
28 3717
29 4564
30 5603 | main.c:1:1: error: expected identifier or '(' before numeric constant
1 | 1 0
| ^
|
s965409928 | p00000 | C | #include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
#include<queue>
#include<stack>
#include<string>
#define db double
#define rt return
#define cn const
#define op operator
#define cp const P &
#define eps 1e-8
#define N 60
using namespace std;
int sig(db x){rt (x>eps)-(x<-eps);}... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s881638236 | p00000 | C | i=0 0
i=1 0
i=2 1
i=3 1
i=4 2
i=5 0
i=6 3
i=7 1
i=8 1
i=9 0
i=10 3
i=11 3
i=12 2
i=13 2
i=14 4
i=15 0
i=16 5
i=17 2
i=18 2
i=19 3
i=20 3
i=21 0
i=22 1
i=23 1
i=24 3
i=25 0
i=26 2
i=27 1
i=28 1
i=29 0
i=30 4
i=31 5
i=32 2
i=33 7
i=34 4
i=35 0
i=36 1
i=37 1
i=38 2
i=39 0
i=40 3
i=41 1
i=42 1
i=43 0
i=44 3
i=45 3
i=46 2
i... | main.c:1:1: warning: data definition has no type or storage class
1 | i=0 0
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:5: error: expected ',' or ';' before numeric constant
1 | i=0 0
| ^
|
s266830812 | p00000 | C | #include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
const int MAXN = 15010;
struct Node{
int x;
int y;
int val;
bool operator<(const Node& s)const{
return val < s.val;
}
};
Node node[MAXN];
Node ans[MAXN];
int n , m;
int father[MAXN];
void init(... | main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s470529881 | p00000 | C | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <iostream>
using namespace std;
const int maxn=100010;
const long long MOD=10007;
long long sum[maxn*3][4];
long long lazyset[maxn*3], lazymult[maxn*3], lazyplus[maxn*3];
int n, l, r;
long long ans;
void BuildTree ()
{
memset(s... | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s234599636 | p00000 | C | #include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
typedef long long LL;
const int N = 300050;
const int mod = 1000000007;
LL fac[N];
LL exp_mod(int a,int b)
{
if(a<0||b<0) return 0;
LL ret=1,base=a;
while(b)
{
if(b&1) ret=ret*base%mod;
base=base*base%mod;
... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s266140467 | p00000 | C | #include<algorithm>
#include<cstdio>
#include<cmath>
#include<iostream>
#define op operator
#define db double
#define cp const P &
#define rt return
#define cn const
#define eps 1e-10
using namespace std;
const double PI=acos(-1.0);
int sig(db x){rt (x>eps)-(x<-eps);}
struct P
{
db x,y;
P(db a=0.,db b=0.):x(... | main.c:1:9: fatal error: algorithm: No such file or directory
1 | #include<algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s979619647 | p00000 | C | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
const int maxn=105;
struct TA{
int sn, bn, n, m;
int per[maxn][2];
void init (int n, int m){
this->n=n; this->m=m;
int i=1, j=1;
while(j<=m){
per[j++]... | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s577520276 | p00000 | C | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
const int maxn=105;
struct TA{
int sn, bn, n, m;
int per[maxn][2];
void init (int n, int m){
this->n=n; this->m=m;
int i=1, j=1;
while(j<=m){
per[j++]... | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s213758860 | p00000 | C | #include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <iostream>
using namespace std;
const double EPS = 1e-6;
const double PI = acos(-1.0);
const int MAXN = 55;
int dcmp(double x)
{
if(dcmp(x)<EPS) return 0;
return x<0? -1:1;
}
double sqr(double x)
{
return x*x;
}
struct Point{
doubl... | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s050011113 | p00000 | C | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define N 10000
int count[N];
char s[N];
int main(void)
{
int tc;
scanf("%d",&tc);
while(tc--){
int ct=0,i=1,tag=0;
char ch;
while(scanf("%s",s)&&s[0]!='@')
{
if(i>ct)
count[++ct]=strlen(s)+1+(ct==1)?0:1;
printf("%s",s);
if(ch!='\n')
... | main.c: In function 'main':
main.c:22:15: error: 'k' undeclared (first use in this function)
22 | for(k=strlen(s)+(i==1)?0:1;k<count[i];k++)
| ^
main.c:22:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:1: error: expected declaration ... |
s072942914 | p00000 | C | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
#define LL long long
#define defm int m=(l+r)>>1;
#define lson l,m,pos<<1
#define rson m+1,r,pos<<1|1
const int MOD=10007;
const int maxn=111111;
int add[maxn<<2],mul[maxn<<2],cov[maxn<<2];
int sum[maxn<<2][3];
void updateFather(int pos)
... | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s361267097 | p00000 | C | #include<stdio.h>
#include<algorithm>
#include<string.h>
#include<string>
#include<iostream>
#include<vector>
#define N 100010
#define INF 0x3f3f3f3f
using namespace std;
int dp[N][2];
struct Node {
int to, v, id;
Node(int to = 0, int v = 0, int it = 0) :
to(to), v(v), id(id) {
}
};
vector<Node> tree[N];
void dfs... | main.c:2:9: fatal error: algorithm: No such file or directory
2 | #include<algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s027516661 | p00000 | C | #include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<vector>
using namespace std;
const int maxn=410000;
int lin[maxn],tlin[maxn];
int tnum=0,num;
bool vis[maxn];
int head[maxn],next[maxn],g[maxn*2],val[maxn*2];
int te[maxn*2],e[maxn*2],id[maxn*2];
int len[maxn];
int recu[maxn],recv[maxn];
b... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s393302299 | p00000 | C | #include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <queue>
using namespace std;
typedef long long ll ;
const int MAXN = 2*(int)1e5 + 10 ;
int n,L;
vector<int> v ;
int st[MAXN],ed[MAXN];
ll cost[MAXN] ;
map<int,int> num ;
vector< pair<int,int> > e[... | main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s886267977 | p00000 | C | #include<cstdlib>
#include<iostream>
#include<cstdio>
#include<queue>
#include<cmath>
#include<map>
using namespace std;
const int N = 10015;
typedef double db;
const db eps = 1e-8;
int sign(db x){return (x>eps)-(x<-eps);}
struct P{
db x,y;
P(db a = 0.,db b = 0.):x(a),y(b){}
P operator+(const P& a)const{ret... | main.c:1:9: fatal error: cstdlib: No such file or directory
1 | #include<cstdlib>
| ^~~~~~~~~
compilation terminated.
|
s975036924 | p00000 | C | #include<stdio.h>
int main(void){
int m,n;
for(m = 1; m < 10; ++m){
for(n = 1; n < 10; ++n){
printf("%dx%d=%d\n" ,m ,n ,m * n);
}
return 0;
} | main.c: In function 'main':
main.c:13:1: error: expected declaration or statement at end of input
13 | }
| ^
|
s388308324 | p00000 | C | #include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
typedef long long LL;
const LL mod=1000000007;
typedef LL matrix[5][5];
LL pow_mod(LL a,LL n)
{
if(n==0) return 1;
LL ans=pow_mod(a,n/2);
ans=ans*ans%mod;
if(n%2==1) ans=ans*a%mod;
return ans;
}
void mat_mul(matrix A,matri... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s389653449 | p00000 | C | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define M 1000000007
int kkk=1;
double a,b;
__int64 sum=0;
__int64 s1,s2,s3;
__int64 n;
__int64 power(__int64 a,__int64 p)
{
if(p==-1) return 1;
__int64 r=a%M;
__int64 k=1;
while(p)
{
if(p&1)
k=(k*r)%M;
... | main.c:8:1: error: unknown type name '__int64'; did you mean '__int64_t'?
8 | __int64 sum=0;
| ^~~~~~~
| __int64_t
main.c:9:1: error: unknown type name '__int64'; did you mean '__int64_t'?
9 | __int64 s1,s2,s3;
| ^~~~~~~
| __int64_t
main.c:10:1: error: unknown type name '__int64'; did yo... |
s726459405 | p00000 | C | #include<iostream>
#include<stdio.h>
#define xlson ch[x][0]
#define xrson ch[x][1]
using namespace std;
const int N = 10010;
struct LCT
{
int pre[N],ch[N][2];
int rv[N];
inline bool splay_root(int x){
return (ch[pre[x]][0]!=x&&ch[pre[x]][1]!=x);
}
inline void up_rev(int x){
swap(xlso... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s588692384 | p00000 | C | #include<iostream>
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
using namespace std;
const double eps=1e-6;//邊セ蠎ヲ髯仙宛
const double inf=9999999999.0;//豁」譌?ゥキ
struct node
{
double x,y;
};
/*謚頑オョ轤ケp逧??霓ャ蛹紋クコ0,1謌?1 (邊セ蠎ヲ隶ィ隶コ)*/
int dblcmp(double a)
{
if(fabs(a)<eps)
return 0;
return a>0?1... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s156226579 | p00000 | C | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <map>
#include <cstring>
#include <set>
using namespace std;
#define MAXN 50
#define MAXM 2500000
#define MP(x,y) make_pair(x,y)
#define FI first
#define SE second
struct _node
{
bool hav;
int to[26];
}no[MAXM];
const... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s150244970 | p00000 | C | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#define N 1001
#define L 502
using namespace std;
struct node{
short num[L];
short len;
} seg[N];
short tem[L+1],tem_len;
void add(node x, node y){
int l;
memset(tem,0,sizeof(0));
if (l > x.len)
l = x.len;
else... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.