submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s215283087
p03697
C++
#include <iostream> #include <cstdio> 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:26: error: operands to '?:' have different types 'const char*' and 'int' 8 | cout << ((a + b >= 10) ? "error" : a + b) << endl; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
s252061614
p03697
C++
#include <iostream> #include <cstdio> 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:24: error: operands to '?:' have different types 'const char*' and 'int' 8 | cout << (a + b >= 10 ? "error" : a + b) << endl; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
s014745866
p03697
C++
#include<iostream> #include<string> #include<vector> #include<iomanip> #include<algorithm> #include<queue> #include<stack> #include<map> using namespace std; #define ll long long int main(){ int a,b; cin >> a >> b; if(a+b<10){ cout << a+b; }else{ cout <<error; } return 0; }
a.cc: In function 'int main()': a.cc:17:14: error: 'error' was not declared in this scope; did you mean 'perror'? 17 | cout <<error; | ^~~~~ | perror
s308651722
p03697
C++
#include<iostream> #include<vector> #include<algorithm> #include<string.h> #include<complex> using namespace std; typedef long long int llint; int main(){ int x, y; cin >> x >> y; if (x + y >= 10){ cout << "error" << endl; } else{ cout << x + y < endl; } return 0; }
a.cc: In function 'int main()': a.cc:15:31: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 15 | cout << x + y < endl; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/string:48, ...
s802514754
p03697
C
#include <stdio.h> int main(void){ int a,b; scanf(%d%d,&a,&b); if(a+b>=10) printf("error"); else printf("%d",a+b); return 0; }
main.c: In function 'main': main.c:4:11: error: expected expression before '%' token 4 | scanf(%d%d,&a,&b); | ^
s301508611
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()) | ^
s842338905
p03697
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <algorithm> #include <string> #include <sstream> #include <complex> #include <vector> #include <list> #include <queue> #include <deque> #include <stack> #include <map> #include <set> #include <array> #include <tuple> #...
a.cc: In function 'int main()': a.cc:38:43: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(ll)' 38 | cout << ((a + b < 10) ? (string)(a + b) : "error") << endl; | ^ In file included from /usr/include/c++/14/string:54, ...
s120443194
p03697
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <algorithm> #include <string> #include <sstream> #include <complex> #include <vector> #include <list> #include <queue> #include <deque> #include <stack> #include <map> #include <set> #include <array> #include <tuple> #...
a.cc: In function 'int main()': a.cc:38:27: error: operands to '?:' have different types 'll' {aka 'long long int'} and 'const char*' 38 | cout << ((a + b < 10) ? (a + b) : "error") << endl; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
s200883741
p03697
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <algorithm> #include <string> #include <sstream> #include <complex> #include <vector> #include <list> #include <queue> #include <deque> #include <stack> #include <map> #include <set> #include <array> #include <tuple> #...
a.cc: In function 'int main()': a.cc:38:27: error: operands to '?:' have different types 'll' {aka 'long long int'} and 'const char*' 38 | cout << ((a + b < 10) ? a + b : "error") << endl; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
s607211140
p03697
C++
#include <iostream> using namespace std; int main(void){ int a,b; cin >> a >> b; int c = a + b; cout << (c<10 ? c : "error") << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:17: error: operands to '?:' have different types 'int' and 'const char*' 11 | cout << (c<10 ? c : "error") << endl; | ~~~~~^~~~~~~~~~~~~
s043259979
p03697
C++
#include <iostream> using namespace std; int main(void){ int a,b; cin >> a >> b; c = a + b; cout << (c<10 ? c : "error") << endl; return 0; }
a.cc: In function 'int main()': a.cc:10:3: error: 'c' was not declared in this scope 10 | c = a + b; | ^
s864679996
p03697
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<(a+b>9?"error":a+b); }
a.cc: In function 'int main()': a.cc:6:15: error: operands to '?:' have different types 'const char*' and 'int' 6 | cout<<(a+b>9?"error":a+b); | ~~~~~^~~~~~~~~~~~
s637610840
p03697
C++
#include<bits/std++.h> using namespace std; int main(void){ int x, y; cin >> x >> y; if((x+y)>=10){ cout << "error\n"; }else{ cout << x + y << endl; } }
a.cc:1:9: fatal error: bits/std++.h: No such file or directory 1 | #include<bits/std++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s085464534
p03697
C++
v
a.cc:1:1: error: 'v' does not name a type 1 | v | ^
s997729504
p03697
C
#include<Stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); if(a + b < 10){ printf("%d", a + b); } else { printf("error\n"); } return 0; }
main.c:1:9: fatal error: Stdio.h: No such file or directory 1 | #include<Stdio.h> | ^~~~~~~~~ compilation terminated.
s279264825
p03697
C
#include<Stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); if(a + b < 10){ printf("%d", a + b); } else { printf("error\n"); } return 0; }
main.c:1:9: fatal error: Stdio.h: No such file or directory 1 | #include<Stdio.h> | ^~~~~~~~~ compilation terminated.
s236122195
p03697
C
#include<Stdio.h> int main(){ int a, b; if(a + b < 10){ printf("%d", a + b); } else { printf("error\n"); } return 0; }
main.c:1:9: fatal error: Stdio.h: No such file or directory 1 | #include<Stdio.h> | ^~~~~~~~~ compilation terminated.
s677054170
p03697
C++
#include<iostream> #include<string> using namespace std; int main(){ int a,b,c; cin >> a >> b; if(c =a+b >= 10) cout << "error" << endl; else count << c << endl; }
a.cc: In function 'int main()': a.cc:8:8: error: 'count' was not declared in this scope 8 | else count << c << endl; | ^~~~~
s236069454
p03697
C++
#include<iostream> #include<string> using namespace std; int main(){ int a,b,c; cin >> a >> b; if(c =a+b >= 10) cout << “error” << endl; else count << c << endl; }
a.cc:7:28: error: extended character “ is not valid in an identifier 7 | if(c =a+b >= 10) cout << “error” << endl; | ^ a.cc:7:28: error: extended character ” is not valid in an identifier a.cc: In function 'int main()': a.cc:7:28: error: '\U0000201cerror\U0000201d' was not declare...
s650262665
p03697
C++
#include<iostream> #include<string> 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:7:20: error: operands to '?:' have different types 'const char*' and 'int' 7 | cout << (a+b >=10? "error":a+b) << endl; | ~~~~~~~~^~~~~~~~~~~~~
s530397673
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:6:20: error: operands to '?:' have different types 'const char*' and 'int' 6 | cout << (a+b >=10? "error" : a+b) << endl; | ~~~~~~~~^~~~~~~~~~~~~~~
s263927189
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:6:20: error: operands to '?:' have different types 'const char*' and 'int' 6 | cout << (a+b >=10?"error":a+b) << endl; | ~~~~~~~~^~~~~~~~~~~~
s656018211
p03697
C++
#include "bits/stdc++.h" 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:6:19: error: operands to '?:' have different types 'const char*' and 'int' 6 | cout<<(A+B>=10?"error":A+B)<<endl; | ~~~~~~~^~~~~~~~~~~~
s151142988
p03697
C++
#include <bits/std++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if((a+b)>=10) cout<<"error"<<endl; else cout<<(a+b)<<endl; return 0; }
a.cc:1:10: fatal error: bits/std++.h: No such file or directory 1 | #include <bits/std++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s904209159
p03697
C++
#include <bits/std++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if((a+b)>=10) cout>>"error">>endl; else cout>>(a+b)>>endl; return 0; }
a.cc:1:10: fatal error: bits/std++.h: No such file or directory 1 | #include <bits/std++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s257534296
p03697
C++
#include <iostream> #include <algorithm> #include <cmath> #include <limits> #include <vector> #include <cstdio> #include <bits/stdc++.h> #include <set> #include <map> #include <stdio.h> #include <string.h> #include <stack> #include <queue> #include <deque> #include <numeric> #include<bits/stdc++.h> #include <utility> ...
a.cc: In function 'int main()': a.cc:40:19: error: operands to '?:' have different types 'const char*' and 'int' 40 | cout << (A+B>=10?"error":A+B) << endl; | ~~~~~~~^~~~~~~~~~~~
s994796290
p03697
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <string> #include <sstream> #include <complex> #include <vector> #include <list> #include <queue> #include <deque> #include <stack> #include <map> #include <set> using namespace std; #define EPS (1e-7) #define INF...
a.cc: In function 'int main()': a.cc:29:3: error: 'a' was not declared in this scope 29 | a | ^
s738871806
p03697
C++
#include<iostream> #include<string> #include<algorithm> #include<vector> #include<queue> #include<map> #include<math.h> #include<iomanip> #include<set> #include <numeric> #include<cstring> #define REP(i, n) for(int i = 0;i < n;i++) #define REPR(i, n) for(int i = n;i >= 0;i--) #define FOR(i, m, n) for(int i = m;i < n;i...
a.cc: In function 'int main()': a.cc:77:44: error: 'Endl' was not declared in this scope 77 | if (A + B >= 10)cout << "error" << Endl; | ^~~~
s259731805
p03697
C++
#include <bits/stdc++.h> using namespace std; #define dump(x) cout << (x) << endl typedef long long ll; typedef pair<int, int> pi; typedef vector<int> V; int main() { int a, b; cin >> a >> b; dump(a+b >= 10 ? "error" : a+b); return 0; }
a.cc: In function 'int main()': a.cc:11:18: error: operands to '?:' have different types 'const char*' and 'int' 11 | dump(a+b >= 10 ? "error" : a+b); | ~~~~~~~~~~^~~~~~~~~~~~~~~ a.cc:3:26: note: in definition of macro 'dump' 3 | #define dump(x) cout << (x) << endl | ...
s127515750
p03697
C++
#include <bits/stdc++.h> using namespace std; #define dump(x) cout << (x) << endl typedef long long ll; typedef pair<int, int> pi; typedef vector<int> V; int main() { int a, b; cin >> a >> b; dump(a+b >= 10 ? "error" : a+b) return 0; }
a.cc: In function 'int main()': a.cc:11:18: error: operands to '?:' have different types 'const char*' and 'int' 11 | dump(a+b >= 10 ? "error" : a+b) | ~~~~~~~~~~^~~~~~~~~~~~~~~ a.cc:3:26: note: in definition of macro 'dump' 3 | #define dump(x) cout << (x) << endl | ...
s655402586
p03697
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; set<char> st; for(int i=0;i<s.size();i++){ st.insert(s[i]); } if(st.size() == s.size()) cout<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:11:40: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 11 | if(st.size() == s.size()) cout<"Yes"; | ~~~~^~~~~~ | | ...
s136550143
p03697
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <set> #include <stack> #include <deque> #include <cmath> #include <map> using ll = long long; 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:16:22: error: operands to '?:' have different types 'const char*' and 'int' 16 | cout << (a+b >= 10 ? "error" : a+b ) << endl; | ~~~~~~~~~~^~~~~~~~~~~~~~~
s541050442
p03697
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <set> #include <stack> #include <deque> #include <cmath> #include <map> using ll = long long; 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:16:40: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 16 | cout << (a+b >= 10 ) ? "error" : a+b << endl; | ~~~~^~~~~~~
s802823644
p03697
C++
#include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <iostream> #include <bitset> #include <deque> #include <list> #include <map> #include <set> #include <queue> #include <stack> #include <vector> #include <algorithm> #include <iterator> #include <string> using namespace std; int main(){ ...
a.cc: In function 'int main()': a.cc:23:10: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 23 | cout <"error"<endl; | ~~~~ ^~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ost...
s592311470
p03697
C++
#include<iostream> #include<algorithm> #include<string> #include<functional> #include<utility> #include<stack> #include<queue> #include<cmath> #include<list> #include<cstdint> #include<vector> #include<map> #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) #define rep(i,rept) for(ll i = 0; i<rept;i++) typedef ...
a.cc: In function 'int main()': a.cc:50:46: error: expected ';' before ':' token 50 | std::cout << a+b << std::endl: | ^ | ;
s807338884
p03697
C++
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; int sum = 0; set<int> s; for (int i = 0; i < n; ++i) { int score; cin >> score; s.insert(score); sum += score; } if (sum % 10 != 0) { cout << sum << "\n";...
In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h: In instantiation of 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterato...
s263706424
p03697
C++
#include <iostream> int main() { int A, B; std::cin << A << B; if(A + B >= 10){ std::cout << "error"; }else{ std::cout << A + B; } return 0; }
a.cc: In function 'int main()': a.cc:6:13: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | std::cin << A << B; | ~~~~~~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>...
s815376857
p03697
C++
#include<bits/stdc++.h> using namespace std; #define rp(i,n) for(int i=0;i<n;i++) #define rep(i,m,n) for(int i=m;i<=n;i++) #define lrp(i,n) for(long long i=0;i<n;i++) #define lrep(i,m,n) for(long long i=m;i<=n;i++) #define ll long long #define sort(a) sort(a.begin(),a.end()) #define reverse(a) reverse(a.begin(),a.end()...
a.cc: In function 'int main()': a.cc:19:21: error: operands to '?:' have different types 'const char*' and 'int' 19 | cout << (n+m>=10?"error":m+n) << endl; | ~~~~~~~^~~~~~~~~~~~
s077511789
p03697
C++
#include <bits/stdcpp.h> using namespace std; int main(){ int a,b; cin >> a; cin >> b; if(a+b>9) cout << "error" << endl; else cout << a+b << endl; }
a.cc:1:10: fatal error: bits/stdcpp.h: No such file or directory 1 | #include <bits/stdcpp.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s307803145
p03697
C++
#include <bits/stdc++.h> using namespace sdd; int main(){ int a,b; cin >> a; cin >> b; if(a+b>9) cout << "error" << endl; else cout << a+b << endl; }
a.cc:3:17: error: 'sdd' is not a namespace-name 3 | using namespace sdd; | ^~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> a; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gn...
s572763054
p03697
C++
#include <bits/stdc++.h> using namespace std; #define INF 1<<30 #define LINF 1ll<<60ll #define MOD 1000000007 #define pb(a) push_back(a) #define vi vector<int> #define vl vector<long long> #define vvi vector<vi> #define P pair<int,int> #define all(vec) (vec.begin()),(vec.end()) typedef long long ll; typedef unsigned ...
a.cc: In function 'int main()': a.cc:39:21: error: operands to '?:' have different types 'const char*' and 'int' 39 | cout<<((a+b>=10)?"error":a+b)<<endl; | ~~~~~~~~~^~~~~~~~~~~~
s970711968
p03697
Java
import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); a = sc.nextInt(); b = sc.nextInt(); if (a+b >= 10) { ...
Main.java:10: error: cannot find symbol a = sc.nextInt(); ^ symbol: variable a location: class Main Main.java:11: error: cannot find symbol b = sc.nextInt(); ^ symbol: variable b location: class Main Main.java:12: error: cannot find symbol if (a+b >= 10) { ...
s373078594
p03697
C++
#include<iostream> using namespace std; int main(void){ int a, b; cin>>a>>b; cout<<((a+b<10)?(a+b):("error"))<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:18: error: operands to '?:' have different types 'int' and 'const char*' 6 | cout<<((a+b<10)?(a+b):("error"))<<endl; | ~~~~~~~~^~~~~~~~~~~~~~~~
s794351666
p03697
C++
#include<iostream> #include<string> using namespace std; int main(void){ int a, b; cin>>a>>b; cout<<((a+b)<10?(a+b):("error"))<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:18: error: operands to '?:' have different types 'int' and 'const char*' 7 | cout<<((a+b)<10?(a+b):("error"))<<endl; | ~~~~~~~~^~~~~~~~~~~~~~~~
s073163867
p03697
C++
#include<iostream> #include<string> using namespace std; int main(void){ int a, b; cin>>a>>b; cout<<((a+b<10)?(a+b):("error"))<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:18: error: operands to '?:' have different types 'int' and 'const char*' 7 | cout<<((a+b<10)?(a+b):("error"))<<endl; | ~~~~~~~~^~~~~~~~~~~~~~~~
s013877872
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:9:24: error: operands to '?:' have different types 'const char*' and 'int' 9 | cout << (((a+b)>=10) ? "error" : a+b) << endl; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~
s172751180
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:9:39: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 9 | cout << ((a+b)>=10) ? "error" : a+b << endl; | ~~~~^~~~~~~
s267945582
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:9:39: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 9 | cout << ((a+b)>=10) ? "error" : a+b << endl; | ~~~~^~~~~~~
s372396150
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:9:16: error: no match for 'operator>=' (operand types are 'std::basic_ostream<char>' and 'int') 9 | cout << (a+b)>=10 ? "error" : a+b << endl; | ~~~~~~~~~~~~~^~~~ | | | | | int | std::basic_ostream<char> a.cc:9:16:...
s916666682
p03697
C++
#include <bits/stdc++.h> using namespace std; int main(){ cin>>x>>y; if(x+y>9)cout<<"error"; else cout<<x+y; }
a.cc: In function 'int main()': a.cc:4:8: error: 'x' was not declared in this scope 4 | cin>>x>>y; | ^ a.cc:4:11: error: 'y' was not declared in this scope; did you mean 'yn'? 4 | cin>>x>>y; | ^ | yn
s769239853
p03697
C++
#include <iostream> int main() { int a, b; std::cin >> a >> b; if (a + b < 10) { std::cout << a + b << std::endl; } else { std::cout<<"error"<<std::endl; }
a.cc: In function 'int main()': a.cc:10:10: error: expected '}' at end of input 10 | } | ^ a.cc:2:12: note: to match this '{' 2 | int main() { | ^
s464023295
p03697
C++
#include<bits/tdc++.h> 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:1:9: fatal error: bits/tdc++.h: No such file or directory 1 | #include<bits/tdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s841447155
p03697
C++
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:6:5: error: 'cin' was not declared in this scope 6 | cin>>a>>b; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:9:9: error: 'c...
s842570704
p03697
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a+b<<endl; if(a+b>=10){ cout<<"error"<<endl; }
a.cc: In function 'int main()': a.cc:9:2: error: expected '}' at end of input 9 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s206488219
p03697
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a+b>=10)cout<<"error"<endl; else cout<<a+b<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:27: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 7 | if(a+b>=10)cout<<"error"<endl; | ~~~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/regex:68, from...
s006980619
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; } return 0; }
a.cc: In function 'int main()': a.cc:7:17: error: expected primary-expression before '>' token 7 | if(a+b => 10){ | ^
s591350322
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 << nedl; } return 0; }
a.cc: In function 'int main()': a.cc:7:17: error: expected primary-expression before '>' token 7 | if(a+b => 10){ | ^ a.cc:10:34: error: 'nedl' was not declared in this scope 10 | cout << a + b << nedl; | ^~~~
s660314244
p03697
C++
<?php # スペース区切りの整数の入力 fscanf(STDIN, "%d %d", $a, $b); # 出力 $sum = $a + $b; if ($sum >= 10) { echo "error\n"; } else { echo $sum."\n"; } ?>
a.cc:2:3: error: invalid preprocessing directive #\U000030b9\U000030da\U000030fc\U000030b9\U0000533a\U00005207\U0000308a\U0000306e\U00006574\U00006570\U0000306e\U00005165\U0000529b 2 | # スペース区切りの整数の入力 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:5:3: error: invalid preprocessing directive #\U000051fa\U0000529b 5 |...
s256929629
p03697
C++
<?php # スペース区切りの整数の入力 fscanf(STDIN, "%d %d", $a, $b); # 出力 $sum = $a + $b; if ($sum >= 10) { echo "error\n'\"; } else { echo $sum."\n"; } ?>
a.cc:2:3: error: invalid preprocessing directive #\U000030b9\U000030da\U000030fc\U000030b9\U0000533a\U00005207\U0000308a\U0000306e\U00006574\U00006570\U0000306e\U00005165\U0000529b 2 | # スペース区切りの整数の入力 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:5:3: error: invalid preprocessing directive #\U000051fa\U0000529b 5 |...
s277578468
p03697
C++
<?php # スペース区切りの整数の入力 fscanf(STDIN, "%d %d", $a, $b); # 出力 $sum = $a + $b; if ($sum >= 10) { echo ($a+$b)." ".$s."\n"; ?>
a.cc:2:3: error: invalid preprocessing directive #\U000030b9\U000030da\U000030fc\U000030b9\U0000533a\U00005207\U0000308a\U0000306e\U00006574\U00006570\U0000306e\U00005165\U0000529b 2 | # スペース区切りの整数の入力 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:5:3: error: invalid preprocessing directive #\U000051fa\U0000529b 5 |...
s803614523
p03697
C++
#include<iostream> using namespace std; int main(){ int A, B; int sum; cin >> A >> B; sum = A+B; if(sum>=10){ cout << "error"; }else{ cout << sum; } } ~ ~
a.cc:21:1: error: expected class-name before '~' token 21 | ~ | ^
s687974807
p03697
Java
import java.util.Scanner; public class Restricted { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); a = a + b; if(a >= 10)System.out.print("error"); else System.out.print(a); } }
Main.java:3: error: class Restricted is public, should be declared in a file named Restricted.java public class Restricted { ^ 1 error
s750821333
p03697
C++
#include <bits/stdc++.h> using namespace std; int main() { int A; int B; cin >> A; cin >> B; if( A + B >= 0 ) cout << "error" << endl; else cout << iSum << endl; return 0; }
a.cc: In function 'int main()': a.cc:15:25: error: 'iSum' was not declared in this scope 15 | cout << iSum << endl; | ^~~~
s125155227
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:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 3 | int main{ | ^
s689857025
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:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 3 | int main{ | ^
s920658960
p03697
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(0); int a, b; cin >> a >> b; cout << (a + b >= 10 ? "error" : a+b); return 0; }
a.cc: In function 'int main()': a.cc:11:30: error: operands to '?:' have different types 'const char*' and 'int' 11 | cout << (a + b >= 10 ? "error" : a+b); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~
s020145176
p03697
C++
#include"bits/stdc++.h" using namespace std; int main(){ int a,b; cin>>a>>b; cout<<((a+b)<10?to_string(a+b):"error")<<endl;
a.cc: In function 'int main()': a.cc:7:49: error: expected '}' at end of input 7 | cout<<((a+b)<10?to_string(a+b):"error")<<endl; | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s355693780
p03697
C++
#include <iostream> #include <vector> using namespace std; int main() { int a,b; cin>>a>>b; cout<<(a+b >= 10)? "error" : a+b<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:37: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 8 | cout<<(a+b >= 10)? "error" : a+b<<endl; | ~~~^~~~~~
s468082553
p03697
C++
#include <iostream> #include <vector> using namespace std; int main() { int a,b; cin>>a>>b; cout<<a+b>=10? "error" : a+b<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:14: error: no match for 'operator>=' (operand types are 'std::basic_ostream<char>' and 'int') 8 | cout<<a+b>=10? "error" : a+b<<endl; | ~~~~~~~~~^~~~ | | | | | int | std::basic_ostream<char> a.cc:8:14: note: can...
s700197958
p03697
C
#include<stdio.h> Int main(){ Int A,B; scanf("%d%d",&A,&B); A+=B; if(A>10){ printf("error"); }else{ printf("%d",A); } return 0; }
main.c:2:1: error: unknown type name 'Int'; did you mean 'int'? 2 | Int main(){ | ^~~ | int main.c: In function 'main': main.c:3:1: error: unknown type name 'Int'; did you mean 'int'? 3 | Int A,B; | ^~~ | int
s882046449
p03697
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int n = a+b; if(n < 10){ System.out.println(n); }else(n >= 10){ System.out.println("error"); } } }
Main.java:10: error: not a statement }else(n >= 10){ ^ Main.java:10: error: ';' expected }else(n >= 10){ ^ 2 errors
s964434910
p03697
C++
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b; cin >> a >> b; cout << (a + b < 10 ? a + b : "error") << endl; }
a.cc: In function 'int main()': a.cc:7:25: error: operands to '?:' have different types 'int' and 'const char*' 7 | cout << (a + b < 10 ? a + b : "error") << endl; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
s462896155
p03697
C++
#include <iostream> #include <string> #include <algorithm> #include <cmath> 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:7:5: error: cannot declare '::main' to be a global variable 7 | int main{ | ^~~~ a.cc:8:9: error: expected primary-expression before 'int' 8 | int a, b; | ^~~ a.cc:8:9: error: expected '}' before 'int' a.cc:7:9: note: to match this '{' 7 | int main{ | ^ a.c...
s078729745
p03697
Java
public class Atcoder_Virtual_A{ public static void main(String[] args){ Integer a = Integer.parseInt(args[0]); Integer b = Integer.parseInt(args[1]); if(a + b < 10){ System.out.println(a + b); }else{ System.out.println("error"); } } }
Main.java:2: error: class Atcoder_Virtual_A is public, should be declared in a file named Atcoder_Virtual_A.java public class Atcoder_Virtual_A{ ^ 1 error
s592324553
p03697
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <map> #include <stack> #include <cmath> #include <queue> #include <numeric> int main() { int n, m; std::cin >> n >> m; if (n + m >= 10) { std::cout << "error" << std::endl; } else { std::cout << a + b << std::endl; } re...
a.cc: In function 'int main()': a.cc:22:30: error: 'a' was not declared in this scope 22 | std::cout << a + b << std::endl; | ^ a.cc:22:34: error: 'b' was not declared in this scope 22 | std::cout << a + b << std::endl; | ...
s897603975
p03697
C++
#include <bits/stdc++.h> #include <algorithm> #include <stdio.h> #include <math.h> using namespace std; #define INF 1.1e9 #define LINF 1.1e18 #define FOR(i,a,b) for (int i = (a); i < (b); ++i) #define REP(i,n) FOR(i,0,n) #define ALL(v) (v).begin(), (v).end() #define pb push_back #define pf push_front #define fi first ...
a.cc: In function 'int main()': a.cc:44:23: error: operands to '?:' have different types 'const char*' and 'int' 44 | cout<<(a+b>=10?"error":a+b)<<endl; | ~~~~~~~^~~~~~~~~~~~
s110885988
p03697
C++
#include <iostream> using namespace std; int main(){ int a, b; cin >> a >> b; if(a + b < 10){ cout << a + b; << endl; return 0; }else{ cout << "error" << endl; return 0; } }
a.cc: In function 'int main()': a.cc:7:32: error: expected primary-expression before '<<' token 7 | cout << a + b; << endl; | ^~
s626616469
p03697
C++
#include <iostream> int main(){ int a, b; cin >> a >> b; if(a + b < 10){ cout << a + b; << endl; return 0; }else{ cout << "error" << endl; return 0; } }
a.cc: In function 'int main()': a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | 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; ...
s798383387
p03697
C++
#include <iostream> using namespace std; int main(void) { int a, b; cin >> a >> b; int sum = a + b; cout << (sum < 10 ? sum : "error") << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:21: error: operands to '?:' have different types 'int' and 'const char*' 7 | cout << (sum < 10 ? sum : "error") << endl; | ~~~~~~~~~^~~~~~~~~~~~~~~
s777907775
p03697
C++
#include<bits/stdc++.h> 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:13: error: operands to '?:' have different types 'const char*' and 'int' 6 | cout<<(a+b>9?"error":a+b)<<endl; | ~~~~~^~~~~~~~~~~~
s014686974
p03697
C++
#include<bits/c++.h> using namespace std; int main(void){ int A, B; cin >> A >> B; if(A+B >= 10) cout << "error" << endl; else cout << A+B <<endl; return 0; }
a.cc:1:9: fatal error: bits/c++.h: No such file or directory 1 | #include<bits/c++.h> | ^~~~~~~~~~~~ compilation terminated.
s080500093
p03697
C
#include <stdio.h> int main () { int a, b; scanf("%d %d" &a, &b); int c = 0; c = a+b; if (c>=10) printf("error"); else printf("%d", a+b); return 0; }
main.c: In function 'main': main.c:5:16: error: invalid operands to binary & (have 'char *' and 'int') 5 | scanf("%d %d" &a, &b); | ~~~~~~~ ^ | | | char *
s551940730
p03697
C
#include <stdio.h> int main () { int a, b; scanf("%d %d" &a, &b); int c = 0; c = a+b; if (c>=10) printf("error"); else printf("%d", a+b); return 0; }
main.c: In function 'main': main.c:5:16: error: invalid operands to binary & (have 'char *' and 'int') 5 | scanf("%d %d" &a, &b); | ~~~~~~~ ^ | | | char *
s589816911
p03697
C++
#include <iostream> #include <vector> #include <algorithm> #include <cstdio> #include <queue> using namespace std; const int MAX_N = 10000; #define ll long long int N, A, B; vector<int> h; bool enough(int T) { ll cnt = 0; for (int i = 0; i < N; i++) { if (h[i] <= B*T) continue; cnt += (int)ceil((double)(h[i]-B*...
a.cc: In function 'bool enough(int)': a.cc:18:29: error: 'ceil' was not declared in this scope 18 | cnt += (int)ceil((double)(h[i]-B*T) / (A-B)); | ^~~~
s530106053
p03697
C++
A, B = [int(n) for n in input().split()] if A+B < 10: print(A+B) else: print("error")
a.cc:1:1: error: 'A' does not name a type 1 | A, B = [int(n) for n in input().split()] | ^
s989115059
p03697
C++
#include <iostream> #include <math.h> #include <algorithm> #include <vector> #include <numeric> using namespace std; const double PI = acos(-1.0); const string ALP = "abcdefghijklmnopqrstuvwxyz"; #define EXIST(s,e) ((s).find(e)!=(s).end()) #define SORT(c) sort((c).begin(),(c).end()) #define FOR(i,a,b) for(int i=(a);i<(...
a.cc: In function 'int main()': a.cc:16:20: error: operands to '?:' have different types 'int' and 'const char*' 16 | cout << ((a+b<10)?a+b:"error") << endl; | ~~~~~~~~^~~~~~~~~~~~
s612461601
p03697
Java
import java.util.*; public class main { public static void main(String args[]) { Scanner reader = new Scanner(System.in); int a=reader.nextInt(); int b=reader.nextInt(); int c=reader.nextInt(); if((100*a+10*b+c)%4==0) { System.out.println("YES"); } else { System.out.println("NO"); } } }
Main.java:3: error: class main is public, should be declared in a file named main.java public class main ^ 1 error
s653123253
p03697
C++
g#include <bits/stdc++.h> #define REP(i, n) for(int i = 0; i < (int)(n); ++i) #define FOR(i, m, n) for(int i = (m); i < (int)(n); ++i) #define ALL(x) (x).begin(), (x).end() #define INF 2000000000 #ifdef LOCAL #define eprintf(...) fprintf(stdout, __VA_ARGS__) #else #define eprintf(...) 0 #endif using namespace st...
a.cc:1:2: error: stray '#' in program 1 | g#include <bits/stdc++.h> | ^ a.cc:1:1: error: 'g' does not name a type 1 | g#include <bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:21:3: error: 'string' was not declared in this scope 21 | string s; | ^~~~~~ a.cc:22:3: error: 'cin' ...
s450854326
p03697
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i, n) for(int i = 0; i < (n); i++) #define MEM(a, x) memset(a, x, sizeof(a)) #define ALL(a) a.begin(), a.end() #define UNIQUE(a) a.erase(unique(ALL(a)), a.end()) typedef long long ll; int a, b; int main(int argc, char const *argv[]) { ios_base::sync_with_stdi...
a.cc: In function 'int main(int, const char**)': a.cc:14:28: error: operands to '?:' have different types 'const char*' and 'int' 14 | cout << (a+b >= 10 ? "error" : a+b) << endl; | ~~~~~~~~~~^~~~~~~~~~~~~~~
s144565686
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",A+B); } return 0; }
main.c: In function 'main': main.c:6:23: error: stray '\' in program 6 | printf(error\n); | ^ main.c:6:18: error: 'error' undeclared (first use in this function); did you mean 'perror'? 6 | printf(error\n); | ^~~~~ | p...
s046277497
p03697
C++
A, B = map(int, input().split()) print(A+B if A+B < 10 else 'error')
a.cc:3:28: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 3 | print(A+B if A+B < 10 else 'error') | ^~~~~~~ a.cc:1:1: error: 'A' does not name a type 1 | A, B = map(int, input().split()) | ^
s555741300
p03697
C
#include <stdio.h> #include <string.h> int main(void){ char a[26]; int len, i,j; scanf("%s"&a[]); len = strlen(a); for(i=0;i+1<len;i++){ for(j=i+1;j<len;j++){ if(a[i]==a[j]){ printf("no"); return 0; } } } printf("yes"); return 0; }
main.c: In function 'main': main.c:6:14: error: expected expression before ']' token 6 | scanf("%s"&a[]); | ^
s015132663
p03697
C++
#include<cstdio> #include<iostream> using namespace std; int main(void){ int a,b; sin>>a>>b; if(a+b>=10) cout<<"error"<<endl; else cout<<a+b<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'sin' was not declared in this scope 6 | sin>>a>>b; | ^~~
s394908242
p03697
C++
#include<stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); a=a+b; if(a>9) printf("error\n"); else printf("%d",a); retrn 0; }
a.cc: In function 'int main()': a.cc:9:9: error: 'retrn' was not declared in this scope 9 | retrn 0; | ^~~~~
s100039443
p03697
C++
#include<cstdio> #includee<iostream> using namespace std; int main(void){ int a,b; sin>>a>>b; if(a+b>=10) cout<<"error"<<endl; else cout<<a+b<<endl; return 0; }
a.cc:2:2: error: invalid preprocessing directive #includee; did you mean #include? 2 | #includee<iostream> | ^~~~~~~~ | include a.cc: In function 'int main()': a.cc:6:9: error: 'sin' was not declared in this scope; did you mean 'stdin'? 6 | sin>>a>>b; | ^~~ | st...
s935405997
p03697
C++
#include <bits/stdc++.h> #define ll long long using namespace std; int main(void){ int x,y; cin >> x >> y; cout << (x+y < 10) ? (x+y) : "error" << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:39: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<' 7 | cout << (x+y < 10) ? (x+y) : "error" << endl; | ~~~~~~~~^~~~~~~
s731607830
p03697
C++
#include"bits/stdc++.h" #define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++) #define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) RFOR(i,0,n) #define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME #define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)...
a.cc: In function 'void solve()': a.cc:29:9: error: expected '}' before 'else' 29 | else{ | ^~~~ a.cc:27:20: note: to match this '{' 27 | if (a+b<10){ | ^
s060325395
p03697
C++
#include"bits/stdc++.h" #define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++) #define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) RFOR(i,0,n) #define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME #define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)...
a.cc: In function 'void solve()': a.cc:27:37: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(ll)' 27 | cout << (a+b<10?(string)(a+b):"error") << endl; | ^ In file included from /usr/include/c++/14/string:54, f...
s374069414
p03697
C++
#include"bits/stdc++.h" #define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++) #define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) RFOR(i,0,n) #define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME #define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)...
a.cc: In function 'void solve()': a.cc:27:24: error: operands to '?:' have different types 'll' {aka 'long long int'} and 'const char*' 27 | cout << (a+b<10?a+b:"error") << endl; | ~~~~~~^~~~~~~~~~~~
s098031996
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