submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s778250936
p00586
Java
class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a, b; while(sc.hasNext()){ a = sc.nextInt(); b = sc.nextInt(); System.out.println(a+b); } } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s187543279
p00586
Java
import java.util.*; public class AOJ1000 { public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNext()){ int a = in.nextInt(); int b = in.nextInt(); System.out.println(a+b); } } }
Main.java:2: error: class AOJ1000 is public, should be declared in a file named AOJ1000.java public class AOJ1000 { ^ 1 error
s366638277
p00586
Java
#include <stdio.h> int main(int argc, const char * argv[]) { int a, b; while (scanf("%d %d\n", &a, &b) != EOF) { printf("%d\n", a + b); } return 0; }
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:8: error: class, interface, enum, or record expected while (scanf("%d %d\n", &a, &b) != EOF) { ^ Main.java:10: error: class, interface, enum, or record expected } ^ Main.java:13: error: class, interface, enum, or record expected } ^ 5 errors
s571582757
p00586
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Vector; public class Main { public static void main(String args[] ) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ String num=br.readLine(); if(num==null){ break; } int a=num.split(" ")[0],b=num.split(" ")[1]; System.out.println(a+b); } } }
Main.java:13: error: incompatible types: String cannot be converted to int int a=num.split(" ")[0],b=num.split(" ")[1]; ^ Main.java:13: error: incompatible types: String cannot be converted to int int a=num.split(" ")[0],b=num.split(" ")[1]; ^ 2 errors
s088932170
p00586
C
#include <stdio.h> int main(void){ int a, b; while(scanf("%d %d",&a ,&b){ printf("%d\n", a+b); } return 0; }
main.c: In function 'main': main.c:4:32: error: expected ')' before '{' token 4 | while(scanf("%d %d",&a ,&b){ | ~ ^ | ) main.c:9:1: error: expected expression before '}' token 9 | } | ^
s784955482
p00586
C
#include <stdio.h> int main(void){ int a, b; while(scanf("%d %d", &a, &b){ printf("%d\n", a+b); } return 0; }
main.c: In function 'main': main.c:4:33: error: expected ')' before '{' token 4 | while(scanf("%d %d", &a, &b){ | ~ ^ | ) main.c:9:1: error: expected expression before '}' token 9 | } | ^
s478692385
p00586
C
#include <stdio.h> int main(void){ while(scanf("%d %d", &a, &b)){ int a, b; printf("%d\n", a+b); } return 0; }
main.c: In function 'main': main.c:3:27: error: 'a' undeclared (first use in this function) 3 | while(scanf("%d %d", &a, &b)){ | ^ main.c:3:27: note: each undeclared identifier is reported only once for each function it appears in main.c:3:31: error: 'b' undeclared (first use in this function) 3 | while(scanf("%d %d", &a, &b)){ | ^
s932535216
p00586
C
#include<stdio.h> int main(){ int a, b; while(scanf("%d %d",&a,&b)!=EOF){ printf("%d\n",a???b); } return 0; }
main.c: In function 'main': main.c:5:25: error: expected expression before '?' token 5 | printf("%d\n",a???b); | ^
s555812235
p00586
C
#include<stdio.h> int main(){ int a, b; while(scanf("%d %d". &a, &b)!= EOF){ printf("%d\n", a ??? b); } return 0; }
main.c: In function 'main': main.c:8:26: error: expected identifier before '&' token 8 | while(scanf("%d %d". &a, &b)!= EOF){ | ^ main.c:9:27: error: expected expression before '?' token 9 | printf("%d\n", a ??? b); | ^
s162206048
p00586
C
#include<stdio.h> int main(){ int a,b; while (scanf_s("%d%d", &a, &b)!=EOF){ printf("%d\n", a + b); } return(0);
main.c: In function 'main': main.c:5:16: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 5 | while (scanf_s("%d%d", &a, &b)!=EOF){ | ^~~~~~~ | scanf main.c:8:9: error: expected declaration or statement at end of input 8 | return(0); | ^~~~~~
s435043222
p00586
C
#include<stdio.h> int main(){ int a,b; while (scanf_s("%d%d", &a, &b)!=EOF){ printf("%d\n", a + b); } return 0;
main.c: In function 'main': main.c:5:16: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 5 | while (scanf_s("%d%d", &a, &b)!=EOF){ | ^~~~~~~ | scanf main.c:8:9: error: expected declaration or statement at end of input 8 | return 0; | ^~~~~~
s868881068
p00586
C
main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));} main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));} | ^~~~~ main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:37: error: implicit declaration of function 'print' [-Wimplicit-function-declaration] 1 | main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));} | ^~~~~
s353782234
p00586
C
#include<stdio.h> int main() { int n, a, n; while(scanf("%d%d", &a, &b)!=EOF) { printf("%d\n", a+b); } return 0; }
main.c: In function 'main': main.c:4:11: error: redeclaration of 'n' with no linkage 4 | int n, a, n; | ^ main.c:4:5: note: previous declaration of 'n' with type 'int' 4 | int n, a, n; | ^ main.c:5:26: error: 'b' undeclared (first use in this function) 5 | while(scanf("%d%d", &a, &b)!=EOF) | ^ main.c:5:26: note: each undeclared identifier is reported only once for each function it appears in
s734927457
p00586
C
#includes <stdio.h> int main() { int a=b=0; while( scanf("%d %d",&a,&b) =! EOF) { printf("%d",a+b); } return 0; }
main.c:1:2: error: invalid preprocessing directive #includes; did you mean #include? 1 | #includes <stdio.h> | ^~~~~~~~ | include main.c: In function 'main': main.c:4:8: error: 'b' undeclared (first use in this function) 4 | int a=b=0; | ^ main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in main.c:5:8: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 5 | while( scanf("%d %d",&a,&b) =! EOF) | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | #includes <stdio.h> main.c:5:8: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 5 | while( scanf("%d %d",&a,&b) =! EOF) | ^~~~~ main.c:5:8: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:5:32: error: 'EOF' undeclared (first use in this function) 5 | while( scanf("%d %d",&a,&b) =! EOF) | ^~~ main.c:5:32: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' main.c:7:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 7 | printf("%d",a+b); | ^~~~~~ main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:7:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
s009465488
p00586
C
#include<stdio.h> int main(){ int a, b; while( scanf("%d %d", &a, &b) != EOF ){ printf("%d\n", a + b); } return 0;
main.c: In function 'main': main.c:8:5: error: expected declaration or statement at end of input 8 | return 0; | ^~~~~~
s743203138
p00586
C
#include<cstdio> int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF) printf("%d\n",a+b); return 0; }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s187092866
p00586
C
#include<stdio.h> int main(){ int a, b; while( scanf("%d %d", &a, &b) != EOF ){ printf("%d\n", a + b + 2); } return 0;
main.c: In function 'main': main.c:8:5: error: expected declaration or statement at end of input 8 | return 0; | ^~~~~~
s386943337
p00586
C
#include<stdio.h> int main(){ int a, b; while( scanf("%d %d", &a, &b) != EOF ){ printf("%d\n", a+b); } return 0;
main.c: In function 'main': main.c:8:5: error: expected declaration or statement at end of input 8 | return 0; | ^~~~~~
s746097590
p00586
C
#include <cstdio> int main(){ int a,b; while(scanf("%d %d",&a,&b)!=EOF) printf("%d",a+b); return 0; }
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s203295772
p00586
C
#include<cstdio> int main() { int i, j; while(scanf("%d%d",&i,&j)==2) printf("%d\n",i+j); }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s090333124
p00586
C
#include <iostream> using namespace std; int main() { int a,b; while(cin >> a >> b) cout << a+b << endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s752385998
p00586
C
#include <stdio.h> int main() { int A,B,sum; printf("Aテ」ツ?ィBテ」ツ?ォテァツゥツコテァツ卍ステ」ツつ津」ツ?づ」ツ?妥」ツ?ヲテヲツ閉エテヲツ閉ーテ」ツつ津・ツ?・テ・ツ環崚」ツ?療」ツ?ヲテ」ツ?湘」ツ??」ツ?陛」ツ??」ツ??); scanf("%d%d",&A,&B); if(A >= -1000 && A <= 1000 && B >= -1000 && B <=1000){ sum=A+B; printf("%d",sum); } return 0; }
main.c: In function 'main': main.c:6:10: warning: missing terminating " character 6 | printf("Aテ」ツ?ィBテ」ツ?ォテァツゥツコテァツ卍ステ」ツつ津」ツ?づ」ツ?妥」ツ?ヲテヲツ閉エテヲツ閉ーテ」ツつ津・ツ?・テ・ツ環崚」ツ?療」ツ?ヲテ」ツ?湘」ツ??」ツ?陛」ツ??」ツ??); | ^ main.c:6:177: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] 6 | printf("Aテ」ツ?ィBテ」ツ?ォテァツゥツコテァツ卍ステ」ツつ津」ツ?づ」ツ?妥」ツ?ヲテヲツ閉エテヲツ閉ーテ」ツつ津・ツ?・テ・ツ環崚」ツ?療」ツ?ヲテ」ツ?湘」ツ??」ツ?陛」ツ??」ツ??); main.c:6:10: error: missing terminating " character 6 | printf("Aテ」ツ?ィBテ」ツ?ォテァツゥツコテァツ卍ステ」ツつ津」ツ?づ」ツ?妥」ツ?ヲテヲツ閉エテヲツ閉ーテ」ツつ津・ツ?・テ・ツ環崚」ツ?療」ツ?ヲテ」ツ?湘」ツ??」ツ?陛」ツ??」ツ??); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:7:22: error: expected ')' before ';' token 7 | scanf("%d%d",&A,&B); | ^ | ) main.c:6:9: note: to match this '(' 6 | printf("Aテ」ツ?ィBテ」ツ?ォテァツゥツコテァツ卍ステ」ツつ津」ツ?づ」ツ?妥」ツ?ヲテヲツ閉エテヲツ閉ーテ」ツつ津・ツ?・テ・ツ環崚」ツ?療」ツ?ヲテ」ツ?湘」ツ??」ツ?陛」ツ??」ツ??); | ^ main.c:7:3: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion] 7 | scanf("%d%d",&A,&B); | ^~~~~~~~~~~~~~~~~~~ | | | int In file included from main.c:1: /usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int' 363 | extern int printf (const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:16:12: error: expected ';' before '}' token 16 | return 0; | ^ | ; 17 | } | ~
s966992445
p00586
C
int main="?????????";
main.c:1:10: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion] 1 | int main="?????????"; | ^~~~~~~~~~~ main.c:1:10: error: initializer element is not computable at load time
s234345257
p00586
C
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 11111111
main.c:1:1: warning: integer constant is too large for its type 1 | 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
s881936694
p00586
C
x = input() while x: a, b = x.split(" ") print(int(a) + int(b))
main.c:1:1: warning: data definition has no type or storage class 1 | x = input() | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int] main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration] 1 | x = input() | ^~~~~ main.c:1:5: error: initializer element is not constant main.c:2:1: error: expected ',' or ';' before 'while' 2 | while x: | ^~~~~
s840564685
p00586
C
#include <iostream> using namespace std; int main() { int a,b; while(cin >> a >> b){ cout << a+b << endl; } return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s941669475
p00586
C
#include <iostream> using namespace std; int main() { int a,b; while(cin >> a >> b){ cout << a+b << endl; } return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s338823134
p00586
C
#include <iostream> #include <algorithm> using namespace std; int main(){ int a, b; while (cin >> a >> b){ cout << a+b << endl; } return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s658667180
p00586
C
#include <stdio.h> main(){ int a,b,c; while(scanf("%d%d",a,b) !EOF){ c=a+b; printf("%d",c); } return 0; }
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function 'main': main.c:4:26: error: expected ')' before '!' token 4 | while(scanf("%d%d",a,b) !EOF){ | ~ ^~ | )
s687240947
p00586
C
#include <stdio.h> main(){ int a,b,c; while(scanf("%d%d",&a,&b) !EOF){ c=a+b; printf("%d",c); } return 0; }
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function 'main': main.c:4:28: error: expected ')' before '!' token 4 | while(scanf("%d%d",&a,&b) !EOF){ | ~ ^~ | )
s757775476
p00586
C
a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))}
main.c:1:1: warning: data definition has no type or storage class 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^~~~ main.c: In function 'main': main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^~~~~ main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:37: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^~~~~~ main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:37: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:56: error: expected expression before '}' token 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^
s262744925
p00586
C
a;main(b){ while(scanf("%d",&a)!=EOF){ scanf("%d",&b); printf("%d\n",a+b); } exit(0); }
main.c:1:1: warning: data definition has no type or storage class 1 | a;main(b){ | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | a;main(b){ | ^~~~ main.c: In function 'main': main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:2:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 2 | while(scanf("%d",&a)!=EOF){ | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a;main(b){ main.c:2:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 2 | while(scanf("%d",&a)!=EOF){ | ^~~~~ main.c:2:7: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:2:23: error: 'EOF' undeclared (first use in this function) 2 | while(scanf("%d",&a)!=EOF){ | ^~~ main.c:2:23: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' main.c:2:23: note: each undeclared identifier is reported only once for each function it appears in main.c:4:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 4 | printf("%d\n",a+b); | ^~~~~~ main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:4:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:6:1: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 6 | exit(0); | ^~~~ main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit' +++ |+#include <stdlib.h> 1 | a;main(b){ main.c:6:1: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 6 | exit(0); | ^~~~ main.c:6:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
s009139407
p00586
C
a;main(b){ while(scanf("%d",&a)!=EOF){ scanf("%d",&b); printf("%d\n",a+b); } return 0; }
main.c:1:1: warning: data definition has no type or storage class 1 | a;main(b){ | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | a;main(b){ | ^~~~ main.c: In function 'main': main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:2:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 2 | while(scanf("%d",&a)!=EOF){ | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a;main(b){ main.c:2:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 2 | while(scanf("%d",&a)!=EOF){ | ^~~~~ main.c:2:7: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:2:23: error: 'EOF' undeclared (first use in this function) 2 | while(scanf("%d",&a)!=EOF){ | ^~~ main.c:2:23: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' main.c:2:23: note: each undeclared identifier is reported only once for each function it appears in main.c:4:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 4 | printf("%d\n",a+b); | ^~~~~~ main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:4:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'printf'
s207180667
p00586
C
main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int] main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;} main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;} | ^~~~~ main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:41: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;} | ^~~~~~ main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:55: error: 'a' undeclared (first use in this function) 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;} | ^ main.c:1:55: note: each undeclared identifier is reported only once for each function it appears in main.c:1:57: error: 'b' undeclared (first use in this function) 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;} | ^
s391128972
p00586
C
main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int] main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0} main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0} | ^~~~~ main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:41: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0} | ^~~~~~ main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:68: error: expected ';' before '}' token 1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0} | ^ | ;
s979010145
p00586
C
main(c,d)while(scanf("%d %d",&c,&d)+1)printf("%d\n",c+d);
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c,d)while(scanf("%d %d",&c,&d)+1)printf("%d\n",c+d); | ^~~~ main.c: In function 'main': main.c:1:10: error: expected declaration specifiers before 'while' 1 | main(c,d)while(scanf("%d %d",&c,&d)+1)printf("%d\n",c+d); | ^~~~~ main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] 1 | main(c,d)while(scanf("%d %d",&c,&d)+1)printf("%d\n",c+d); | ^~~~ main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int] main.c:2: error: expected '{' at end of input
s107972978
p00586
C
main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d);
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d); | ^~~~ main.c: In function 'main': main.c:1:10: error: expected declaration specifiers before 'for' 1 | main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d); | ^~~ main.c:1:15: error: expected declaration specifiers before 'scanf' 1 | main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d); | ^~~~~ main.c:1:36: error: expected declaration specifiers before ')' token 1 | main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d); | ^ main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] 1 | main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d); | ^~~~ main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int] main.c:2: error: expected '{' at end of input
s187238512
p00586
C
main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));} | ^~~~ main.c: In function 'main': main.c:1:21: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));} main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));} | ^~~~~ main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:41: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));} | ^~~~~~ main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf'
s757616480
p00586
C
main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);} | ^~~~ main.c: In function 'main': main.c:1:21: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);} main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);} | ^~~~~ main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:42: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);} | ^~~~~~ main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:42: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'printf'
s179845025
p00586
C
include <stdio.h> int main(void){ int a,b; while(scanf("%d %d",&a,&b)!=EOF){ printf("%d\n",a+b); } return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s741106891
p00586
C
#include <stdio.h> int main(void) { int a,b,c; scanf("%d %d",&a,&b); if(scanf("EOF")) break; c=a+b; printf("%d",c); return 0; }
main.c: In function 'main': main.c:7:20: error: break statement not within loop or switch 7 | if(scanf("EOF")) break; | ^~~~~
s000056731
p00586
C
main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);} main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);} | ^~~~~ main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:37: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);} | ^~~~~~ main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:37: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:55: error: expected ')' before ';' token 1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);} | ~ ^ | ) main.c:1:64: error: expected expression before '}' token 1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);} | ^
s938009757
p00586
C
#include<stdio.h> int main(void){
main.c: In function 'main': main.c:3:1: error: expected declaration or statement at end of input 3 | int main(void){ | ^~~
s157945773
p00586
C
include<stdio.h> int main(void){ int a,b; while(scanf("%d%d",&a,&b)!=EOF){ printf("%d\n", a+b); } return(0); }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s691877077
p00586
C
#include <stdio.h> main(){ int a,b; while(scanf("%d %d",&a,&b != EOF ){ printf("%d\n",a+b); } return 0; }
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function 'main': main.c:4:28: warning: comparison between pointer and integer 4 | while(scanf("%d %d",&a,&b != EOF ){ | ^~ main.c:4:36: error: expected ')' before '{' token 4 | while(scanf("%d %d",&a,&b != EOF ){ | ~ ^ | ) main.c:8:1: error: expected expression before '}' token 8 | } | ^
s250623780
p00586
C
#include <stdio.h> #include <stdlib.h> int main(void){ int *p, *q; p = (int*)malloc(sizeof(int)); q = (int*)malloc(sizeof(int)); while( scanf("%d%d",p,q) != EOF){ printf("%d\n",*p + *q); } free(p); free(q); return 0;
main.c: In function 'main': main.c:13:9: error: expected declaration or statement at end of input 13 | return 0; | ^~~~~~
s100103055
p00586
C
int main(){ int a, b; while( scanf("%d %d", &a, &b) != EOF ){ printf("%d\n", a + b); } }
main.c: In function 'main': main.c:3:12: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(){ main.c:3:12: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~~~ main.c:3:12: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:3:38: error: 'EOF' undeclared (first use in this function) 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~ main.c:3:38: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' main.c:3:38: note: each undeclared identifier is reported only once for each function it appears in main.c:4:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 4 | printf("%d\n", a + b); | ^~~~~~ main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:4:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
s753850950
p00586
C
long long a,b; while(scanf("%lld%lld",&a,&b)==2) { if(a+b>=(long long)INT_MAX || a+b<(long long)INT_MIN)return 1; printf("%lld\n",a+b); }
main.c:3:9: error: expected identifier or '(' before 'while' 3 | while(scanf("%lld%lld",&a,&b)==2) { | ^~~~~
s948687802
p00586
C
#include <stdio.h> main(void){ long long a, b; while (~scanf("%lld%lld", &a, &b)) printf("%lld\n",a+b); return 0;
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main(void){ | ^~~~ main.c: In function 'main': main.c:5:9: error: expected declaration or statement at end of input 5 | return 0; | ^~~~~~
s683443663
p00586
C
main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:18: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))} main.c:1:18: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))} | ^~~~~ main.c:1:18: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:38: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))} | ^~~~~~ main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:57: error: expected expression before '}' token 1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))} | ^
s852590605
p00586
C
import java.io.*; import java.util.*; import java.math.*; public class Main { public static void main(String[] args) throws java.io.IOException{ Scanner scan = new Scanner(System.in); while (scan.hasNext()){ int sum = scan.nextInt()+scan.nextInt(); System.out.println(sum); } } }
main.c:1:1: error: unknown type name 'import' 1 | import java.io.*; | ^~~~~~ main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 1 | import java.io.*; | ^ main.c:2:1: error: unknown type name 'import' 2 | import java.util.*; | ^~~~~~ main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 2 | import java.util.*; | ^ main.c:3:1: error: unknown type name 'import' 3 | import java.math.*; | ^~~~~~ main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 3 | import java.math.*; | ^ main.c:4:1: error: unknown type name 'public' 4 | public class Main { | ^~~~~~ main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main' 4 | public class Main { | ^~~~
s233856991
p00586
C
a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}}
main.c:1:1: warning: data definition has no type or storage class 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}} | ^~~~ main.c: In function 'main': main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}} main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}} | ^~~~~ main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:35: error: 'd' undeclared (first use in this function) 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}} | ^ main.c:1:35: note: each undeclared identifier is reported only once for each function it appears in main.c:1:38: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}} | ^~~~~~ main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf' main.c: At top level: main.c:1:62: error: expected identifier or '(' before '}' token 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}} | ^
s558577898
p00586
C
a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));}
main.c:1:1: warning: data definition has no type or storage class 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));} | ^~~~ main.c: In function 'main': main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));} main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));} | ^~~~~ main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:35: error: 'd' undeclared (first use in this function) 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));} | ^ main.c:1:35: note: each undeclared identifier is reported only once for each function it appears in main.c:1:38: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));} | ^~~~~~ main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
s893615553
p00586
C
a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))}
main.c:1:1: warning: data definition has no type or storage class 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^~~~ main.c: In function 'main': main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^~~~~ main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:37: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^~~~~~ main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:37: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:56: error: expected expression before '}' token 1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))} | ^
s702838701
p00586
C
#include<stdio.h> int main(void) { int a,b; while(scanf("%d %d",&a,&b) !=0) { printf("%d\n",a + b); scanf("%d",&n); } return 0; }
main.c: In function 'main': main.c:8:21: error: 'n' undeclared (first use in this function) 8 | scanf("%d",&n); | ^ main.c:8:21: note: each undeclared identifier is reported only once for each function it appears in
s250146773
p00586
C
#include <stdio.h> int main(){ int a,b; while(scanf("%d%d",&a,&b) != EOF){ printf("%d\n",a+b) } return 0; }
main.c: In function 'main': main.c:5:26: error: expected ';' before '}' token 5 | printf("%d\n",a+b) | ^ | ; 6 | } | ~
s850622056
p00586
C
int main(){ int a, b; while( scanf("%d %d", &a, &b) != EOF ){ printf("%d\n", a + b); } return 0; }
main.c: In function 'main': main.c:3:12: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(){ main.c:3:12: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~~~ main.c:3:12: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:3:38: error: 'EOF' undeclared (first use in this function) 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~ main.c:3:38: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' main.c:3:38: note: each undeclared identifier is reported only once for each function it appears in main.c:4:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 4 | printf("%d\n", a + b); | ^~~~~~ main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:4:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
s997016902
p00586
C
int main(){ int a, b; while( scanf("%d %d", &a, &b) != EOF ){ printf("%d\n", a + b); } return 0; }
main.c: In function 'main': main.c:3:12: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(){ main.c:3:12: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~~~ main.c:3:12: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:3:38: error: 'EOF' undeclared (first use in this function) 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~ main.c:3:38: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' main.c:3:38: note: each undeclared identifier is reported only once for each function it appears in main.c:4:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 4 | printf("%d\n", a + b); | ^~~~~~ main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:4:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
s930380797
p00586
C
int main(){ int a, b; while( scanf("%d %d", &a, &b) != EOF ){ printf("%d\n", a + b); } return 0; }
main.c: In function 'main': main.c:3:12: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(){ main.c:3:12: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~~~ main.c:3:12: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:3:38: error: 'EOF' undeclared (first use in this function) 3 | while( scanf("%d %d", &a, &b) != EOF ){ | ^~~ main.c:3:38: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' main.c:3:38: note: each undeclared identifier is reported only once for each function it appears in main.c:4:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 4 | printf("%d\n", a + b); | ^~~~~~ main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:4:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
s149058761
p00586
C
#inlucd <stdio.h> int main() { int a, b; while( scanf("%d %d", &a, &b) != EOF ) printf("%d\n", a+b ); return 0; }
main.c:1:2: error: invalid preprocessing directive #inlucd 1 | #inlucd <stdio.h> | ^~~~~~ main.c: In function 'main': main.c:6:12: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 6 | while( scanf("%d %d", &a, &b) != EOF ) | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | #inlucd <stdio.h> main.c:6:12: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 6 | while( scanf("%d %d", &a, &b) != EOF ) | ^~~~~ main.c:6:12: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:6:38: error: 'EOF' undeclared (first use in this function) 6 | while( scanf("%d %d", &a, &b) != EOF ) | ^~~ main.c:6:38: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' main.c:6:38: note: each undeclared identifier is reported only once for each function it appears in main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 7 | printf("%d\n", a+b ); | ^~~~~~ main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
s429844946
p00586
C
int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;}
main.c: In function 'main': main.c:1:26: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;} main.c:1:26: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;} | ^~~~~ main.c:1:26: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:47: error: 'EOF' undeclared (first use in this function) 1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;} | ^~~ main.c:1:47: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' main.c:1:47: note: each undeclared identifier is reported only once for each function it appears in main.c:1:52: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;} | ^~~~~~ main.c:1:52: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:52: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:52: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:65: error: expected ')' before 'a' 1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;} | ~ ^ | )
s835924266
p00586
C
#include<stdio.h> int main() { int a,b; while(scanf("%d %d",&a,&b!=EOF){ printf("%d\n",(a+b)); } return 0; }
main.c: In function 'main': main.c:5:27: warning: comparison between pointer and integer 5 | while(scanf("%d %d",&a,&b!=EOF){ | ^~ main.c:5:33: error: expected ')' before '{' token 5 | while(scanf("%d %d",&a,&b!=EOF){ | ~ ^ | ) main.c:9:2: error: expected expression before '}' token 9 | } | ^
s230707381
p00586
C
#include <stdio.h> int main() { 椀nt a, b; while(scanf("%d %d", &a, &b) != EOF) { printf("%dn", a + b); 紀 return 0; }
main.c: In function 'main': main.c:4:1: error: unknown type name '\U00006900nt' 4 | 椀nt a, b; | ^~~~ main.c:7:1: error: '\U00007d00' undeclared (first use in this function) 7 | 紀 | ^~ main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in main.c:7:3: error: expected ';' before 'return' 7 | 紀 | ^ | ; 8 | return 0; | ~~~~~~ main.c:9:1: error: expected declaration or statement at end of input 9 | } | ^
s514542801
p00586
C
console.log('Hello World');
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 1 | console.log('Hello World'); | ^ main.c:1:13: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes 1 | console.log('Hello World'); | ^~~~~~~~~~~~~
s131917654
p00586
C
A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));}
main.c:1:1: warning: data definition has no type or storage class 1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'A' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));} | ^~~~ main.c: In function 'main': main.c:1:3: error: type of 'B' defaults to 'int' [-Wimplicit-int] main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));} main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));} | ^~~~~ main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:32: error: 'EOF' undeclared (first use in this function) 1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));} | ^~~ main.c:1:32: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' main.c:1:32: note: each undeclared identifier is reported only once for each function it appears in main.c:1:42: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));} | ^~~~~~ main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:42: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'printf'
s749646662
p00586
C
main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;} main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;} | ^~~~~ main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:35: error: expected ';' before string constant 1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;} | ^~~~~~~~~~~~~~~ | ; main.c:1:52: error: stray '\' in program 1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;} | ^ main.c:1:54: warning: missing terminating " character 1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;} | ^ main.c:1:54: error: missing terminating " character 1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;} | ^~~~~~~~~~~~~~~~~ main.c:1:1: error: expected declaration or statement at end of input 1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;} | ^~~~
s351717516
p00586
C
#include<stdio.h> int main() { int a,b; while(scanf("%d %d",&a,&b)!=EOF){ printf("%d\n",a+b); }
main.c: In function 'main': main.c:7:1: error: expected declaration or statement at end of input 7 | } | ^
s541668105
p00586
C
include <stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d\n",a+b); return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s997672142
p00586
C
#include <iostream> using namespace std; int main() { cout<<"Hello world!"<<endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s719921716
p00586
C
#include <iostream> using namespace std; int main() { cout<<"Hello world!"<<endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s392363345
p00586
C
#include <iostream> using namespace std; int main() { cout<<"Hello world!"<<endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s872757987
p00586
C
#include <iostream> using namespace std; int main() { cout<<"Hello world!"<<endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s622327350
p00586
C
#include <iostream> using namespace std; int main() { cout<<"Hello world!"<<endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s107362719
p00586
C
#include <iostream> using namespace std; int main() { cout<<"Hello world!"<<endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s670381783
p00586
C
#include <iostream> using namespace std; int main() { cout<<"Hello world!"<<endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s541193031
p00586
C
#include <iostream> using namespace std; int main() { cout<<"Hello world!"<<endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s351550048
p00586
C
#include <iostream> using namespace std; int main() { cout<<"Hello world!"<<endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s629173150
p00586
C
#include <stdio.h> int main(void){ int a,b; while(scanf("%d %d",&a,&b) != EOF) printf("%d\n",a+b);
main.c: In function 'main': main.c:6:5: error: expected declaration or statement at end of input 6 | printf("%d\n",a+b); | ^~~~~~
s405728750
p00586
C
#include <stdio.h> int main() { while(scanf("%d,%d",&a,&b)!=EOF) { Printf("%d\n",a+b); } return 0; }
main.c: In function 'main': main.c:4:26: error: 'a' undeclared (first use in this function) 4 | while(scanf("%d,%d",&a,&b)!=EOF) | ^ main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in main.c:4:29: error: 'b' undeclared (first use in this function) 4 | while(scanf("%d,%d",&a,&b)!=EOF) | ^ main.c:6:7: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration] 6 | Printf("%d\n",a+b); | ^~~~~~ | printf
s652667381
p00586
C++
import java.util.*; public class Main { Scanner sc = new Scanner(System.in); void doIt() { while(sc.hasNext()) { System.out.println(sc.nextInt() + sc.nextInt()); } } public static void main(String[] args) { new Main().doIt(); } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main { | ^~~~~~
s712944929
p00586
C++
#incude<iostream> using namespace std; int main() { int a,b; cin>>a>>b; cout<<a+b<<endl; return 0; }
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include? 1 | #incude<iostream> | ^~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin>>a>>b; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #incude<iostream> a.cc:7:3: error: 'cout' was not declared in this scope 7 | cout<<a+b<<endl; | ^~~~ a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:7:14: error: 'endl' was not declared in this scope 7 | cout<<a+b<<endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | #incude<iostream>
s891496125
p00586
C++
#include <iostream> using namespace std; int main(){ int a,b,c while ( 1 ) { cin >> a >>b ; c = a+b; cout << c << endl; if ( cin.eof() ) { break; } } }
a.cc: In function 'int main()': a.cc:5:5: error: expected initializer before 'while' 5 | while ( 1 ) { | ^~~~~
s833863856
p00586
C++
#include<stdio.h> int main(){ int a, b; while( scanf_s("%d %d", &a, &b) != EOF ){ printf("%d\n", a + b); } return 0; }
a.cc: In function 'int main()': a.cc:5:12: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 5 | while( scanf_s("%d %d", &a, &b) != EOF ){ | ^~~~~~~ | scanf
s919341621
p00586
C++
#include <iostream> #include <algorithm> using namespace std; int main(){ int a,b; while(cin>>a>>b){ cout<<a+b<<endl; }
a.cc: In function 'int main()': a.cc:11:2: error: expected '}' at end of input 11 | } | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
s392874900
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s424261180
p00586
C++
hiopihbhioijhvhjij
a.cc:1:1: error: 'hiopihbhioijhvhjij' does not name a type 1 | hiopihbhioijhvhjij | ^~~~~~~~~~~~~~~~~~
s245406112
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s002207562
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s257738821
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s635460187
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s483520286
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s143246792
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s901672966
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s050036513
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s543339008
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s385399225
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s907117874
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s432127344
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s959782707
p00586
C++
hello world
a.cc:1:1: error: 'hello' does not name a type 1 | hello world | ^~~~~
s987772918
p00586
C++
#include<stdio.h> int main(){ int a, b; while( scanf(%d
a.cc: In function 'int main()': a.cc:6:18: error: expected primary-expression before '%' token 6 | while( scanf(%d | ^ a.cc:6:19: error: 'd' was not declared in this scope 6 | while( scanf(%d | ^ a.cc:6:20: error: expected ')' at end of input 6 | while( scanf(%d | ~ ^ | ) a.cc:6:20: error: expected statement at end of input a.cc:6:20: error: expected '}' at end of input a.cc:4:11: note: to match this '{' 4 | int main(){ | ^