submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s691718576 | p00586 | C++ | #include <iostream>
int main(){
int A << std::cin;
int B << std::cin;
std::cout << A+B << std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:4:11: error: expected initializer before '<<' token
4 | int A << std::cin;
| ^~
a.cc:5:11: error: expected initializer before '<<' token
5 | int B << std::cin;
| ^~
a.cc:6:18: error: 'A' was not declared in this scope
6 | std::... |
s563083387 | p00586 | C++ | #include <iostream>
using namespace std;
int main(){
int x,y;
while((cin >> x >> y) != EOF){
cout << x + y << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:23: error: no match for 'operator!=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
9 | while((cin >> x >> y) != EOF){
| ~~~~~~~~~~~~~~~ ^~
| |
| std::basic_istre... |
s713716354 | p00586 | C++ | #include <iostream>
using namespace std;
int main(){
int x,y;
while((cin >> x >> y) != EOF){
cout << x + y << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:23: error: no match for 'operator!=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
8 | while((cin >> x >> y) != EOF){
| ~~~~~~~~~~~~~~~ ^~
| |
| std::basic_istre... |
s610717287 | p00586 | C++ | #include <studio.h>
int main(){
int x,y;
while(scanf("%d %d",x, y) != EOF){
printf("%d\n", x + y);
}
} | a.cc:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h>
| ^~~~~~~~~~
compilation terminated.
|
s827792577 | p00586 | C++ | #include <studio.h>
int main(){
int x,y;
while(scanf("%d %d",&x, &y) != EOF){
printf("%d\n", x + y);
}
} | a.cc:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h>
| ^~~~~~~~~~
compilation terminated.
|
s482956701 | p00586 | C++ | #include <studio.h>
int main(){
int x,y;
while(scanf("%d %d",&x, &y) != EOF){
printf("%d\n", x + y);
}
return 0;
} | a.cc:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h>
| ^~~~~~~~~~
compilation terminated.
|
s600501027 | p00586 | C++ | #include<cstdio>
using namespace std;
int main(void)
{
int a,b;
while(scanf("%d %d",&a,&b)!=EOF){
printf("%d\n",a+b);
}
return 0; | a.cc: In function 'int main()':
a.cc:9:14: error: expected '}' at end of input
9 | return 0;
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s417506882 | p00586 | C++ | while a = gets.split(nil)
sum = a[0].to_i + a[1].to_i
puts sum
end | a.cc:1:1: error: expected unqualified-id before 'while'
1 | while a = gets.split(nil)
| ^~~~~
|
s941173577 | 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:16: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
5 | while (scanf_s("%d%d", &a, &b)!=EOF){
| ^~~~~~~
| scanf
|
s411090869 | p00586 | C++ | #include<iostream>
using namespace std;
int main(){
int a, b;
while( cin>>a>>b; ){
cout<<a+b<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:21: error: expected ')' before ';' token
6 | while( cin>>a>>b; ){
| ~ ^
| )
a.cc:6:23: error: expected primary-expression before ')' token
6 | while( cin>>a>>b; ){
| ^
|
s202131729 | p00586 | C++ | #include <cstdio>
using namespace std;
int main() {
int a, b;
while (2 == scanf("%d %d", &a, &b)) {
printf("%d
", a + b);
}
} | a.cc:8:16: warning: missing terminating " character
8 | printf("%d
| ^
a.cc:8:16: error: missing terminating " character
8 | printf("%d
| ^~~
a.cc:9:1: warning: missing terminating " character
9 | ", a + b);
| ^
a.cc:9:1: error: missing termina... |
s488331123 | p00586 | C++ | #include <cstdio>
using namespace std;
int main() {
int a, b;
while (2 == scanf("%d %d", &a, &b)) {
printf("%d
", a + b);
}
} | a.cc:8:16: warning: missing terminating " character
8 | printf("%d
| ^
a.cc:8:16: error: missing terminating " character
8 | printf("%d
| ^~~
a.cc:9:1: warning: missing terminating " character
9 | ", a + b);
| ^
a.cc:9:1: error: missing termina... |
s949646341 | p00586 | C++ | main(){int a,b;while(~scanf("%d %d",&a,&b)){printf("%d\n",a+b);}} | a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
1 | main(){int a,b;while(~scanf("%d %d",&a,&b)){printf("%d\n",a+b);}}
| ^~~~
a.cc: In function 'int main()':
a.cc:1:23: error: 'scanf' was not declared in this scope
1 | main(){int a,b;while(~scanf("%d %d",&a,&b)){printf... |
s319738784 | p00586 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
cin >> a >> b;
cout << a+b << endl;
} | a.cc: In function 'int main()':
a.cc:5:10: error: 'a' was not declared in this scope
5 | cin >> a >> b;
| ^
a.cc:5:15: error: 'b' was not declared in this scope
5 | cin >> a >> b;
| ^
|
s812825383 | p00586 | C++ | main(int a,b){for(;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);} | a.cc:1:12: error: 'b' has not been declared
1 | main(int a,b){for(;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
| ^
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
1 | main(int a,b){for(;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
| ^~~~
a.cc:1:1: warnin... |
s336713800 | p00586 | C++ | #include <iostream>
int main()
{
while(c != EOF)
{int a,b;
std::cin >> a;
std::cin >> b;
std::cout << a + b << std::endl;
return 0;
}
} | a.cc: In function 'int main()':
a.cc:5:7: error: 'c' was not declared in this scope
5 | while(c != EOF)
| ^
|
s887553564 | p00586 | C++ | include <iostream>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
cout << a+b << endl;
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
7 | cin >> a >> b;
| ^~~
a.cc:8:1: error: 'cout' was not declared in this scope
8 | cout << a+b << endl;
| ^~~~
a.cc:8:16: ... |
s030322398 | p00586 | C++ | #include<iostream>
using namespace std;
int main ()
{
while(cin >> a >> b)
cout << a + b << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:18: error: 'a' was not declared in this scope
6 | while(cin >> a >> b)
| ^
a.cc:6:23: error: 'b' was not declared in this scope
6 | while(cin >> a >> b)
| ^
|
s639281046 | p00586 | C++ | out=[]
while True:
try:
k=list(map(int,input().split(" ")))
out.append(k[0]+k[1])
except:
break
for i in out:
print(i) | a.cc:1:1: error: 'out' does not name a type
1 | out=[]
| ^~~
|
s637786369 | p00586 | C++ | trf6tf67tf7itf7tfyitgytfygvytrdtrdtesrfdresfdrewrfdrrdzra | a.cc:1:1: error: 'trf6tf67tf7itf7tfyitgytfygvytrdtrdtesrfdresfdrewrfdrrdzra' does not name a type
1 | trf6tf67tf7itf7tfyitgytfygvytrdtrdtesrfdresfdrewrfdrrdzra
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
s863728847 | p00586 | C++ | #include<iostream>
#include <cstdio>
using namespace std;
int main() {
int a, b;
while (scanf("%d %d", &a, &b) != EOF) {
printf("%d\n", a + b);
return 0;
} | a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:6:12: note: to match this '{'
6 | int main() {
| ^
|
s852041957 | p00586 | C++ | #include <iostream>
using namespace std;
int main(){
while(cin){
int a,b;
cin>>a>>b;
cout<<a+b<<endl;
}
return 0;
}
} | a.cc:16:1: error: expected declaration before '}' token
16 | }
| ^
|
s789230496 | p00586 | C++ | #include <bits/stdc++.h>
#include <cstdio>
int main(int args, char **ppArgs)
{
__asm volatile
(
"sub $(12 + 8 + 8 + 4), %esp \n\t" // (arg[0:2], a, b, "%d %d\0\0\0", "%d\n")
"movl $0x25206425, (12 + 8 + 0)(%esp) \n\t"
"movl $0x00000064, (12 + 8 + 4)(%esp) \n\t" // "%d %d"
"movl $0x000A6425, (12 + 8 + 8 ... | /usr/bin/ld: /tmp/ccNweUs1.o: in function `L_Input':
a.cc:(.text+0x43): undefined reference to `_scanf'
/usr/bin/ld: /tmp/ccNweUs1.o: in function `L_Print':
a.cc:(.text+0x67): undefined reference to `_printf'
collect2: error: ld returned 1 exit status
|
s857871547 | p00586 | C++ | #include <cardio>
int main(){
int a, b;
while(scanf("%d%d",&a,&b) != EOF){
printf("%d\n",a+b);
}
return 0;
} | a.cc:1:10: fatal error: cardio: No such file or directory
1 | #include <cardio>
| ^~~~~~~~
compilation terminated.
|
s062829472 | p00586 | C++ | #include <iostream>
int main(void){
int a,b;
while(cin){
std::cin >> a >> b;
std::cout << a+b << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | while(cin){
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///<... |
s614115808 | p00586 | C++ | #include <iostream>
#include <string>
#include <cstdio>
using namespace std;
int main() {
string a, b;
while(true) {
cin >> a;
if(a == EOF) break;
cin >> b;
cout << (int)a + (int)b << endl;
}
} | a.cc: In function 'int main()':
a.cc:10:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
10 | if(a == EOF) break;
| ~ ^~
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /... |
s623843793 | p00586 | C++ | #include<cstdio>
#include<iostream>
#include<cstring>
#include<algorithm>
#include<math.h>
using namespace std;
//基?框架
const double eps = 1e-6;
const double pi = acos(-1.0);
struct Point
{
double x, y;
Point() {}
Point(double x, double y) :x(x), y(y) {}
};
typedef Point Vector;
Vector operator + (Vector a, Vector b)... | a.cc:130:7: error: redefinition of 'Point P [1005]'
130 | Point P[1005];
| ^
a.cc:116:7: note: 'Point P [1005]' previously declared here
116 | Point P[1005];
| ^
a.cc:131:5: error: redefinition of 'int n'
131 | int n;
| ^
a.cc:117:5: note: 'int n' previously declared here
117 |... |
s735156135 | p00586 | C++ | using namespace std;
int main(){
int a,b;
while(cin>>a>>b){
cout<<a+b<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope
4 | while(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 | using namespace std;
a.cc:... |
s643382389 | p00586 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,b;
while(cin >> a >> b;)
{
cout << a+b << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:24: error: expected ')' before ';' token
7 | while(cin >> a >> b;)
| ~ ^
| )
a.cc:7:25: error: expected primary-expression before ')' token
7 | while(cin >> a >> b;)
| ^
|
s469957560 | p00586 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b;
while{cin>>a>>b;
cout << a+b << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before '{' token
7 | while{cin>>a>>b;
| ^
| (
a.cc:7:6: error: expected primary-expression before '{' token
a.cc:7:6: error: expected ')' before '{' token
7 | while{cin>>a>>b;
| ^
| )
|
s657453963 | p00586 | C++ | a;main(b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);} | a.cc:1:1: error: 'a' does not name a type
1 | a;main(b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);}
| ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
1 | a;main(b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);}
| ^
|
s315364234 | p00586 | C++ | #include <iostream>using namespace std;int main(){ int a,b; cin >> a >> b; cout << a+b << endl; return 0;} | a.cc:1:26: warning: extra tokens at end of #include directive
1 | #include <iostream>using namespace std;int main(){ int a,b; cin >> a >> b; cout << a+b << endl; return 0;}
| ^~~~~~~~~
a.cc:1:10: fatal error: iostream>usin: No such file or directory
1 | #include <iostr... |
s621929356 | p00586 | C++ | #include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cout<<a+b<<endl; return 0;} | a.cc:1:25: warning: extra tokens at end of #include directive
1 | #include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cout<<a+b<<endl; return 0;}
| ^~~~~~~~~
a.cc:1:9: fatal error: iostream>usin: No such file or directory
1 | #include<iostream>... |
s873226738 | p00586 | C++ | int a,b;main(){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));} | a.cc:1:9: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
1 | int a,b;main(){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
| ^~~~
a.cc: In function 'int main()':
a.cc:1:22: error: 'scanf' was not declared in this scope
1 | int a,b;main(){for(;~scanf("%d%d",&a,&b);prin... |
s126139895 | p00586 | C++ | #import<cstdio>
int main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));} | a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<cstdio>
| ^~~~~~
a.cc:2:5: error: cannot declare '::main' to be a global variable
2 | int main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
| ^~~~
a.cc:2:10: error: 'a' was not declared in this scope
... |
s301406298 | p00586 | C++ | int main(){
int a, b;
while( scanf("%d %d", &a, &b) != EOF ){
printf("%d\n", a + b);
}
int N=100000000;
while(N--){}
return 0;
} | a.cc: In function 'int main()':
a.cc:3:12: error: 'scanf' was not declared in this scope
3 | while( scanf("%d %d", &a, &b) != EOF ){
| ^~~~~
a.cc:3:38: error: 'EOF' was not declared in this scope
3 | while( scanf("%d %d", &a, &b) != EOF ){
| ^~... |
s662104560 | p00586 | C++ | #include <iosteam>
int main(){
int a, b;
while( scanf("%d %d", &a, &b) != EOF ){
printf("%d\n", a + b);
}
int N=100000000;
while(N--){}
return 0;
} | a.cc:1:10: fatal error: iosteam: No such file or directory
1 | #include <iosteam>
| ^~~~~~~~~
compilation terminated.
|
s739460854 | p00586 | C++ | #include <cstdio>
int main(){
int a, b;
while( scanf("%d %d", &a, &b) != EOF ){
printf("%d\n", a + b);
}
long long N=1000000000000LL;
int s=0;
while(N--){s+=N;}
cout<<s<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:1: error: 'cout' was not declared in this scope
10 | cout<<s<<endl;
| ^~~~
a.cc:10:10: error: 'endl' was not declared in this scope
10 | cout<<s<<endl;
| ^~~~
|
s671886357 | p00586 | C++ | #include <iostream>
#include <cstdio>
int main(){
int a, b;
while( scanf("%d %d", &a, &b) != EOF ){
printf("%d\n", a + b);
}
long long N=1000000000000LL;
int s=0;
while(N--){s+=N;}
cout<<s<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | cout<<s<<endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked t... |
s773690648 | p00586 | C++ | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);} | a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}
| ^
|
s619120343 | p00586 | C++ | #include <iostream>
int main(){
int a,b;
while(cin >> a >> b){
cout << a+b << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | while(cin >> a >> b){
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | exter... |
s757734528 | p00586 | C++ | #include <iostream>
int a,b,c;
int main(){
while(std::cin>>a>>b){
std::cout<<a+b+c<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
5 | std::cout<<a+b+c<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/o... |
s617775029 | p00586 | C++ | #include <iostream>
int a,b;
int main(){
while(std::cin>>a>>b){
int c=0;
for(ll i=0;i<10000000000LL;i++)c++;
std::cout<<a+b+c/20000000000LL<<std::endl;
}
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'll' was not declared in this scope
6 | for(ll i=0;i<10000000000LL;i++)c++;
| ^~
a.cc:6:12: error: 'i' was not declared in this scope
6 | for(ll i=0;i<10000000000LL;i++)c++;
| ^
|
s308771824 | p00586 | C++ | #include <iostream>
int a,b;
int main(){
while(std::cin>>a>>b){
if(a+b>=1000000000)cout<<"fijeoawgjewjoagj";
else cout<<a+b<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:20: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | if(a+b>=1000000000)cout<<"fijeoawgjewjoagj";
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout'... |
s590798928 | p00586 | C++ | #include <iostream>
long long a,b;
int main(){
while(std::cin>>a>>b){
long long c=0;
while(c<10000000000LL)c++;
else std::cout<<(a+b+c)%c<<std::endl;
}
} | a.cc: In function 'int main()':
a.cc:7:1: error: 'else' without a previous 'if'
7 | else std::cout<<(a+b+c)%c<<std::endl;
| ^~~~
|
s991525025 | p00586 | C++ | #include <iostream>
long long a,b;
int main(){
while(std::cin>>a>>b){
long long c=0;
while(c<a+b)c++;
cout<<c<<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout<<c<<endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout;... |
s120123546 | p00586 | C++ | #include <iostream>
using namespace std;
long long a,b;
int main(){
while(cin>>a>>b){
if(a<0||b<0)cout<<"ERROR";
cout<<a+b<<endl;
}
}
} | a.cc:12:1: error: expected declaration before '}' token
12 | }
| ^
|
s282342685 | p00586 | C++ | a | a.cc:1:1: error: 'a' does not name a type
1 | a
| ^
|
s729139887 | p00586 | C++ | fe | a.cc:1:1: error: 'fe' does not name a type
1 | fe
| ^~
|
s774647736 | p00586 | C++ | #include<iostream>
int main(){
int a, b;
while( scanf("%d %d", &a, &b) != EOF ){
cout << a+b << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
6 | cout << a+b << endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream... |
s418067405 | p00586 | C++ | #include <cstdio>
main(a,b){scanf("%d %d",&a,&b);printf("%d",a+b);} | a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
2 | main(a,b){scanf("%d %d",&a,&b);printf("%d",a+b);}
| ^
|
s032495328 | p00586 | C++ | #include <cstdio>
main(){int a,b:scanf("%d %d",&a,&b);printf("%d",a+b);} | a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(){int a,b:scanf("%d %d",&a,&b);printf("%d",a+b);}
| ^~~~
a.cc: In function 'int main()':
a.cc:2:15: error: found ':' in nested-name-specifier, expected '::'
2 | main(){int a,b:scanf("%d %d",&a,&b);printf("%d",a+... |
s950028811 | p00586 | C++ | main(a,b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);} | a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(a,b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);}
| ^
|
s087495402 | p00586 | C++ | /* comment */
/* ?e?X?g */ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s650127175 | p00586 | C++ | /* 日本語コメント */
#include<iostream>
using namespace std;
main(){
int a; b;
while(cin >> a >> b ) cout << a + b << endl;
} | a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
6 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:7:8: error: 'b' was not declared in this scope
7 | int a; b;
| ^
|
s097793610 | p00586 | C++ | #include <iostream>
using namespace std;
int main() {
while(cin >> a >> b) {
cout << a+b << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:14: error: 'a' was not declared in this scope
5 | while(cin >> a >> b) {
| ^
a.cc:5:19: error: 'b' was not declared in this scope
5 | while(cin >> a >> b) {
| ^
|
s504253408 | p00586 | C++ | #include <iostream>
using namespace std;
int main()
int a,b,c;
while(cin>>a>>b)
{
c=a+b;
cout<<c<<endl;
}
return 0;
} | a.cc:5:1: error: expected initializer before 'int'
5 | int a,b,c;
| ^~~
a.cc:6:1: error: expected unqualified-id before 'while'
6 | while(cin>>a>>b)
| ^~~~~
a.cc:11:1: error: expected unqualified-id before 'return'
11 | return 0;
| ^~~~~~
a.cc:12:1: error: expected declaration before '}' to... |
s645494506 | p00586 | C++ | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));} | a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
| ^
|
s390014319 | p00586 | C++ | while 1:
try: print sum(map(int,raw_input().split()))
except : break | a.cc:1:1: error: expected unqualified-id before 'while'
1 | while 1:
| ^~~~~
|
s924436498 | p00586 | C++ | #include <iostream>
int main(void){
int a << std::cin;
int b << std::cin;
std::cout << a + b << std::endl;
} | a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before '<<' token
4 | int a << std::cin;
| ^~
a.cc:5:9: error: expected initializer before '<<' token
5 | int b << std::cin;
| ^~
a.cc:6:16: error: 'a' was not declared in this scope
6 | std::cout << a + ... |
s745575722 | p00586 | C++ | #include<iostream>
using namespace std;
int main(){
lint a,b;
while(cin>>a){
cin>>b;
cout<<a+b<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:1: error: 'lint' was not declared in this scope; did you mean 'uint'?
6 | lint a,b;
| ^~~~
| uint
a.cc:7:12: error: 'a' was not declared in this scope
7 | while(cin>>a){
| ^
a.cc:8:6: error: 'b' was not declared in this scope
8 | cin>>b;
... |
s739519738 | p00586 | C++ | #include<stdio.h>
#include<windows.h>
int main(void)
{
HANDLE hToken;
TOKEN_PRIVILEGES tkp;
// 蜿門セ礼ウサ扈溽沿譛ャ
OSVERSIONINFO osvi;
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if (GetVersionEx(&osvi) == 0)
return false;
if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT)
{
// Windows NT 3.51, Windows NT 4... | a.cc:3:9: fatal error: windows.h: No such file or directory
3 | #include<windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s806868011 | p00586 | C++ | #include <iostream>
using namespace std;
int main()
{
椀nt a, b;
while(scanf("%d %d", &a, &b) != EOF)
printf("%dn", a+b);
return 0;
} | a.cc: In function 'int main()':
a.cc:7:1: error: '\U00006900nt' was not declared in this scope
7 | 椀nt a, b;
| ^~~~
a.cc:8:23: error: 'a' was not declared in this scope
8 | while(scanf("%d %d", &a, &b) != EOF)
| ^
a.cc:8:27: error: 'b' was not declared in this scope
8 | whi... |
s466420692 | p00586 | C++ | #include <stdio.h>
main(){
int a,b,c;
while(scanf("%d %d",&a,&b) = EOF ){
c = a + b;
printf("%d\n",c);
}
} | a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:6:12: error: lvalue required as left operand of assignment
6 | while(scanf("%d %d",&a,&b) = EOF ){
| ~~~~~^~~~~~~~~~~~~~~
|
s770554069 | p00586 | C++ | #include <stdio.h>
main(){
int a,b,c;
while(scanf("%d %d",&a,&b) = EOF){
c = a + b;
printf("%d",c);
}
} | a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:6:12: error: lvalue required as left operand of assignment
6 | while(scanf("%d %d",&a,&b) = EOF){
| ~~~~~^~~~~~~~~~~~~~~
|
s155081931 | p00586 | C++ | #include <iostream>
int main(){
int a,b;
while (cin>>a>>b) cout<<a+b;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:8: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | while (cin>>a>>b) cout<<a+b;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ... |
s131898707 | p00586 | C++ | <?php
while( fscanf(STDIN,"%d %d",$a,$b) > 0 ){
echo $a+$b . "\n";
}
?> | a.cc:1:1: error: expected unqualified-id before '<' token
1 | <?php
| ^
a.cc:5:1: error: expected unqualified-id before '?' token
5 | ?>
| ^
|
s875173985 | p00586 | C++ | import java.io.BufferedReader;
import java.io.InputStreamReader;
class ABProblem{
public static void main(String args[]){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input_str;
try{
while((input_str = br.readLine()) != null){
String[] input_strs = input_str.split(" ")... | a.cc:1:1: error: 'import' does not name a type
1 | import java.io.BufferedReader;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.io.InputStreamReader;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available wit... |
s342276376 | p00586 | C++ | #include <iostream>
using namespace std;
int main() {
int a,b;
whilc (cin>>a>>b) {
cout<<a+b<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'whilc' was not declared in this scope
6 | whilc (cin>>a>>b) {
| ^~~~~
|
s694301181 | p00586 | C++ | #include<iostream>
#include<cstdio>
int main(void){
int a,b;
while(cin>>a>>b!=EOF)
cout<<a+b<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | while(cin>>a>>b!=EOF)
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ... |
s016613117 | p00586 | C++ | #include<iostream>
#include<cstdio>
using namespace std;
int main(void){
int a,b;
while(cin>>a>>b!=EOF)
cout<<a+b<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:18: error: no match for 'operator!=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
6 | while(cin>>a>>b!=EOF)
| ~~~~~~~~~^~
| |
| std::basic_istream<char>::__istr... |
s377381454 | p00587 | Java | import java.util.Scanner;
public class Main2 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt(); int answer = x*x*x;
System.out.println(answer);
}
} | Main.java:2: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
^
1 error
|
s015511985 | p00587 | Java | import java.util.Scanner;
public class A {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
while (sc.hasNext()) {
char query = sc.next().charAt(0);
String tree1 = sc.next();
String tree2 = sc.next();
Node root = new Node();
parse(tree1, 0, root, 1);
parse(tr... | Main.java:3: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s360152934 | p00587 | Java | i ((,),(,)) ((,(,)),)
u ((,),(,)) ((,(,)),) | Main.java:1: error: class, interface, enum, or record expected
i ((,),(,)) ((,(,)),)
^
1 error
|
s890799041 | p00587 | Java | import java.util.Scanner;
public class _1001_BinaryTreeIntersectionAndUnion {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
int order = scan.next().equals("i") ? 0 : 1;
boolean[] tree1 = decode(scan.next());
boolean[] tree2 = decode(scan.next()... | Main.java:4: error: class _1001_BinaryTreeIntersectionAndUnion is public, should be declared in a file named _1001_BinaryTreeIntersectionAndUnion.java
public class _1001_BinaryTreeIntersectionAndUnion {
^
1 error
|
s087893496 | p00587 | C | #include<iostream>
#include<string>
using namespace std;
struct Tree{
Tree *l,*r;
Tree():l(0),r(0){}
~Tree(){delete l;delete r;}
};
Tree* to_t(string s){
Tree *t=new Tree();
if(s=="")return 0;
if(s=="(,)")return t;
int lev=0;
for(int i=0;i<s.size();i++){
if(s[i]=='(')lev++;
else if(s[i]==')')lev--;
els... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s898746052 | p00587 | C++ | #include <iostream>
#include <limits.h>
#include <queue>
#include <algorithm>
#include <string>
//typedef pair<int,int> P;
using namespace std;
const int INF=INT_MAX/3;
const int N=100;
int heap[N];
string output;
void parse(string &s,int id){
//cout<<s<<":"<<id<<endl;
if(s.empty()) return;
heap[id]++;
i... | a.cc: In function 'int main()':
a.cc:91:19: error: expected ';' before 'solve'
91 | cin>>cmd>>s1>>s2
| ^
| ;
92 | solve(cmd,s1,s2);
| ~~~~~
|
s768609744 | p00587 | C++ | #include <iostream>
#include <limits.h>
#include <queue>
#include <algorithm>
#include <string>
//typedef pair<int,int> P;
using namespace std;
const int INF=INT_MAX/3;
const int N=1000;
int heap[N];
string output;
void parse(string &s,int id){
//cout<<s<<":"<<id<<endl;
if(s.empty()) return;
heap[id]++;
... | a.cc: In function 'void parse(std::string&, int)':
a.cc:24:13: error: break statement not within loop or switch
24 | if(id>=N) break;
| ^~~~~
|
s319007502 | p00587 | C++ | #coding : utf-8
# version 1.0 2017/02/10 ??????????????¨???????????????
# version 1.1 2017/02/11???????????????????°????????????????????????¶??§??????
# version 1.2 2017/02/11???AOJ??????????????°??????
# version 1.3 2017/02/12 ?§£????????????????????????????????¨?????§?????????????????????
import requests,sys
impo... | a.cc:1:2: error: invalid preprocessing directive #coding
1 | #coding : utf-8
| ^~~~~~
a.cc:3:3: error: invalid preprocessing directive #version
3 | # version 1.0 2017/02/10 ??????????????¨???????????????
| ^~~~~~~
a.cc:4:3: error: invalid preprocessing directive #version
4 | # version 1.1 20... |
s236429342 | p00587 | C++ | #coding : utf-8
# version 1.0 2017/02/10 ??????????????¨???????????????
# version 1.1 2017/02/11???????????????????°????????????????????????¶??§??????
# version 1.2 2017/02/11???AOJ??????????????°??????
# version 1.3 2017/02/12 ?§£????????????????????????????????¨?????§?????????????????????
import requests,sys
impo... | a.cc:1:2: error: invalid preprocessing directive #coding
1 | #coding : utf-8
| ^~~~~~
a.cc:3:3: error: invalid preprocessing directive #version
3 | # version 1.0 2017/02/10 ??????????????¨???????????????
| ^~~~~~~
a.cc:4:3: error: invalid preprocessing directive #version
4 | # version 1.1 20... |
s641725872 | p00587 | C++ | #coding : utf-8
# version 1.0 2017/02/10 ??????????????¨???????????????
# version 1.1 2017/02/11???????????????????°????????????????????????¶??§??????
# version 1.2 2017/02/11???AOJ??????????????°??????
# version 1.3 2017/02/12 ?§£????????????????????????????????¨?????§?????????????????????
import requests,sys
impo... | a.cc:1:2: error: invalid preprocessing directive #coding
1 | #coding : utf-8
| ^~~~~~
a.cc:3:3: error: invalid preprocessing directive #version
3 | # version 1.0 2017/02/10 ??????????????¨???????????????
| ^~~~~~~
a.cc:4:3: error: invalid preprocessing directive #version
4 | # version 1.1 20... |
s924020857 | p00587 | C++ | #include <cstdio>
using namespace std;
const int nil = -1;
const int MAX_N = 256;
struct Node {
int l, r, cnt;
Node() {
l = r = nil;
cnt = 0;
}
};
Node v[MAX_N];
int nodeIndex;
int parse(const char *s, int n, int root) {
v[root].cnt++;
if (s[++n] != ',') {
if (v[root].l == nil) v[root].l = ++... | a.cc: In function 'int main()':
a.cc:48:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
48 | print(0, (op=='u'?1:2)); putchar('\n');
| ~~^~~~~
|
s841517379 | p00587 | C++ | /*
AizuOnline A1001
Binary Tree Intersection And Union
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
int find_comma(char * s)
{ int i;
int depth=0;
char c;
for(i=0;i<strlen(s);i++)
{
c = s[i];
if(c=='(')depth++;
if(c==')')depth--;
if((depth==1) && (... | a.cc: In function 'char* left_node(char*)':
a.cc:38:23: error: invalid conversion from 'void*' to 'char*' [-fpermissive]
38 | ptr = malloc(len+1);
| ~~~~~~^~~~~~~
| |
| void*
a.cc: In function 'char* right_node(char*)':
a.cc:57:2... |
s971347567 | p00587 | C++ | #include <iostream>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
using namespace std;
struct bad_input { };
struct Node;
typedef boost::shared_ptr<Node> NodePtr;
struct Node {
NodePtr left;
NodePtr right;
};
void show_intersection_tree(NodePtr root1, NodePtr root2)
{
std::cout << '(';
if (root... | a.cc:2:10: fatal error: boost/shared_ptr.hpp: No such file or directory
2 | #include <boost/shared_ptr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s949227584 | p00587 | C++ | #include <iostream>
#include <boost/shared_ptr.hpp>
using namespace std;
struct bad_input { };
struct Node;
typedef boost::shared_ptr<Node> NodePtr;
struct Node {
NodePtr left;
NodePtr right;
};
void show_intersection_tree(NodePtr root1, NodePtr root2)
{
std::cout << '(';
if (root1->left && root2->left) {
show_... | a.cc:2:10: fatal error: boost/shared_ptr.hpp: No such file or directory
2 | #include <boost/shared_ptr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s189637222 | p00587 | C++ | #include <iostream>
#include <cstdio>
#include <string>
#include <string.h>
using namespace std;
#define maxn 10005
char a[maxn],b[maxn];
struct Node
{
int out;
int l,r;
Node()
{
out=l=r=-1;
}
}x[maxn],y[maxn];
//int Build(string cur,int id,int f)
//{
// 蟒コ遶狗ャャ荳?「玲?
// if(f==0)
// {... | a.cc:104:5: error: expected unqualified-id before 'else'
104 | else
| ^~~~
a.cc:113:9: error: expected unqualified-id before 'if'
113 | if(ix==-1&&iy!=-1)//iy譛? {
| ^~
a.cc:115:16: error: expected constructor, destructor, or type conversion before '(' token
115 | ... |
s975242501 | p00587 | C++ | class Node
attr_reader :left, :right
def initialize(left,right)
@left = left
@right = right
end
def to_s
"(#{@left||""},#{@right||""})"
end
end
class Parser
def initialize(str)
@str = str
@idx = 0
end
def read
if @str[@idx] == ?(
@idx += 1
l = read
@idx += 1
... | a.cc:4:5: error: stray '@' in program
4 | @left = left
| ^
a.cc:5:5: error: stray '@' in program
5 | @right = right
| ^
a.cc:14:5: error: stray '@' in program
14 | @str = str
| ^
a.cc:15:5: error: stray '@' in program
15 | @idx = 0
| ^
a.cc:18:8: err... |
s485613423 | p00587 | C++ |
else
return max(strL, strR);
}
string sL1, sL2, sR1, sR2;
divide(strL, sL1, sL2);
divide(strR, sR1, sR2)
return "(" + solve(op, sL1, sL2) + "," + solve(op, s2, t2) + ")";
}
int main() { | a.cc:2:5: error: expected unqualified-id before 'else'
2 | else
| ^~~~
a.cc:4:3: error: expected declaration before '}' token
4 | }
| ^
a.cc:6:3: error: 'string' does not name a type
6 | string sL1, sL2, sR1, sR2;
| ^~~~~~
a.cc:7:9: error: expected constructor, destructor, ... |
s551559872 | p00587 | C++ | #include <iostream>
using namespace std;
int main() {
}
s | a.cc:6:2: error: 's' does not name a type
6 | s
| ^
|
s699013742 | p00587 | C++ | #include <iostream>
using namespace std;
int main() {
}
s | a.cc:6:2: error: 's' does not name a type
6 | s
| ^
|
s100353045 | p00587 | C++ | #include <iostream>
using namespace std;
int main() {
}
s | a.cc:6:2: error: 's' does not name a type
6 | s
| ^
|
s297654480 | p00587 | C++ | #include <iostream>
using namespace std;
int main() {
}
s | a.cc:6:2: error: 's' does not name a type
6 | s
| ^
|
s898335967 | p00587 | C++ | #include <iostream>
using namespace std;
int main() {
}
s | a.cc:6:2: error: 's' does not name a type
6 | s
| ^
|
s061921274 | p00587 | C++ | #include <iostream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <map>
#include <stack>
#include <queue>
#include <algorithm>
#include <set>
#include <boost/format.hpp>
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,j) FOR(i,0,j)
#define mp std::make_pair
const int INF = 1 << 24;
const int... | a.cc:10:10: fatal error: boost/format.hpp: No such file or directory
10 | #include <boost/format.hpp>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
|
s300224450 | p00587 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <numeric>
#include <cctype>
#include <tuple>
#ifdef _MSC_VER
#include <agents... | a.cc:49:12: error: expected unqualified-id before ')' token
49 | string and(){
| ^
a.cc:80:8: error: expected unqualified-id before 'or' token
80 | string or(){
| ^~
a.cc: In function 'int main()':
a.cc:115:42: error: expected identifier before '(' token
115 | if (c... |
s746868997 | p00587 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <numeric>
#include <cctype>
#include <tuple>
#ifdef _MSC_VER
#include <agents... | a.cc:46:12: error: expected unqualified-id before ')' token
46 | string and(){
| ^
a.cc:77:8: error: expected unqualified-id before 'or' token
77 | string or(){
| ^~
a.cc: In function 'int main()':
a.cc:112:42: error: expected identifier before '(' token
112 | if (c... |
s499555423 | p00587 | C++ | #include "set>.cpp"
#include "set>.cpp" | a.cc:1:10: fatal error: set>.cpp: No such file or directory
1 | #include "set>.cpp"
| ^~~~~~~~~~
compilation terminated.
|
s438857700 | p00587 | C++ | #include "set>.cpp"
#include "set>.cpp"
#include <iostream>
int main(){
while(1){
}
} | a.cc:1:10: fatal error: set>.cpp: No such file or directory
1 | #include "set>.cpp"
| ^~~~~~~~~~
compilation terminated.
|
s276656484 | p00587 | C++ | #include "set>.cpp"
#include "set>.cpp"
#include <iostream>
template<class T>class L{L<T*>operator->()};L<int>i=i->
int main(){
while(1){
}
} | a.cc:1:10: fatal error: set>.cpp: No such file or directory
1 | #include "set>.cpp"
| ^~~~~~~~~~
compilation terminated.
|
s552621573 | p00587 | C++ | #include <iostream>
template<class T>class L{L<T*>operator->()};L<int>i=i->
int main(){
while(1){
}
} | a.cc:2:42: error: expected ';' at end of member declaration
2 | template<class T>class L{L<T*>operator->()};L<int>i=i->
| ^
| ;
a.cc:2:54: error: 'L<T*> L<T>::operator->() [with T = int]' is private within this context
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.