submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s014928794
p02264
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
s635759539
p02264
C
#include<stdio.h> char Bubblesort(char *,int); char SelectionSort(char*,int); int main(){ int n,i; scanf("%d",&n); if(n<1||n>36)return 0; char *s[n]; for(i=0;i<n;i++){ scanf("%s",s[i]); } for(i=0;i<n;i++){ printf("%s\n",Bubblesort(*s,n)); printf("%s\n",SelectionSort(*s,n)); s++; } return 0; } char Bubblesort(char *s...
main.c: In function 'main': main.c:15:2: error: lvalue required as increment operand 15 | s++; | ^~
s520409974
p02264
C
#include<stdio.h> char Bubblesort(char *,int); char SelectionSort(char*,int); int main(){ int n,i; scanf("%d",&n); if(n<1||n>36)return 0; char *s[n]; for(i=0;i<n;i++){ scanf("%s",s[i]); } for(i=0;i<n;i++){ printf("%s\n",Bubblesort(*s,n)); printf("%s\n",SelectionSort(*s,n)); s++; } return 0; } char Bubblesort(char *s...
main.c: In function 'main': main.c:15:2: error: lvalue required as increment operand 15 | s++; | ^~
s387027227
p02264
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
s776522566
p02264
C
#include<stdio.h> #include<string.h> #define L 100000 typedef struct a { char name[100]; int time; } P; P p[LEN]; int h, t, n; void enq(P x) { p[t] = x; t = (t + 1) % L; } P deq() { P x = p[h]; h = (h + 1) % L; return x; } int min(int a, int b) { if(a > b) { return b; } else { ...
main.c:11:5: error: 'LEN' undeclared here (not in a function) 11 | P p[LEN]; | ^~~
s141292108
p02264
C
include<stdio.h> #include<string.h> #define N 100000 int main(void){ int n, q, time[N], i, j, sumT1=0, sumT2=0, T; char name[N][10], cpyname[10]; scanf("%d%d", &n, &q); for(i=0; i<n; i++) scanf("%s%d", name[i], &time[i]); for(i=0; i<n; i++) sumT1 += time[i]; i=0; while(sumT1 > sumT2){ T = ...
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^ In file included from main.c:2: /usr/include/string.h:44:22: error: unknown type name 'size_t' 44 | size_t __n) __THROW __nonnull ((1, 2)); | ...
s547512981
p02264
C
include<stdio.h> #include<string.h> #define N 100000 int main(void){ int n, q, time[N], i, j, sumT1=0, sumT2=0, T; char name[N][10], cpyname[10]; scanf("%d%d", &n, &q); for(i=0; i<n; i++) scanf("%s%d", name[i], &time[i]); for(i=0; i<n; i++) sumT1 += time[i]; i=0; while(sumT1 > sumT2){ T = ...
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^ In file included from main.c:2: /usr/include/string.h:44:22: error: unknown type name 'size_t' 44 | size_t __n) __THROW __nonnull ((1, 2)); | ...
s076100104
p02264
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
s733410513
p02264
C
#include<stdio.h> #include<stdring.c.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }p; p Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; return x; } int main(int a,int b){returna<b ? a:b;} intmain(){ int elaps=0,c; int i,q; p u; scanf(%d%d,&n,&q); for...
main.c:2:9: fatal error: stdring.c.h: No such file or directory 2 | #include<stdring.c.h> | ^~~~~~~~~~~~~ compilation terminated.
s063138840
p02264
C
#include<stdio.h> #include<stdring.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }p; p Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; return x; } int main(int a,int b){returna<b ? a:b;} intmain(){ int elaps=0,c; int i,q; p u; scanf(%d%d,&n,&q); for(i...
main.c:2:9: fatal error: stdring.h: No such file or directory 2 | #include<stdring.h> | ^~~~~~~~~~~ compilation terminated.
s983447277
p02264
C
#include<stdio.h> #include<stdring.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }p; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; return x; } int main(int a,int b){returna<b ? a:b;} intmain(){ int elaps=0,c; int i,q; p u; scanf(%d%d,&n,&q); for(i...
main.c:2:9: fatal error: stdring.h: No such file or directory 2 | #include<stdring.h> | ^~~~~~~~~~~ compilation terminated.
s131458473
p02264
C
#include<stdio.h> #include<stdring.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }p; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int main(int a,int b){returna<b ? a:b;} intmain(){ int elaps=0...
main.c:2:9: fatal error: stdring.h: No such file or directory 2 | #include<stdring.h> | ^~~~~~~~~~~ compilation terminated.
s677537856
p02264
C
#include<stdio.h> #include<stdring.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }p; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int main(int a,int b){return a<b ? a:b;} intmain(){ int elaps=...
main.c:2:9: fatal error: stdring.h: No such file or directory 2 | #include<stdring.h> | ^~~~~~~~~~~ compilation terminated.
s630627940
p02264
C
#include<stdio.h> #include<stdring.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }p; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int main(int a,int b){return a<b ? a:b;} int main(){ int elaps...
main.c:2:9: fatal error: stdring.h: No such file or directory 2 | #include<stdring.h> | ^~~~~~~~~~~ compilation terminated.
s225105398
p02264
C
#include<stdio.h> #include<stdring.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }p; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int main(int a,int b){return a<b ? a:b;} int main(){ int elaps...
main.c:2:9: fatal error: stdring.h: No such file or directory 2 | #include<stdring.h> | ^~~~~~~~~~~ compilation terminated.
s386494457
p02264
C
#include<stdio.h> #include<stdring.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }p; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int main(int a,int b){return a<b ? a:b;} int main(){ int elaps...
main.c:2:9: fatal error: stdring.h: No such file or directory 2 | #include<stdring.h> | ^~~~~~~~~~~ compilation terminated.
s434071394
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }p; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int main(int a,int b){return a<b ? a:b;} int main(){ int elaps=...
main.c:10:1: error: unknown type name 'P' 10 | P Q[LEN]; | ^ main.c:13:14: error: unknown type name 'P' 13 | void enqueue(P x){ | ^ main.c:17:1: error: unknown type name 'P' 17 | P dequeue(){ | ^ main.c: In function 'dequeue': main.c:18:3: error: unknown type name 'P' 18 | P...
s952860682
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int main(int a,int b){return a<b ? a:b;} int main(){ int elaps=...
main.c:24:5: error: redefinition of 'main' 24 | int main(){ | ^~~~ main.c:22:5: note: previous definition of 'main' with type 'int(int, int)' 22 | int main(int a,int b){return a<b ? a:b;} | ^~~~ main.c: In function 'main': main.c:24:1: error: number of arguments doesn't match prototype 24 ...
s628087085
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int man(int a,int b){return a<b ? a:b;} int main(){ int elaps=0...
main.c: In function 'main': main.c:27:3: error: unknown type name 'p' 27 | p u; | ^ main.c:36:7: error: implicit declaration of function 'depueue'; did you mean 'dequeue'? [-Wimplicit-function-declaration] 36 | u=depueue(); | ^~~~~~~ | dequeue main.c:37:18: error: 't' undecla...
s307382798
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int man(int a,int b){return a<b ? a:b;} int main(){ int elaps=0...
main.c: In function 'main': main.c:36:7: error: implicit declaration of function 'depueue'; did you mean 'dequeue'? [-Wimplicit-function-declaration] 36 | u=depueue(); | ^~~~~~~ | dequeue main.c:36:7: error: incompatible types when assigning to type 'P' {aka 'struct pp'} from type 'int' m...
s549555350
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int man(int a,int b){return a<b ? a:b;} int main(){ int elaps=0...
main.c: In function 'main': main.c:37:7: error: implicit declaration of function 'depueue'; did you mean 'dequeue'? [-Wimplicit-function-declaration] 37 | u=depueue(); | ^~~~~~~ | dequeue main.c:37:7: error: incompatible types when assigning to type 'P' {aka 'struct pp'} from type 'int' m...
s325115609
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct PP{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int man(int a,int b){return a<b ? a:b;} int main(){ int elaps=0...
main.c: In function 'main': main.c:37:7: error: implicit declaration of function 'depueue'; did you mean 'dequeue'? [-Wimplicit-function-declaration] 37 | u=depueue(); | ^~~~~~~ | dequeue main.c:37:7: error: incompatible types when assigning to type 'P' {aka 'struct PP'} from type 'int' m...
s186824329
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct PP{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int man(int a,int b){return a<b ? a:b;} int main(){ int elaps=0...
main.c: In function 'main': main.c:37:7: error: implicit declaration of function 'depueue'; did you mean 'dequeue'? [-Wimplicit-function-declaration] 37 | u=depueue(); | ^~~~~~~ | dequeue main.c:37:7: error: incompatible types when assigning to type 'P' {aka 'struct PP'} from type 'int' m...
s777776432
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct PP{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int man(int a,int b){return a<b ? a:b;} int main(){ int elaps=0...
main.c: In function 'main': main.c:37:7: error: implicit declaration of function 'depueue'; did you mean 'dequeue'? [-Wimplicit-function-declaration] 37 | u=depueue(); | ^~~~~~~ | dequeue main.c:37:7: error: incompatible types when assigning to type 'P' {aka 'struct PP'} from type 'int' m...
s304317065
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct PP{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int man(int a,int b){return a<b ? a:b;} int main(){ int elaps=0...
main.c: In function 'main': main.c:37:7: error: implicit declaration of function 'depueue'; did you mean 'dequeue'? [-Wimplicit-function-declaration] 37 | u=depueue(); | ^~~~~~~ | dequeue main.c:37:7: error: incompatible types when assigning to type 'P' {aka 'struct PP'} from type 'int' m...
s818645415
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int time; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int min(int a,int b){ return a<b?a:b; } int main(){ int...
main.c: In function 'main': main.c:38:21: error: 'P' {aka 'struct pp'} has no member named 't' 38 | scanf("%d",&Q[i].t); | ^ main.c:45:14: error: 'P' {aka 'struct pp'} has no member named 't' 45 | c=min(q,u.t); | ^ main.c:46:6: error: 'P' {aka 'struct pp'} has ...
s705401498
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct PP{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int man(int a,int b){return a<b ? a:b;} int main(){ int elaps=0...
main.c: In function 'main': main.c:38:18: error: 't' undeclared (first use in this function) 38 | c=main(q,u,t); | ^ main.c:38:18: note: each undeclared identifier is reported only once for each function it appears in
s213468341
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct PP{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int man(int a,int b){return a<b ? a:b;} int main(){ int elaps=0...
main.c: In function 'main': main.c:38:9: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration] 38 | c=min(q,u,t); | ^~~ | main main.c:38:17: error: 't' undeclared (first use in this function) 38 | c=min(q,u,t); | ...
s327362661
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct PP{ char name[100]; int t; }P; P Q[LEN]; int head,tail,n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int man(int a,int b){return a<b ? a:b;} int main(){ int elaps=0...
main.c: In function 'main': main.c:38:9: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration] 38 | c=min(q,u.t); | ^~~ | main
s090105146
p02264
C
#include<stdio.h> #include<string.h> #include <stdlib.h> typedef struct { char name[500]; int time; }Process; int enqueue( Process *p, Process x,int tail,int number); int dequeue( Process *p, Process x, int head,int number); int main() { int head = 0; int tail = 0; int number, time; ...
main.c: In function 'main': main.c:23:8: error: assignment to expression with array type 23 | p = (char *)malloc(100 * sizeof(char)); | ^
s534117051
p02264
C
#include<stdio.h> #define L 100005 typedef struct{ char pname[100]; int time; }EQ; EQ eq[L]; int head, tail,n; void enqueue(EQ a){ eq[tail]=a; tail=(tail+1)%L; } EQ dequeue(){ EQ a=eq[head]; head=(head+1)%L; return 0; } int minjudge(int a,int b){ if(a<b){return a;} else{return b} } int main(){ ...
main.c: In function 'dequeue': main.c:20:10: error: incompatible types when returning type 'int' but 'EQ' was expected 20 | return 0; | ^ main.c: In function 'minjudge': main.c:25:16: error: expected ';' before '}' token 25 | else{return b} | ^ | ; main...
s107442058
p02264
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
s223922358
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail]=x; tail = (tail+1)%LEN } P dequeue(){ P x=Q[head]; head = (head+1)%LEN; return x; } int main(){ int elaps = 0, c; int i, q; P u; sc...
main.c: In function 'enqueue': main.c:17:1: error: expected ';' before '}' token 17 | } | ^ main.c: In function 'main': main.c:42:8: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration] 42 | c= min(q,u,t); | ^~~ | main main.c:42:...
s933704509
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; int res(int x, int y){ return x<y?x:y; } void enqueue(P x){ Q[tail]=x; tail = (tail+1)%LEN } P dequeue(){ P x=Q[head]; head = (head+1)%LEN; return x; } int main(){ ...
main.c: In function 'enqueue': main.c:20:1: error: expected ';' before '}' token 20 | } | ^ main.c: In function 'main': main.c:45:16: error: 't' undeclared (first use in this function) 45 | c= res(q,u,t); | ^ main.c:45:16: note: each undeclared identifier is reported only once for e...
s885692092
p02264
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
s585040077
p02264
C
#include <bits/stdc++.h> using namespace std; typedef struct pp{ char name[100]; int t; }P; int main(){ int i,n,q,sum=0,x; string s; P A[1000]; queue<string> Name; queue<int> Time; cin >> n >> q; for(i=0;i<n;i++){ cin >> A[i].name >> A[i].t; Name.push(A[i].name); Time.push(A[i].t); }...
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s727384348
p02264
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
s386523028
p02264
C
#include <stdio.h> #include <string.h> #include<stdlib.h> #define n_max 100005 #define len 100 typedef struct task{ char name[len]; int time; }T; int main(){ int fin=0,i,q,n,count=0; T Q[n_max]; scanf("%d %d",&n,&q); if(n>N||n<=0) exit(1); for(i=1;i<=n;i++){ scanf("%s",Q[i].name); scanf("%d",&Q...
main.c: In function 'main': main.c:17:8: error: 'N' undeclared (first use in this function) 17 | if(n>N||n<=0) exit(1); | ^ main.c:17:8: note: each undeclared identifier is reported only once for each function it appears in
s705832820
p02264
C
#include <stdio.h> #include <string.h> #include<stdlib.h> #define n_max 100005 #define len 100 typedef struct task{ char name[len]; int time; }T; int main(){ int fin=0,i,q,n,count=0; T Q[n_max]; scanf("%d %d",&n,&q); if(n>N||n<=0) exit(1); for(i=1;i<=n;i++){ scanf("%s",Q[i].name); scanf("%d",&Q...
main.c: In function 'main': main.c:17:8: error: 'N' undeclared (first use in this function) 17 | if(n>N||n<=0) exit(1); | ^ main.c:17:8: note: each undeclared identifier is reported only once for each function it appears in
s133412083
p02264
C
#include<stdio.h> #include<stdlib.h> #define LEN 100005 #define MAX 100000 typedef struct pp{ char name[100]; int t; }P; P Q[LEN + 1]; int head = 0,tail = 0,n; void enqueue(P x){ if(isFull()){ printf("error_Full\n"); exit(0); } Q[tail] = x; if((tail + 1) == MAX)tail = 0; else tail++; } P deque...
main.c: In function 'enqueue': main.c:15:6: error: implicit declaration of function 'isFull' [-Wimplicit-function-declaration] 15 | if(isFull()){ | ^~~~~~ main.c: In function 'dequeue': main.c:26:6: error: implicit declaration of function 'isEmpty' [-Wimplicit-function-declaration] 26 | if(isEmpty(...
s143087018
p02264
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
s996268506
p02264
C
#include<stdio.h> #include<string.h> void QueSort(char (*A)[11],int *,int,int); int main(){ int n,q; char A[100000][11]; int B[100000]; int i; scanf("%d%d",&n,&q); for(i=0;i<n;i++){ scanf("%s%d",&A[i],&B[i]); } QueSort(A,B,n,q); return 0; } void QueSort(char (*A)[11],int *B,int n,int q){ int ...
main.c: In function 'QueSort': main.c:17:16: error: expected ',' or ';' before 'i' 17 | int s=0,t=0 i; | ^ main.c:20:9: error: 'i' undeclared (first use in this function) 20 | for(i=0;i<n-1;i++){ | ^ main.c:20:9: note: each undeclared identifier is reported only once for ...
s735987622
p02264
C
#include<stdio.h> #include<string.h> #define MAX 1000005 typedef struct d{ char name[11]; int time; char sname[11]; int stime; char Ansname[11]; int Anstime; }date; Int main(){ int n,q,i,str,tmp,tmp2,j,k=0; date tn[MAX]; scanf("%d%d",&n,&q); for(i=1;i<n+1;i++){ scanf("%s ",tn[i].name); ...
main.c:14:1: error: unknown type name 'Int'; did you mean 'int'? 14 | Int main(){ | ^~~ | int
s684816488
p02264
C
#include #include #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ } P dequeue(){ } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q); for ( i = 1; i <= n; i++){ scanf("%s", Q[i].name); scanf("%d", &Q[i].t...
main.c:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include | ^ main.c:2:9: error: #include expects "FILENAME" or <FILENAME> 2 | #include | ^ main.c: In function 'main': main.c:26:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 26...
s762995868
p02264
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
s946868291
p02264
C
#include<stdio.h> #include<stdlib.h> int main(){ int n, q, *time, i, tsam=0, cnt=0,j; char *name[t]; scanf("%d%d",&n, &q); time = (int *)malloc(sizeof(int)*n); for(i=0; i<=n-1; i++){ name[i] = (char *)malloc(sizeof(char)*n); } for(i=0; i<=n-1; i++){ scanf("%s%d",name[i], &time[i]); } whil...
main.c: In function 'main': main.c:7:14: error: 't' undeclared (first use in this function) 7 | char *name[t]; | ^ main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
s312819886
p02264
C
import java.util.*; import java.io.*; class Main{ public static void main(String[] args) throws IOException{ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int reg = scan.nextInt(); Queue<String> method = new LinkedList<String>(); Queue<Integer> time = new LinkedList<Integer>(); int i; int t...
main.c:1:1: error: unknown type name 'import' 1 | import java.util.*; | ^~~~~~ main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 1 | import java.util.*; | ^ main.c:2:1: error: unknown type name 'import' 2 | import java.io.*; | ^~~~~~ main.c:2:...
s157469889
p02264
C
import java.util.*; import java.io.*; class queue{ public static void main(String[] args) throws IOE{ Scanner s=new Scanner(System.in); int i,n,m,gt=0; Queue<string>q=newLinkedList<String>(); Queue<Integer>time=new LinkedList<Integer>(); n=s.nextInt(); t=s.nextInt(); for(i=0;i<n;i++){ q.add(s.next()...
main.c:1:1: error: unknown type name 'import' 1 | import java.util.*; | ^~~~~~ main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 1 | import java.util.*; | ^ main.c:2:1: error: unknown type name 'import' 2 | import java.io.*; | ^~~~~~ main.c:2:...
s122409158
p02264
C
#include <stdio.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x); P dequeue(); int main(){ int elaps = 0, c=0; int i, q; P u; scanf("%d %d", &n, &q); for ( i = 1; i <= n; i++){ scanf("%s", Q[i].name); scanf("%d", &Q[i].t);...
/usr/bin/ld: /tmp/ccNYcB5o.o: in function `main': main.c:(.text+0x16b): undefined reference to `enqueue' /usr/bin/ld: main.c:(.text+0x19f): undefined reference to `dequeue' collect2: error: ld returned 1 exit status
s362732712
p02264
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
s648062262
p02264
C
#include <stdio.h> #include <string.h> typedef struct proces { char name[10]; int t; int flag; } P; P S[100005]; int head, tail, n; void enqueue(P x) { S[tail] = x; tail = (tail + 1) % 100005; } P dequeue() { P x = S[head]; head = (head + 1) % 100005; return x; } int min(int a, int b) { if (x > y)...
main.c: In function 'min': main.c:24:7: error: 'x' undeclared (first use in this function) 24 | if (x > y) | ^ main.c:24:7: note: each undeclared identifier is reported only once for each function it appears in main.c:24:11: error: 'y' undeclared (first use in this function) 24 | if (x > y) ...
s046977577
p02264
C
#include <stdio.h> #include <string.h> typedef struct proces { char name[10]; int t; int flag; } P; P S[100005]; int head, tail, n; void enqueue(P x) { S[tail] = x; tail = (tail + 1) % 100005; } P dequeue() { P x = S[head]; head = (head + 1) % 100005; return x; } int min(int a, int b) { if (x > y)...
main.c: In function 'min': main.c:24:7: error: 'x' undeclared (first use in this function) 24 | if (x > y) | ^ main.c:24:7: note: each undeclared identifier is reported only once for each function it appears in main.c:24:11: error: 'y' undeclared (first use in this function) 24 | if (x > y) ...
s289290681
p02264
C
#include #include #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ int i; P a; a=Q[0]= } P dequeue(){ } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q); for ( i = 1; i <= n; i++){ scanf("%s", Q[i].name)...
main.c:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include | ^ main.c:2:9: error: #include expects "FILENAME" or <FILENAME> 2 | #include | ^ main.c: In function 'enqueue': main.c:18:1: error: expected expression before '}' token 18 | } | ^ main.c: In function ...
s151416981
p02264
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
s728498014
p02264
C
#include #include #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x,P y){ int i; P a; a=x; x=y; y=a; } P dequeue(elaps){ int i; for(i=0;i<n-elaps;i++){ } } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &...
main.c:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include | ^ main.c:2:9: error: #include expects "FILENAME" or <FILENAME> 2 | #include | ^ main.c: In function 'dequeue': main.c:22:3: error: type of 'elaps' defaults to 'int' [-Wimplicit-int] 22 | P dequeue(elaps){ ...
s350825335
p02264
C
// AOJ ALDS1_3_B Queue // 2018.4.30 bal4u #include <stdio.h> #define MAX_N 100002 typedef struct { char *p; int tm; } Q; Q que[(MAX_N<<1)+2]; int top, end; char name[MAX_N][20]; char buf[20], *p; int in() { int n = 0; while (*p >= '0') n = 10*n + (*p++ & 0xf); p++; return n; } int main() { int n, q, tm, i; ...
main.c: In function 'main': main.c:24:9: error: expected declaration or statement at end of input 24 | Q t; | ^
s822550844
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN]; int head, tail, n; void enqueue(P x){ Q[tail] = x; tail = (tail + 1) % LEN; } P dequeue(){ P x = Q[head]; head = (head + 1) % LEN; return x; } int min(int a, int b){ return a<b ? a : b;} int main...
main.c: In function 'main': main.c:44:30: error: implicit declaration of function 'equeue'; did you mean 'dequeue'? [-Wimplicit-function-declaration] 44 | if( u.t > 0 )equeue(u); | ^~~~~~ | dequeue
s407771252
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN]; int head, tail, n; void enqueue(P x){ Q[tail] = x; tail = (tail + 1) % LEN; } P dequeue(){ P x = Q[head]; head = (head + 1) % LEN; return x; } int min(int a, int b){ return a<b ? a : b;} int main...
main.c: In function 'main': main.c:44:30: error: implicit declaration of function 'equeue'; did you mean 'dequeue'? [-Wimplicit-function-declaration] 44 | if( u.t > 0 )equeue(u); | ^~~~~~ | dequeue
s160967020
p02264
C
#include<stdio.h> #include<string.h> #define len 100005 typedf struct pp{ char name[100]; int t; }P; P Q[len]; int head,tail,n; void enq(P x){ Q[tail]=x; tail=(tail+1)%len; } P deq(){ P x=Q[head]; head=(head+1)%len; return x; } int min(int a,int b){return a<b?a:b;} int main(void){ int ela=0,c; int i,q; ...
main.c:5:7: error: expected ';' before 'struct' 5 | typedf struct pp{ | ^~~~~~~ | ; main.c:10:1: error: unknown type name 'P' 10 | P Q[len]; | ^ main.c:13:10: error: expected declaration specifiers or '...' before 'P' 13 | void enq(P x){ | ^ main.c:18:1: error: unk...
s274092512
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp { char name[100]; int t; } P; P Q[LEN]; int head,tail, n; void enqueue(P x){ Q[tail] = x; tail = (tail + 1 ) % LEN; } P dequeue(){ p x = Q[head]; head = (head + 1) % LEN; return x; } int min(int a,int b) { return a < b ? a : b; } int...
main.c: In function 'dequeue': main.c:19:9: error: unknown type name 'p' 19 | p x = Q[head]; | ^ main.c:19:15: error: incompatible types when initializing type 'int' using type 'P' {aka 'struct pp'} 19 | p x = Q[head]; | ^ main.c:21:16: error: incompatible types w...
s062360916
p02264
C
#include<stdio.h> #include<cassert> #include<string.h> #define LEN 10000 struct P{ char name[100]; int t; }; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail] = x; if ( tail == LEN ) tail = 1; else tail++; } P dequeue(){ P x = Q[head]; if ( head == LEN ) head = 1; else head++; return x; } ...
main.c:2:9: fatal error: cassert: No such file or directory 2 | #include<cassert> | ^~~~~~~~~ compilation terminated.
s246324156
p02264
C
#include<iostream> #include<string> #include<cstdlib> #define N 100000 using namespace std; typedef struct{ int num[N]; int head; int tail; }Queque; //grobal Queque que; //add to head position void push(int); //delete head position void pop(void); //return now of stck int front(void); int main(){ ...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s228929825
p02264
C
#include <stdio.h> #include <string.h> void enqueue(int index); int dequeue(void); int Q[1001]; int lastQ; char name[1001][11]; int time[1001]; main(){ int i, index; char inName[11]; int inTime; int elapsedTime = 0; int n,q; firstQ = 0; lastQ = 0; scanf("%d %d",&n,&q); for(i=0; i<n; i++){ ...
main.c:13:1: error: return type defaults to 'int' [-Wimplicit-int] 13 | main(){ | ^~~~ main.c: In function 'main': main.c:21:3: error: 'firstQ' undeclared (first use in this function) 21 | firstQ = 0; | ^~~~~~ main.c:21:3: note: each undeclared identifier is reported only once for each function it...
s487761605
p02264
C
#include<stdio.h> #include<string.h> int d; int q; typedef struct { char name[100]; int t; }Process; Process Q[100000000]; int n; int head=0, tail=0; void enqueue(Process x){ Q[head]=x; head++; } Process dequeue(){ tail++; return Q[tail-1]; } int main(void){ int i,j; int count; int time=0; Pro...
/tmp/ccspBQPu.o: in function `enqueue': main.c:(.text+0x7): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/ccspBQPu.o main.c:(.text+0xa2): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/ccspBQPu.o main.c:(.text+0xab): re...
s102553836
p02264
C
#include<stdio.h> #include<string.h> int d; int q; typedef struct { char name[100]; int t; }Process; Process Q[100000000]; int n; int head=0, tail=0; void enqueue(Process x){ Q[head]=x; head++; } Process dequeue(){ tail++; return Q[tail-1]; } int main(void){ int i,j; int count; int time=0; Pro...
/tmp/ccyVrDdv.o: in function `enqueue': main.c:(.text+0x7): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/ccyVrDdv.o main.c:(.text+0xa2): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/ccyVrDdv.o main.c:(.text+0xab): re...
s796157714
p02264
C
#include<stdio.h> #include<string.h> //構造体 typedef struct { char name[100]; int t; }Process; //プロトタイプ宣言 void enqueue(Process); Process dequeue(void); //グローバル変数 Process Q[100000001]; int n,q; int ttime; int i,j; int main(void){ int count=0; Process stack[100001]; scanf("%d %d", &n, &q); //スケジュールの入力 ...
/tmp/ccoTzqYN.o: in function `main': main.c:(.text+0x16): relocation truncated to fit: R_X86_64_PC32 against symbol `q' defined in .bss section in /tmp/ccoTzqYN.o main.c:(.text+0x20): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccoTzqYN.o main.c:(.text+0x3d): relocation...
s023940654
p02264
C
} for(i=0;i<n+j;i++){ stack[count] = dequeue(); if(stack[count].t != -1) enqueue(stack[count++]); } return 0; } //終了したプロセスを表示する void enqueue(Process x){ printf("%s %d\n",x.name,x.t); } Process dequeue(void){ int flag=0; if(Q[i].t <= q){ ttime += Q[i].t; Q[i].t = ttime; ...
main.c:1:3: error: expected identifier or '(' before '}' token 1 | } | ^ main.c:3:3: error: expected identifier or '(' before 'for' 3 | for(i=0;i<n+j;i++){ | ^~~ main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 3 | for(i=0;i<n+j;i++){ | ...
s909197987
p02264
C
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 100000 #define QMAX 1000 //構造体 typedef struct { char name[10]; int t; }Process; //プロトタイプ宣言 void enqueue(Process); Process dequeue(void); //グローバル変数 Process Q[MAX]; int n,q; int ttime; int i; int top,last; int main(void){ Process s...
main.c: In function 'dequeue': main.c:74:6: error: 'head' undeclared (first use in this function) 74 | if(head + 1 == MAX) | ^~~~ main.c:74:6: note: each undeclared identifier is reported only once for each function it appears in
s977147048
p02264
C
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 100000 #define QMAX 1000 //構造体 typedef struct { char name[10]; int t; }Process; //プロトタイプ宣言 void enqueue(Process); Process dequeue(void); //グローバル変数 Process Q[MAX]; int n,q; int ttime; int i; int top,last; int main(void){ Process s...
main.c: In function 'dequeue': main.c:74:6: error: 'head' undeclared (first use in this function) 74 | if(head + 1 == MAX) | ^~~~ main.c:74:6: note: each undeclared identifier is reported only once for each function it appears in
s611515162
p02264
C
#include<iostream> #include<cstdlib> using namespace std; struct node{ int num; node* next; node* prev; }; int main(){ int order_num; char order[10]; int val; node* p = (node*)malloc(sizeof(node)); node* origin = p; cin >> order_num; int test = order_num; for(int i = 0; i < test; i++){ cin >> order; ...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s176250676
p02264
C
int main(void){ int n, q, count = 0; scanf("%d %d", &n, &q); int i = 0,j = 0,k = 0; for(k=0;k<n;k++) scanf("%s %d", l[k], &t[k]); while(j != n){ if (i==n) i = 0; if(t[i] == 0){ i++; continue; } else { if (t[i] - q > 0){ t[i] = t[i] - q; count += q; } ...
main.c: In function 'main': main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | scanf("%d %d", &n, &q); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(void){ main.c:3:3: warning: in...
s821626154
p02264
C
#include<stdio.h> char l[100001][11]; //,*m[100000]; int t[100001]; //,p[100001]; int main(void){ int n, q, count = 0; scanf("%d %d", &n, &q); int i = 0,j = 0,k = 0; for(k=0;k<n;k++) scanf("%s %d", l[k], &t[k]); while(j != n){ if (i==n) i = 0; if(t[i] == 0){ i++; continue;...
main.c: In function 'main': main.c:27:33: error: 'p' undeclared (first use in this function) 27 | printf("%s %d\n", l[i], p[j++]); | ^ main.c:27:33: note: each undeclared identifier is reported only once for each function it appears in
s547599267
p02264
C
#include <stdio.h> #include <string.h> #define MAX 100000 struct queue{ char name[11]; int time; }; queue Q[MAX]; int used[MAX]; int main(){ int n,q,i,empty,p = 0,pos = 0,sum = 0; queue ans[MAX]; scanf("%d %d" ,&n ,&q); for(i = 0 ; i < n ; i++){ scanf("%s %d" ,Q[i].name ,&Q[i].time); used[i] =...
main.c:11:1: error: unknown type name 'queue'; use 'struct' keyword to refer to the type 11 | queue Q[MAX]; | ^~~~~ | struct main.c: In function 'main': main.c:16:3: error: unknown type name 'queue'; use 'struct' keyword to refer to the type 16 | queue ans[MAX]; | ^~~~~ | struct ma...
s647456267
p02264
C
#include <stdio.h> #include<string.h> #define LEN 100000 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head = 1, tail = 0, n, empty = 0; void push(P x){ empty++; Q[++tail] = x; tail %= MAX; } P pop(){ P res; empty--; res = Q[head++]; head %= MAX; return r...
main.c: In function 'push': main.c:16:14: error: 'MAX' undeclared (first use in this function) 16 | tail %= MAX; | ^~~ main.c:16:14: note: each undeclared identifier is reported only once for each function it appears in main.c: In function 'pop': main.c:23:13: error: 'MAX' undeclared (first u...
s706785569
p02264
C
#include <stdio.h> #include<string.h> #define LEN 100000 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head = 1, tail = 0, n, empty = 0、; void push(P x){ empty++; Q[tail++] = x; tail %= LEN; } P pop(){ P res; empty--; res = Q[head]; if(head == n) head = 0; ...
main.c:11:37: error: stray '\343' in program 11 | int head = 1, tail = 0, n, empty = 0<U+3001>; | ^~~~~~~~
s953115567
p02264
C
#include <stdio.h> #include<string.h> #define LEN 100001 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head = 1, tail = 0, n, empty = 0; void push(P x){ Q[tail] = x; if(tail == n) tail = 0; else tail++; } P pop(){ P res; res = Q[head]; if(head == n) head =...
main.c: In function 'main': main.c:52:25: error: expected ';' before '{' token 52 | else (u.t <= ms) { | ^~ | ;
s235190660
p02264
C
#include <stdio.h> #include<string.h> #define LEN 100001 typedef struct pp{ char name[100]; int t; }P; void printqueue(void){ int i; for(i=head; i!=tail; i++){ if(i==length){ printf("%s %d ",Q[i].name,Q[i].tim); i=0; printf("\n"); } printf("%s %d ",Q[i].name,Q[i].tim);...
main.c: In function 'printqueue': main.c:13:9: error: 'head' undeclared (first use in this function) 13 | for(i=head; i!=tail; i++){ | ^~~~ main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in main.c:13:18: error: 'tail' undeclared (first use in this fun...
s440357135
p02264
C
#include <stdio.h> #include<string.h> #define LEN 100001 typedef struct pp{ char name[100]; int t; }P; void printqueue(void){ int i; for(i=head; i!=tail; i++){ if(i==n){ printf("%s %d ",Q[i].name,Q[i].tim); i=0; printf("\n"); } printf("%s %d ",Q[i].name,Q[i].tim); ...
main.c: In function 'printqueue': main.c:13:9: error: 'head' undeclared (first use in this function) 13 | for(i=head; i!=tail; i++){ | ^~~~ main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in main.c:13:18: error: 'tail' undeclared (first use in this fun...
s943932861
p02264
C
#include <stdio.h> #include<string.h> #define LEN 100001 typedef struct pp{ char name[100]; int t; }P; void printqueue(void); P Q[LEN+1]; int head, tail , n; void push(P x){ Q[tail] = x; if(tail == n) tail = 0; else tail++; } P pop(){ P res; res = Q[head]; if(head == n) ...
main.c: In function 'printqueue': main.c:70:37: error: 'P' {aka 'struct pp'} has no member named 'tim' 70 | printf("%s %d ",Q[i].name,Q[i].tim); | ^ main.c:74:35: error: 'P' {aka 'struct pp'} has no member named 'tim' 74 | printf("%s %d ",Q[i].name,Q[i].tim); ...
s125401008
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ tail++; Q[tail] = x; } P dequeue(){ head++; return Q[head-1] } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q); ...
main.c: In function 'dequeue': main.c:20:17: error: expected ';' before '}' token 20 | return Q[head-1] | ^ | ; 21 | } | ~
s087358365
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ tail++; Q[tail] = x; } P dequeue(){ head++; return Q[head-1] } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q); ...
main.c: In function 'dequeue': main.c:20:17: error: expected ';' before '}' token 20 | return Q[head-1] | ^ | ; 21 | } | ~
s476489252
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ tail++; Q[tail] = x; } P dequeue(){ head++; return Q[head-1] } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q); ...
main.c: In function 'dequeue': main.c:20:17: error: expected ';' before '}' token 20 | return Q[head-1] | ^ | ; 21 | } | ~
s878472843
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ tail++; Q[tail] = x; } P dequeue(){ head++; return Q[head-1] } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q); ...
main.c: In function 'dequeue': main.c:20:17: error: expected ';' before '}' token 20 | return Q[head-1] | ^ | ; 21 | } | ~
s498185006
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ tail++; Q[tail] = x; } P dequeue(){ head++; return Q[head-1] } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q); ...
main.c: In function 'dequeue': main.c:20:17: error: expected ';' before '}' token 20 | return Q[head-1] | ^ | ; 21 | } | ~
s496998828
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ tail++; Q[tail] = x; } P dequeue(){ head++; return Q[head-1] } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q); ...
main.c: In function 'dequeue': main.c:20:17: error: expected ';' before '}' token 20 | return Q[head-1] | ^ | ; 21 | } | ~
s355800658
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ tail++; Q[tail] = x; } P dequeue(){ head++; return Q[head-1] } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q); ...
main.c: In function 'dequeue': main.c:20:17: error: expected ';' before '}' token 20 | return Q[head-1] | ^ | ; 21 | } | ~
s336572835
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ } P dequeue(){ head++; return Q[head-1] } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q); for ( i = 1; i <= n; i++)...
main.c: In function 'dequeue': main.c:19:17: error: expected ';' before '}' token 19 | return Q[head-1] | ^ | ; 20 | } | ~
s825534741
p02264
C
#include<stdio.h> #define LEN 1000000 typedef struct{ char name[20]; int time; }que; que Que[LEN]; int head=0, tail=0; void enQue(que q){ Que[head]=q; head++; } que deQue(void){ tail++; return Que[tail-1]; } int size(void){ return head-tail; } int main(){ int N, q; que Q; int i, j, k; int ti...
main.c: In function 'main': main.c:46:7: error: 'times' undeclared (first use in this function); did you mean 'time'? 46 | times+=q; | ^~~~~ | time main.c:46:7: note: each undeclared identifier is reported only once for each function it appears in
s475452556
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp { char name[100]; int t; } P; P Q[LEN + 1]; int head, tail, n; void enqueue(P x) { if (tail > LEN) { tail = 0; } Q[tail++] = x; } P dequeue() {     if (head > LEN) { head = 0; } return Q[head++]; } int main() { int elaps = 0; in...
main.c: In function 'dequeue': main.c:21:1: error: stray '\343' in program 21 | <U+3000><U+3000><U+3000><U+3000>if (head > LEN) { | ^~~~~~~~ main.c:21:3: error: stray '\343' in program 21 | <U+3000><U+3000><U+3000><U+3000>if (head > LEN) { | ^~~~~~~~ main.c:21:5: error: stray '\343' in program...
s641580446
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; int head=0, tail, n; void enqueue(P x); void dequeue(); P Q[LEN+1]; int main(){ int elaps = 0, c=0; int i, q; scanf("%d %d", &n, &q); tail=n; for ( i = 0; i < n; i++){ scanf("%s", Q[i].name); ...
main.c: In function 'main': main.c:30:9: error: implicit declaration of function 'enaqueue'; did you mean 'enqueue'? [-Wimplicit-function-declaration] 30 | enaqueue(Q[head]); | ^~~~~~~~ | enqueue main.c:38:3: error: 'haed' undeclared (first use in this function); did you mean 'hea...
s837609066
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail]=x; tail=tail+1; tail=tail%(LEN+1); } P dequeue(){ int l; l=head; head=head+1; head=head%(LEN+1); } int main(){ int elaps = 0, c=0; ...
main.c: In function 'main': main.c:43:3: error: implicit declaration of function 'whil' [-Wimplicit-function-declaration] 43 | whil(0){ | ^~~~ main.c:43:10: error: expected ';' before '{' token 43 | whil(0){ | ^ | ;
s181592842
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail]=x; tail=tail+1; tail=tail%(LEN+1); } P dequeue(){ int l; l=head; head=head+1; head=head%(LEN+1); return Q[l]; } int main(){ int ela...
main.c: In function 'main': main.c:44:3: error: implicit declaration of function 'whil' [-Wimplicit-function-declaration] 44 | whil(0){ | ^~~~ main.c:44:10: error: expected ';' before '{' token 44 | whil(0){ | ^ | ;
s664025952
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail] = x; tail++; } P dequeue(){ P s; head++; s=Q[head]; return s; } int main(){ int elaps = 0, c; int i, q; P u; scanf("%d %d", &n, &q)...
main.c: In function 'main': main.c:53:3: error: expected declaration or statement at end of input 53 | return 0; | ^~~~~~
s552528937
p02264
C
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { char name[10]; int speed; long time; } Process; int main() { Process S[10000],Fin[10000]; double i; int z,num=0,qua=0; double s_top =0,s_tail=0; double fnum=0,time_spend=0; scanf("%d %d",&num,&qua); //printf("%d %d\n",num,qua); for(i=0;i<num...
main.c: In function 'main': main.c:22:18: error: array subscript is not an integer 22 | z=scanf("%s %d",S[i].name,&S[i].speed); | ^ main.c:22:29: error: array subscript is not an integer 22 | z=scanf("%s %d",S[i].name,&S[i].speed); | ^ main.c:23:2: error: a...
s030187351
p02264
C
#Include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { char name[10]; int speed; int time; } Process; int main() { Process S[1000000]; int i; int z,num=0,qua=0; int s_top =0,s_tail=0; int fnum=0,time_spend=0; scanf("%d %d",&num,&qua); //printf("%d %d\n",num,qua); for(i=0;...
main.c:1:2: error: invalid preprocessing directive #Include; did you mean #include? 1 | #Include <stdio.h> | ^~~~~~~ | include main.c: In function 'main': main.c:18:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 18 | scanf("%d %d",&num,&qua); | ^~~~~ ...
s171656712
p02264
C
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 100001 #define QMAX 1000 //構造体 typedef struct { char name[10]; int t; }Process; //グローバル変数 Process Q[MAX]; //プロトタイプ宣言 void enqueue(Process); Process dequeue(void); int main(void){ Process u; int n,q; int ttime; int i,j; scanf(...
main.c: In function 'enqueue': main.c:53:5: error: 'tail' undeclared (first use in this function) 53 | Q[tail] = x; | ^~~~ main.c:53:5: note: each undeclared identifier is reported only once for each function it appears in main.c: In function 'dequeue': main.c:65:17: error: 'head' undeclared (first use i...
s054402417
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail]=x; tail++; if(tail==LEN){ tail=1; } } P dequeue(){ if(head==LEN){ head=1; } head++; } int main(){ int elaps = 0;, c; int i, q; //P u;...
main.c: In function 'main': main.c:30:17: error: expected expression before ',' token 30 | int elaps = 0;, c; | ^ main.c:30:19: error: 'c' undeclared (first use in this function) 30 | int elaps = 0;, c; | ^ main.c:30:19: note: each undeclared identifier is reporte...
s589827497
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail]=x; tail++; if(tail==LEN){ tail=1; } } P dequeue(){ if(head==LEN){ head=1; } head++; } int main(){ int elaps = 0, c; int i, q; //P u; ...
main.c: In function 'main': main.c:35:1: error: stray '\343' in program 35 | <U+3000>c=1; | ^~~~~~~~
s963523713
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail]=x; tail++; if(tail==LEN){ tail=1; } } P dequeue(){ if(head==LEN){ head=1; } head++; } int main(){ int elaps = 0, c; int i, q; //P u; ...
main.c: In function 'main': main.c:35:1: error: stray '\343' in program 35 | <U+3000>c=1; | ^~~~~~~~
s028799672
p02264
C
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail]=x; tail++; if(tail==LEN){ tail=1; } } P dequeue(){ if(head==LEN){ head=1; } head++; } int main(){ int elaps = 0, c; int i, q; //P u; ...
main.c: In function 'main': main.c:35:1: error: stray '\343' in program 35 | <U+3000>c=1; | ^~~~~~~~