submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s192613148
p03697
C++
#include<iostream> #include<algorithm> using namespace std; int main() { int a; cin >> a; int b; cin >> b; int c; cin >> c; int a; cin >> a; int b; cin >> b; if (a + b >= 10) cout << "error" << endl; else cout << a + b << endl; }
a.cc: In function 'int main()': a.cc:14:21: error: redeclaration of 'int a' 14 | int a; | ^ a.cc:6:13: note: 'int a' previously declared here 6 | int a; | ^ a.cc:16:21: error: redeclaration of 'int b' 16 | int b; | ...
s425961971
p03697
C++
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if(a + b >= 10) { cout << "error" << endl; } else { cout << a + b << endl; } }
a.cc: In function 'int main()': a.cc:7:6: error: 'a' was not declared in this scope 7 | if(a + b >= 10) { | ^ a.cc:7:10: error: 'b' was not declared in this scope 7 | if(a + b >= 10) { | ^
s330790644
p03697
C++
#include <iostream> #include <vector> #include <algorithm> #include <set> #include <stack> #include <iomanip> #include <queue> #include <deque> #include <sstream> #include <stdio.h> #include <string> #include <cmath> #include <map> #include <utility> using namespace std; #define s(n) scanf("%d",&n) #define sc(n) scanf...
a.cc: In function 'int main()': a.cc:29:26: error: operands to '?:' have different types 'const char*' and 'int' 29 | cout << (a+b > 9 ? "error" : (a+b)); | ~~~~~~~~^~~~~~~~~~~~~~~~~
s674503069
p03697
C
#include <stdio.h> int main() { int i, j; int tmp =0; char str[26]; scanf("%s", str); for(i = 0; < strlen(str); i++) { for(j = i + 1; j < strlen(str); j++) { if(str[i] == str[j]) { tmp = 1; } } } if (tmp == 1) { printf("no\n"); } else { p...
main.c: In function 'main': main.c:12:14: error: expected expression before '<' token 12 | for(i = 0; < strlen(str); i++) { | ^ main.c:13:25: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 13 | for(j = i + 1; j < strlen(str); j++) { | ...
s121009700
p03697
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; sum = a+b; if(sum>9){ cout<<"error"; }else{ cout<<sum; } }
a.cc: In function 'int main()': a.cc:9:5: error: 'sum' was not declared in this scope 9 | sum = a+b; | ^~~
s438207472
p03697
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; sum = a+b; if(sum>=10){ cout<<"error"; } cout<<sum; }
a.cc: In function 'int main()': a.cc:9:5: error: 'sum' was not declared in this scope 9 | sum = a+b; | ^~~
s096873737
p03697
C++
A, B = map(int, input().split()) if (A+B) >= 10: print("error") else: print(A+B)
a.cc:1:1: error: 'A' does not name a type 1 | A, B = map(int, input().split()) | ^
s469050891
p03697
C++
#include<bits/stdc++.h.> using namespace std; int main() { int a,b,c,d; cin>>a>>b; c=a+b; if(c<10){ cout<<c<<endl; } else{ cout<<"error"<<endl; } return 0; }
a.cc:1:9: fatal error: bits/stdc++.h.: No such file or directory 1 | #include<bits/stdc++.h.> | ^~~~~~~~~~~~~~~~ compilation terminated.
s114753631
p03697
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication { class Program { static void Main() { new Solution().answer(); } } class Solution { string[] input; ...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.L...
s545551331
p03697
C++
#include <stdio.h> int main() { int A,B; scanf("&d", &A); scanf("&d", &B); int total = 0; total = a + b; if(total < 10){ printf("%d\n",total); }else{ printf("error"); } return 0; }
a.cc: In function 'int main()': a.cc:9:12: error: 'a' was not declared in this scope 9 | total = a + b; | ^ a.cc:9:16: error: 'b' was not declared in this scope 9 | total = a + b; | ^
s688584783
p03697
C++
#include <iostream.h> using namespace std int main(){ int a b sum; cin >> a >> b; sum = a + b; if(sum >=10){ cout << "error" << endl; }else{ cout << sum << endl; } return 0; }
a.cc:1:10: fatal error: iostream.h: No such file or directory 1 | #include <iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s008063338
p03697
Java
import java.util.*; public class Restricted { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a+b>=10) { System.out.println("error"); } else{ System.out.println(a+b); } } }
Main.java:2: error: class Restricted is public, should be declared in a file named Restricted.java public class Restricted { ^ 1 error
s158273999
p03697
Java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a + b >= 10) { System.out.println("error"); } else { 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
s351662023
p03697
Java
import java.util.Scanner; import java.util.Random; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a + b >= 10) { System.out.println("error"); ...
Main.java:16: error: reached end of file while parsing } ^ 1 error
s484525098
p03697
C++
#include <iostream> using namespace std; int main() { int A,B,C; cin>>A>>B; C=A+B; if( (C<10) cout << C<<endl; else cout <<"error"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:9:12: error: expected ';' before 'cout' 9 | if( (C<10) cout << C<<endl; | ^~~~~ | ; a.cc:10:1: error: expected primary-expression before 'else' 10 | else cout <<"error"<<endl; | ^~~~ a.cc:9:29: error: expected ')' before 'else' 9 |...
s214268027
p03697
C++
#include<stdio.h> void main(){ int a, b; scanf("%d %d", &a, &b); if(a+b>=10) printf("%s\n", "Error"); else printf("%d\n", a+b); }
a.cc:3:1: error: '::main' must return 'int' 3 | void main(){ | ^~~~
s908459318
p03697
C
include <stdio.h> int main(){ int A,B; ...
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s659165528
p03697
C
#include <stdio.h> int main(){ int A,B,num; scanf("%d", &A); scanf("%d", &B); num = A + B; if(num >= 10){ printf("error\n"); }else{ printf("%d"\n,num); } return 0; }
main.c: In function 'main': main.c:14:28: error: stray '\' in program 14 | printf("%d"\n,num); | ^ main.c:14:28: error: expected ')' before 'n' 14 | printf("%d"\n,num); | ~ ^~ | )
s037034988
p03697
C
#include <stdio.h> int main(void){ int A,B; scanf("%d %d",&A,&B); if(A+B>10){ printf("error\n"); }else{ printf("%d\n",sum); } return 0; }
main.c: In function 'main': main.c:8:31: error: 'sum' undeclared (first use in this function) 8 | printf("%d\n",sum); | ^~~ main.c:8:31: note: each undeclared identifier is reported only once for each function it appears in
s822842057
p03697
C
#include <stdio.h> int main(void) { int a, b sum; scanf("%d %d", &a, &b); if(a>9 || a<1 || b>9 || b<1){ printf("error.\n"); return 1; } sum = a + b; if(sum >= 10) printf("error"); else printf("%d",sum); return 0; }
main.c: In function 'main': main.c:3:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sum' 3 | int a, b sum; | ^~~ main.c:4:37: error: 'b' undeclared (first use in this function) 4 | scanf("%d %d", &a, &b); | ...
s021899088
p03697
C
#include <stdio.h> int main(void) { int a, b result; scanf("%d %d", &a, &b); if(a>9 || a<1 || b>9 || b<1){ printf("error.\n"); return 1; } result = a + b; if(result >= 10) printf("error"); else printf("%d",result); return 0; }
main.c: In function 'main': main.c:3:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'result' 3 | int a, b result; | ^~~~~~ main.c:4:37: error: 'b' undeclared (first use in this function) 4 | scanf("%d %d", &a, &b); | ...
s794517555
p03697
C
#include <stdio.h> int main(void) { int a, b result, n; n = scanf("%d %d", &a, &b); if(a>9 || a<1 || b>9 || b<1){ printf("error.\n"); return 1; } result = a + b; if(result >= 10) printf("error"); else printf("%d",result); return 0; }
main.c: In function 'main': main.c:3:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'result' 3 | int a, b result, n; | ^~~~~~ main.c:4:17: error: 'n' undeclared (first use in this function) 4 | n = scanf("%d %d", &a, &b); |...
s715610933
p03697
C++
#include <stdio.h> int main(void) { int A,B result, n; n = scanf("%d %d", &A, &B); if(A>9 || A<1 || B>9 || B<1){ printf("error.\n"); return 1; } result = A + B; if(result >= 10) printf("error"); else printf("%d",result); return 0; }
a.cc: In function 'int main()': a.cc:3:25: error: expected initializer before 'result' 3 | int A,B result, n; | ^~~~~~ a.cc:4:17: error: 'n' was not declared in this scope 4 | n = scanf("%d %d", &A, &B); | ^ a.cc:4:41: error: 'B...
s252128354
p03697
C++
#include <stdio.h> void main(){ char buf[10]; int num1; int num2; int sum; fgets(buf,10,stdin); sscanf(buf,"%d %d",&num1,&num2); sum = num1 + num2; //}while(num1 <= 1 || num2 >= 9); if(sum < 10) printf("%d \n",sum); else printf("error\n"); }
a.cc:3:1: error: '::main' must return 'int' 3 | void main(){ | ^~~~
s804447834
p03697
C++
#include <stdio.h> void main(){ char buf[10]; int num1; int num2; int sum; do{ fgets(buf,10,stdin); sscanf(buf,"%d %d",&num1,&num2); sum = num1 + num2; }while(num1 <= 1 || num2 >= 9); if(sum < 10) printf("%d \n",sum); else printf("error\n"); }
a.cc:3:1: error: '::main' must return 'int' 3 | void main(){ | ^~~~
s508662324
p03697
C
#include <stdio.h> int Main(void) { int A; int B; int C; char buf[128]; fgets(buf, 128, stdin); sscanf(buf, "%d", &A); fgets(buf, 128, stdin); sscanf(buf, "%d", &B); C = A + B; if(C >= 10) { printf("error")...
/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
s418441065
p03697
C
#include<stdio.h> int main() { int A,B; scanf("%d", &a); scanf("%d", &b); printf("%d", a + b); return 0; }
main.c: In function 'main': main.c:5:16: error: 'a' undeclared (first use in this function) 5 | scanf("%d", &a); | ^ main.c:5:16: note: each undeclared identifier is reported only once for each function it appears in main.c:6:16: error: 'b' undeclared (first use in this function) 6 | sc...
s944576758
p03697
C++
#include<iostream> using namespace std; int main(){ int A,B; cin >> A >> B; if((A+B) >= 10){ cout << "error" << endl; else{ cout << A + B << endl; } } }
a.cc: In function 'int main()': a.cc:10:1: error: expected '}' before 'else' 10 | else{ | ^~~~ a.cc:8:16: note: to match this '{' 8 | if((A+B) >= 10){ | ^ a.cc: At global scope: a.cc:14:1: error: expected declaration before '}' token 14 | } | ^
s919083868
p03697
C++
#include<iostream> #include<string> using namespace std; bool checks(string s){ for(int I=0;i<=s.length()-1;i++){ for(int j=0;j<=s.length()-1;j++){ if(s[i]==s[j]) return 1; } } return 0; } int main(){ string s; cin >> s; if(checks(s)==1) cout<<"no"<<endl; if(checks(s)==0) cout<<"yes"<<endl; return 0; }
a.cc: In function 'bool checks(std::string)': a.cc:6:13: error: 'i' was not declared in this scope 6 | for(int I=0;i<=s.length()-1;i++){ | ^
s472982473
p03697
C++
#include <iostream> using namespace std; int main(void){ int a,b; cin>>a>>b; cout<<(a+b>=10?"error":a+b)<<endl; }
a.cc: In function 'int main()': a.cc:7:17: error: operands to '?:' have different types 'const char*' and 'int' 7 | cout<<(a+b>=10?"error":a+b)<<endl; | ~~~~~~~^~~~~~~~~~~~
s347506723
p03697
C++
#include <bits/stdc++.h> using namespae std ; int main() { int a , b;cin >> a >> b; if(a + b >= 10) cout << "error\n"; else cout << a + b << endl ; return 0 ; }
a.cc:2:7: error: expected nested-name-specifier before 'namespae' 2 | using namespae std ; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:6:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | int a , b;cin >> a >> b; | ^~~ | std::cin In file...
s264466341
p03697
C++
#include <bits/stdc++.h> using namespae std ; int main() { int a , b;cin >> a >> b; if(a + b >= 10) cout << "error\n"; else
a.cc:2:7: error: expected nested-name-specifier before 'namespae' 2 | using namespae std ; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:6:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | int a , b;cin >> a >> b; | ^~~ | std::cin In file...
s480377019
p03697
C++
#include <bits/stdc++.h> using namespae std ; int main() { int a , b;cin >> a >> b; if(a + b >= 10)
a.cc:2:7: error: expected nested-name-specifier before 'namespae' 2 | using namespae std ; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:6:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | int a , b;cin >> a >> b; | ^~~ | std::cin In file...
s678381720
p03697
C
#include <stdio.h> int main(){ int A,B; scanf("d",&A); scanf("d",&B); if(A+B>=10){ printf("error\n"); }else{ printf("%d\n",A+B); }
main.c: In function 'main': main.c:10:3: error: expected declaration or statement at end of input 10 | } | ^
s563501187
p03697
C++
t
a.cc:1:1: error: '\U0000ff54' does not name a type 1 | t | ^~
s278540298
p03697
C++
#include<iostream> using namespace std; int main(void){ int A,B; cin >> A >> B >> endl; if(A+B < 10){ cout << A+B << endl; }else{ cout << "error" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:23: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 7 | cin >> A >> B >> endl; | ~~~~~~~~~~~~~~^~~~~~~ In file included from /usr/...
s330216920
p03697
C++
#include <stdio.h> #include <iostream> using namespace std; lnt main(){ int A,B; cin>>A>>B; if(A+B<10){ cout<<A+B<<endl; }else{ cout<<"error"<<endl; } }
a.cc:5:1: error: 'lnt' does not name a type; did you mean 'int'? 5 | lnt main(){ | ^~~ | int
s631590209
p03697
C++
#include <stdio.h> #include <iostream> using namespace std; lnt main(){ int A,B; cin>>A>>B if(A+B<10){ cout<<A+B<<endl; }else{ cout<<"error"<<endl; } }
a.cc:5:1: error: 'lnt' does not name a type; did you mean 'int'? 5 | lnt main(){ | ^~~ | int
s820644140
p03697
Java
import java.util.Scanner; public class A { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); System.out.println(a+b >= 10 ? "error" : a+b); scanner.close(); } }
Main.java:3: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s719066176
p03697
C++
# -*- coding: utf-8 -*- import sys import subprocess import json import time import math import re import sqlite3 A, B = map(int, input().split()) if A + B >= 10: print("error") else print(A+B)
a.cc:1:3: error: invalid preprocessing directive #- 1 | # -*- coding: utf-8 -*- | ^ a.cc:3:1: error: 'import' does not name a type 3 | import sys | ^~~~~~ a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
s750139388
p03697
C++
#include <bits/stdc++.h> #define p(x) cout << x << endl #define rep(i, first, to) for(ll i = first; i < to; ++i) using namespace std; typedef long long ll; void solve() { int a, b; cin >> a >> b; cout << (a + b < 10 ? a + b : "error") << endl; } int main() { solve(); return 0; }
a.cc: In function 'void solve()': a.cc:12:29: error: operands to '?:' have different types 'int' and 'const char*' 12 | cout << (a + b < 10 ? a + b : "error") << endl; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
s482540912
p03697
C++
A, B = map(int, input().split()) if A + B >10: print('error') else: print(A+B)
a.cc:4:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 4 | print('error') | ^~~~~~~ a.cc:1:1: error: 'A' does not name a type 1 | A, B = map(int, input().split()) | ^
s867765658
p03697
C++
A, B = input().split() if A + B >10: print('error') else print('A+B')
a.cc:4:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 4 | print('error') | ^~~~~~~ a.cc:6:11: warning: multi-character character constant [-Wmultichar] 6 | print('A+B') | ^~~~~ a.cc:1:1: error: 'A' does not name a type 1 | A, B = ...
s500360142
p03697
C++
# -*- coding:utf-8 -*- n = input() n = n.split(' ') res = int(n[0]) + int(n[1]) if res > 9: print('error') else: print(res)
a.cc:1:3: error: invalid preprocessing directive #- 1 | # -*- coding:utf-8 -*- | ^ a.cc:7:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 7 | print('error') | ^~~~~~~ a.cc:3:1: error: 'n' does not name a type 3 | n = input() | ^
s133350528
p03697
C++
#include <iostream> class TaskA { public: void solve(std::istream& in, std::ostream& out) { int a,b;in>>a>>b; if(a+b>=10)out<<"error\n"; else out<<a+b<<'\n'; } };
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s561760574
p03697
C++
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException{ // 読み込み BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; String[] temp; line=br.readLine(); t...
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.IOException; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fm...
s027285163
p03697
C++
public class Main { public static void main(String[] args) throws IOException{ // 読み込み BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; String[] temp; line=br.readLine(); temp=line.split(" "); int a = Integer.valueOf(temp[0]); int b = Integer.valueOf(temp[1]); ...
a.cc:1:1: error: expected unqualified-id before 'public' 1 | public class Main { | ^~~~~~
s310015933
p03697
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for (int (i)=(0);(i)<(int)(n);++(i)) using ll = long long; int main() { int a, b; cin >> a >> b; cout << (a+b>=10 ? "error" : a+b) << endl; }
a.cc: In function 'int main()': a.cc:9:22: error: operands to '?:' have different types 'const char*' and 'int' 9 | cout << (a+b>=10 ? "error" : a+b) << endl; | ~~~~~~~~^~~~~~~~~~~~~~~
s745673164
p03697
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for (int (i)=(0);(i)<(int)(n);++(i)) using ll = long long; int main() { int a, b; cin >> a >> b; cout << (a+b>=10 : "error" : a+b) << endl; }
a.cc: In function 'int main()': a.cc:9:21: error: expected ')' before ':' token 9 | cout << (a+b>=10 : "error" : a+b) << endl; | ~ ^~ | )
s965714337
p03697
C++
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); String[] ana = new String[3]; ana = line.split(" "); int jal...
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...
s295919542
p03697
C
#include<stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); if(a+b >= 10){ printf("error\n"); } else { printf("%d\n",a+b return 0; } }
main.c: In function 'main': main.c:10:26: error: expected ')' before 'return' 10 | printf("%d\n",a+b | ~ ^ | ) 11 | return 0; | ~~~~~~ main.c:11:25: error: expected ';' before '}' token 11 | ...
s078669248
p03697
C++
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a + b < 10) { System.out.print(a + b); System.out.print(" "); } else { S...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.IOException; | ^~~~~~ 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.util.Scanner; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodule...
s649944670
p03697
C++
package java0614; import java.io.IOException; import java.util.Scanner; public class A063 { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a + b < 10) { System.out.print(a + b); System.out.print(" ");...
a.cc:1:1: error: 'package' does not name a type 1 | package java0614; | ^~~~~~~ a.cc:3:1: error: 'import' does not name a type 3 | import java.io.IOException; | ^~~~~~ a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:4:1: error: 'import' does not name a type 4 | import java...
s841845474
p03697
C
#include <stdio.h> int main(int argc, char const *argv[]){ int m,n; scanf("%d %d", &m, &n); if (m+n < 10) { printf("%d\n", m+n); } else { printf("error\n", ); } return 0; }
main.c: In function 'main': main.c:12:23: error: expected expression before ')' token 12 | printf("error\n", ); | ^
s258876056
p03697
C++
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a + b < 10) { System.out.print(a + b); System.out.print(" "); } else ...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.IOException; | ^~~~~~ 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.util.Scanner; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodule...
s937793859
p03697
C++
#include <iostream> using namespace std; int main(){ int A,B; cin >> A >> B; if ( (A+B) < 10 ) { cout << A+B << endl; }else { cout << "error" >> endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:25: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 10 | cout << "error" >> endl; | ~~~~~~~~~~~~~~~~^~~~~~~ In file included from /usr/include/c++/14/string:55, f...
s014757081
p03697
C++
#include <iostream> using namespace std; int main(){ int A,B; cin >> A >> B; if ( (A+B) < 10 ) { cout >> A+B >> endl; }else { cout >> "error" >> endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int') 8 | cout >> A+B >> endl; | ~~~~ ^~ ~~~ | | | | | int | std::ostream {aka std::basic_...
s903780191
p03697
C++
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a + b < 10) { System.out.print(a + b); } else { System.out.print("error"); ...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.IOException; | ^~~~~~ 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.util.Scanner; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodule...
s671952515
p03697
C++
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a + b < 10) { System.out.print(a + b); } else { System.out.print("error"); ...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.IOException; | ^~~~~~ 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.util.Scanner; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodule...
s276102279
p03697
C++
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a+b<10){ System.out.print(a+b); }else { System.out.print("error");} } ...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.IOException; | ^~~~~~ 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.util.Scanner; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodule...
s456949092
p03697
C++
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a+b<10){ System.out.print(a+b); }else { System.out.print("error");} } ...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.IOException; | ^~~~~~ 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.util.Scanner; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodule...
s800864907
p03697
C++
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << ((a + b > 9) ? "error" : a + b) << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:24: error: operands to '?:' have different types 'const char*' and 'int' 6 | cout << ((a + b > 9) ? "error" : a + b) << endl; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
s722798619
p03697
C++
#include <cstdio> #include <iostream> using namespace std; int main(){ int a,b; cin >> a >> b ; int x = a + b; cout << (x<10)? x : "error" <<endls; }
a.cc: In function 'int main()': a.cc:12:31: error: 'endls' was not declared in this scope 12 | cout << (x<10)? x : "error" <<endls; | ^~~~~
s471425591
p03697
C++
#include<iostream> int main(){ int a,b; cin >> a >> b; if(a+b < 10){ cout << a+b << endl; } else{ cout << "error" << endl; } }
a.cc: In function 'int main()': a.cc:5:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | 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 | extern istream cin; ///< Linke...
s307399445
p03697
C++
#include <stdio.h> #include <cstring> #include <map> #include <math.h> #include <vector> #define INF 100000000 #define ABS(a) (a<0?-(a):a) #define MIN(a,b) (a>b?b:a) #define MAX(a,b) (a>b?a:b) #define REP(i,a) for(int i=0;i<a;i++) using namespace std; int main(){ int a,b; scanf("%d%d", &a, &b); a += b; if(a ...
a.cc: In function 'int main()': a.cc:18:9: error: expected primary-expression before '>' token 18 | if(a => 10){ | ^
s882748937
p03697
C++
#include <iostream> #include <cstring> using namespace std; int main(){ int sum; char s[100]; cin>>s; for(int i=1;i<strlen(s);i++){ if(s[0]!=s[i])sum++; } if(strlen(s)-1==sum)cout<<yes; else cout<<no; return 0; }
a.cc: In function 'int main()': a.cc:11:27: error: 'yes' was not declared in this scope 11 | if(strlen(s)-1==sum)cout<<yes; | ^~~ a.cc:12:12: error: 'no' was not declared in this scope 12 | else cout<<no; | ^~
s591699143
p03697
C++
#include <iostream> #include <cstring> using namespace std; int main(){ int s[100], sum; cin>>"s"; for(int i=1;i<strlen(s);i++){ if(s[0]!=s[i])sum++; } if(strlen(s)-1==sum)cout<<yes; else cout<<no; return 0; }
a.cc: In function 'int main()': a.cc:6:4: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [2]') 6 | cin>>"s"; | ~~~^~~~~ | | | | | const char [2] | std::istream {aka std::basic_istream<char>} In file included from /usr...
s531579442
p03697
C++
#include <bits/stdc++.h> using namespace std; int main(void) { int a,b; cin >> a >> b; cout << (a+b>=10 ? "error" : a+b) << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:20: error: operands to '?:' have different types 'const char*' and 'int' 7 | cout << (a+b>=10 ? "error" : a+b) << endl; | ~~~~~~~~^~~~~~~~~~~~~~~
s083281940
p03697
C++
r = list(map(int, input().split())) s = sum(r) if s > 9: res = 'error' else: res = s print(res)
a.cc:4:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 4 | res = 'error' | ^~~~~~~ a.cc:1:1: error: 'r' does not name a type 1 | r = list(map(int, input().split())) | ^
s063717392
p03697
Java
import java.io.*; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.StringTokenizer; public class Timus1715 implements Runnable { BufferedReader in; PrintWriter out; StringTokenizer tok = new StringTokenizer(""); void init() thro...
Main.java:8: error: class Timus1715 is public, should be declared in a file named Timus1715.java public class Timus1715 implements Runnable { ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
s087371870
p03697
Java
package Baza; import java.util.Scanner; /** * Created by yriaven on 10.06.17. */ public class A { public static void main(String[] args) { Scanner skan = new Scanner(System.in); int a = skan.nextInt(); int b = skan.nextInt(); int wynik = a+b; if (wynik >= 10) ...
Main.java:8: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s652906648
p03697
Java
package Baza; import java.util.Scanner; /** * Created by yriaven on 10.06.17. */ public class A { public static void main(String[] args) { Scanner skan = new Scanner(System.in); int a = skan.nextInt(); int b = skan.nextInt(); int wynik = a+b; if (wynik <= 10) {...
Main.java:8: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s018714987
p03697
Java
package Baza; import java.util.Scanner; /** * Created by yriaven on 10.06.17. */ public class A { public static void main(String[] args) { Scanner skan = new Scanner(System.in); int a = skan.nextInt(); int b = skan.nextInt(); int wynik = a+b; if (wynik <= 10) {...
Main.java:8: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s070078994
p03697
Java
public class A { public static void main(String[] args) { Scanner skan = new Scanner(System.in); int a = skan.nextInt(); int b = skan.nextInt(); int wynik = a+b; if (wynik == 10) { System.out.println("Error"); } e...
Main.java:1: error: class A is public, should be declared in a file named A.java public class A { ^ Main.java:3: error: cannot find symbol Scanner skan = new Scanner(System.in); ^ symbol: class Scanner location: class A Main.java:3: error: cannot find symbol Scanner skan = new Scann...
s390259974
p03697
C
#include "stdafx.h" int main() { int a, b, c; c = a + b; if (c < 10) printf("%d",c); else printf("error"); return 0; }
main.c:1:10: fatal error: stdafx.h: No such file or directory 1 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s385483709
p03697
C
include<stdio.h> int main() { int A=0, B=0; scanf("%d", &A); scanf("%d", &B); if(A+B >= 10) { printf("error\n"); } else { printf("%d\n", A+B); } return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s179654252
p03697
C++
#include<iostream> using namespace std; int main(){ int a,b; cin << a<< b; if (a+b>=10){cout << a+b <<endl; } else {cout << "error" << endl;} return 0; }
a.cc: In function 'int main()': a.cc:7:13: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 7 | cin << a<< b; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>}...
s481230297
p03697
C
include<stdio.h> int main() { int A=0, B=0; scanf("%d", &A); scanf("%d", &B); if(A+B >= 10) { printf("error\n"); } else { printf("%d\n", &A+B); } return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s823099775
p03697
C++
#include<iostream> using namespase std; int main(){ int a,b; cin << a<< b; if (a+b>=10){cout << a+b <<endl; } else {cout << "error" << endl;} return 0; }
a.cc:3:7: error: expected nested-name-specifier before 'namespase' 3 | using namespase std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin << a<< b; | ^~~ | std::cin In file inclu...
s734165755
p03697
C++
#include<iostream> using namespase std; int main(){ int a,b cin << a<< b; if (a+b>=10){cout << a+b <<endl; } else {cout << "error" << endl;} return 0; }
a.cc:3:7: error: expected nested-name-specifier before 'namespase' 3 | using namespase std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:7:9: error: expected initializer before 'cin' 7 | cin << a<< b; | ^~~ a.cc:8:15: error: 'b' was not declared in this scope 8 | ...
s884924521
p03697
C++
#include<iostream> using namespace std; int main(){ cin << a<< b; if (a+b>=10){cout << a+b <<endl; } else {cout << "error" << endl;} return 0; }
a.cc: In function 'int main()': a.cc:6:16: error: 'a' was not declared in this scope 6 | cin << a<< b; | ^ a.cc:6:20: error: 'b' was not declared in this scope 6 | cin << a<< b; | ^
s371588954
p03697
C++
#include<iostream> using namespase std; int main(){ cin << a<< b; if (a+b>=10){cout << a+b <<endl; } else {cout << "error" << endl;} return 0; }
a.cc:3:7: error: expected nested-name-specifier before 'namespase' 3 | using namespase std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin << a<< b; | ^~~ | std::cin In file inclu...
s882851904
p03697
C++
#include<iostream.h> using namespase std; int main(){ cin << a<< b; if (a+b>=10){cout << a+b <<endl; } else {cout << "error" << endl;} return 0; }
a.cc:1:9: fatal error: iostream.h: No such file or directory 1 | #include<iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s042730060
p03697
C
include<stdio.h> int main() { int A, B; if(A+B >= 10) { printf("error\n"); }; else { printf("%c", A+B); } return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s457237798
p03697
C++
#include <iostream> using namespace std; int main{ int a, b; cin >> a >> b; if(a + b > 9){ cout << "error" << endl; } else { cout << a+b << endl; } }
a.cc:5:5: error: cannot declare '::main' to be a global variable 5 | int main{ | ^~~~ a.cc:6:5: error: expected primary-expression before 'int' 6 | int a, b; | ^~~ a.cc:6:5: error: expected '}' before 'int' a.cc:5:9: note: to match this '{' 5 | int main{ | ^ a.cc:7:5: e...
s658023836
p03697
C++
int main(){ int A,B; scanf("%d%d",A,B); if(A+B>=10){ printf("error"); }else{ printf("%d",A+B); } return 0; }
a.cc: In function 'int main()': a.cc:4:3: error: 'scanf' was not declared in this scope 4 | scanf("%d%d",A,B); | ^~~~~ a.cc:6:5: error: 'printf' was not declared in this scope 6 | printf("error"); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable...
s663464611
p03697
C++
#include<iostream> #include<string> using namespace std; int main() { int max_str_size = 26; char input_str[max_str_size]; cin >> input_str; for(int i = 0 ; i < max_str_size ; i++) { for(int j = 1 ; j < max_str_size ; j++ ) { if (input_str[i] === input_str[j]) { cout << "yes" << endl; ...
a.cc: In function 'int main()': a.cc:12:26: error: expected primary-expression before '=' token 12 | if (input_str[i] === input_str[j]) { | ^
s549015629
p03697
Java
import java.io.*; import java.util.*; import java.lang.Math.*; public class Main { public static void main(String[] args) { Main main = new Main(); main.solve(args); } public void solve(String[] args) { int[][] g = { {1, 3, 5, 7, 8, 10, 12}, ...
Main.java:24: error: cannot find symbol for (int j = 0; i < g[i].length; l++) { ^ symbol: variable l location: class Main Main.java:25: error: cannot find symbol if (g[i][l] == x) findX = true; ^ symbol: variable...
s680391948
p03697
C++
#include<iostream> int main() { using namespace std; int a,b; cin>>a>>b; if(a+b<10) cout<<a+b<<\n; else cout<<"error"<<\n; return 0; }
a.cc:10:20: error: stray '\' in program 10 | cout<<a+b<<\n; | ^ a.cc:13:24: error: stray '\' in program 13 | cout<<"error"<<\n; | ^ a.cc: In function 'int main()': a.cc:10:21: error: 'n' was not declared in this scope 10 | cout<<a+b<...
s212999653
p03697
C
#include <stdio.h> int main(void) { int A,B,sum; do{ printf("整数を入力してさい\n") scanf("%d %d",&A,&B); }while(A < 1 || 9 < B); sum = A + B; if(sum>=10){ printf("error\n"); }else{ printf("%d\n",sum); } return 0; }
main.c: In function 'main': main.c:7:39: error: expected ';' before 'scanf' 7 | printf("整数を入力してさい\n") | ^ | ; 8 | scanf("%d %d",&A,&B); | ~~~~~
s905056903
p03697
C++
#include<bits/stdc++.h> using namespace std; int main(){ itn a,b; cin>>a>>b; if(a+b>9)cout<<"error"<<endl; else cout<<a+b<<endl; }
a.cc: In function 'int main()': a.cc:5:1: error: 'itn' was not declared in this scope; did you mean 'int'? 5 | itn a,b; | ^~~ | int a.cc:6:6: error: 'a' was not declared in this scope 6 | cin>>a>>b; | ^ a.cc:6:9: error: 'b' was not declared in this scope 6 | cin>>a>>b; | ...
s938779622
p03697
C
#include<stdio.h> #include<string.h> int judgestr(char str[],int len) { int i,n; for(n = 0;n<len-1;n++) for(i=n+1;i<len;i++) if(str[n] - str[i] == 0) return 1; return 0; } int main() { char str[27]; fgets(str,27,stdin); ...
main.c: In function 'main': main.c:16:17: error: invalid suffix "7" on integer constant 16 | fgets(str,27,stdin); | ^~~
s527236230
p03697
C++
int main() { int A, B, result; cin >> A >> B; result = A + B; if (result >= 10) { cout << "error" << endl; } else { cout << result << endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin >> A >> B; | ^~~ a.cc:10:29: error: 'cout' was not declared in this scope 10 | if (result >= 10) { cout << "error" << endl; } | ^~~~ a.cc:10:48: error: 'en...
s752294742
p03697
C++
#include<bits/stdc++.h> int main(){ int a,b;6 scanf("%d%d",&a,&b); if(a+b>=10) printf("error\n"); else printf("%d\n",a+b); return 0; }
a.cc: In function 'int main()': a.cc:5:14: error: expected ';' before 'scanf' 5 | int a,b;6 | ^ | ; 6 | scanf("%d%d",&a,&b); | ~~~~~
s751765456
p03697
C++
#include <vector> #include <iostream> #include <utility> #include <algorithm> #include <string> #include <deque> #include <queue> #include <tuple> #include <queue> #include <functional> #include <cmath> #include <iomanip> #include <map> #include <set> #include <numeric> #include <unordered_map> #include <unordered_set>...
a.cc: In function 'int main()': a.cc:47:19: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 47 | else cout<<a+b<endl; | ~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from ...
s800905856
p03697
C++
#include <iostream> using namespace std; int main(){ int a; int b; cin >> a >> b; if ((a+b)<10) { cout >> a+b >> endl; }else{ cout >> "error" >> endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:22: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int') 9 | cout >> a+b >> endl; | ~~~~ ^~ ~~~ | | | | | int | ...
s782031131
p03697
C++
using System; using System.Linq; namespace AtCoder { class _063A { static void Main() { int num = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).Sum(); Console.WriteLine(num >= 10 ? "error" : num.ToString()); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Linq; | ^~~~~~ a.cc:13:6: error: expected ';' after class definition 13 | } | ^ | ; a.c...
s438462547
p03697
C++
print("Problem A begin") A, B = map(int,input().split()) if A+B>=10: print("error") else: print(A+B) print("Problem A end")
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token 1 | print("Problem A begin") | ^
s219556120
p03697
C++
#include <iostream> using namespace std; int main(){ int A, B; cin >> A >> B; cout << (A + B >= 10) ? "error" : A + B << endl; }
a.cc: In function 'int main()': a.cc:8:49: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 8 | cout << (A + B >= 10) ? "error" : A + B << endl; | ~~~~~~^~~~~~~
s977690030
p03697
C++
#include <iostream> using namespace std; int main(){ int A, B; cin >> A >> B; cout << A + B >= 10 ? "error" : A + B << endl; }
a.cc: In function 'int main()': a.cc:8:23: error: no match for 'operator>=' (operand types are 'std::basic_ostream<char>' and 'int') 8 | cout << A + B >= 10 ? "error" : A + B << endl; | ~~~~~~~~~~~~~ ^~ ~~ | | | | | int | ...