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 ... |
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;
... | 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 er... |
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 ... |
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 en... |
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 en... |
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: err... |
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, &... |
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... |
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テ」... |
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 | 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111... | main.c:1:1: warning: integer constant is too large for its type
1 | 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111... |
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:... |
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("%... |
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: erro... |
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: erro... |
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]
mai... |
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... |
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);
| ... |
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);
| ^~~... |
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);... |
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);... |
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... |
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
... |
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(){... |
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: er... |
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... |
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(;~sc... |
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(... |
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("%... |
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(){... |
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(){... |
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(){... |
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: in... |
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 'sc... |
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){
| ~ ^
| ... |
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... |
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("%... |
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]
ma... |
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... |
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>... |
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 | wh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.