submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s648905433 | p03813 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
int a;
cin>>a;
if(x<1200)cout<<"ABC"<<endl;
else cout<<"ARC"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:20: error: 'x' was not declared in this scope
9 | if(x<1200)cout<<"ABC"<<endl;
| ^
|
s688750204 | p03813 | C++ | #include <iostream>
int main() {
int x;
while(cin >> x) {
if(x < 1200)
cout << "ABC" << endl;
else
cout << "ARC" << endl;
}
} | a.cc: In function 'int main()':
a.cc:4:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | while(cin >> x) {
| ^~~
| 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; ///< Linked to standard input
| ^~~
a.cc:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
6 | cout << "ABC" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
6 | cout << "ABC" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout << "ARC" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
8 | cout << "ARC" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s478601335 | p03813 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x =sc.nextInt();
if(x<1200)System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
} | Main.java:7: error: illegal start of type
}else{
^
Main.java:11: error: class, interface, enum, or record expected
}
^
2 errors
|
s588177296 | p03813 | Java | import java.util.*;
public class Main {
public static void main(String[] args)
Scanner sc = new Scanner(System.in);
int x =sc.nextInt();
if(x<1200)System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
} | Main.java:3: error: ';' expected
public static void main(String[] args)
^
Main.java:6: error: illegal start of type
if(x<1200)System.out.println("ABC");
^
Main.java:6: error: illegal start of type
if(x<1200)System.out.println("ABC");
^
Main.java:6: error: <identifier> expected
if(x<1200)System.out.println("ABC");
^
Main.java:6: error: illegal start of type
if(x<1200)System.out.println("ABC");
^
Main.java:7: error: class, interface, enum, or record expected
}else{
^
Main.java:9: error: class, interface, enum, or record expected
}
^
7 errors
|
s007021782 | p03813 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int x =sc.nextInt();
if(x<1200)System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
} | Main.java:7: error: illegal start of type
}else{
^
Main.java:11: error: class, interface, enum, or record expected
}
^
2 errors
|
s300667085 | p03813 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int x =sc.nextInt();
if(1200>=x)System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
} | Main.java:7: error: illegal start of type
}else{
^
Main.java:11: error: class, interface, enum, or record expected
}
^
2 errors
|
s632258436 | p03813 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int x =sc.nextInt();
if(1200>=)System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
} | Main.java:6: error: illegal start of expression
if(1200>=)System.out.println("ABC");
^
Main.java:7: error: illegal start of type
}else{
^
Main.java:11: error: class, interface, enum, or record expected
}
^
3 errors
|
s218258276 | p03813 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int x =sc.nextInt();
if(x>=1200)System.out.println("ARC");
}else{
System.out.println("ABC");
}
}
} | Main.java:7: error: illegal start of type
}else{
^
Main.java:11: error: class, interface, enum, or record expected
}
^
2 errors
|
s390960367 | p03813 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int x =sc.nextInt();
if(x>=1200)System.out.println("ARC")
}else{
System.out.println("ABC")
}
} | Main.java:6: error: ';' expected
if(x>=1200)System.out.println("ARC")
^
Main.java:7: error: illegal start of type
}else{
^
Main.java:8: error: ';' expected
System.out.println("ABC")
^
3 errors
|
s913838721 | p03813 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
if(x<1200)
System.out.println("ABC");
else{
system.out.println("ARC");
}
}
} | Main.java:10: error: package system does not exist
system.out.println("ARC");
^
1 error
|
s858075112 | p03813 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
if(x<1200)
System.out.println("ABC");
else{
system.out.println("ARC");
}
| Main.java:11: error: reached end of file while parsing
}
^
1 error
|
s469022107 | p03813 | Java | public class ABC053_A {
public static void main(String[] args){
int x=1000;
if(x<1200){
System.out.println("ABC");
}
else{
System.out.println("ARC");
}
}
} | Main.java:1: error: class ABC053_A is public, should be declared in a file named ABC053_A.java
public class ABC053_A {
^
1 error
|
s117337166 | p03813 | C++ | main(n){scanf("%d",&n);printf("A%cC\n",(n<1200?'B':'R'));}
| a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(n){scanf("%d",&n);printf("A%cC\n",(n<1200?'B':'R'));}
| ^
|
s332497337 | p03813 | C++ | #include<iostream>
#include<algorithm>
#include<climits>
#include<cmath>
#include<cstdio>
#include<cstdlib>
#include<ctime>
#include<string>
#include<cstring>
#include<vector>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<bitset>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<long long, int> ll_i;
#define PI 3.141592653589793238462643383279
#define mod 1000000007LL
#define rep(i, n) for(i = 0;i < n;++i)
#define rep1(i, n) for(i = 1;i < n;++i)
#define per(i, n) for(i = n - 1;i > -1;--i)
#define int(x) int x; scanf("%d",&x)
#define int2(x, y) int x, y; scanf("%d%d",&x, &y)
#define int3(x, y, z) int x, y, z; scanf("%d%d%d",&x, &y, &z)
#define int4(v, x, y, z) int v, x, y, z; scanf("%d%d%d%d", &v, &x, &y, &z)
#define int5(v, w, x, y, z) int v, w, x, y, z; scanf("%d%d%d%d%d", &v, &w, &x, &y, &z)
#define pri(x) cout << (x) << "\n"
#define pri2(x, y) cout << (x) << " " << (y) << "\n"
#define pri3(x, y, z) cout << (x) << " " << (y) << " " << (z) << "\n"
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define kabe puts("---------------------------")
#define kara puts("")
#define debug(x) cout << " --- " << (x) << "\n"
#define debug2(x, y) cout << " --- " << (x) << " " << (y) << "\n"
#define debug3(x, y, z) cout << " --- " << (x) << " " << (y) << " " << (z) << "\n"
#define X first
#define Y second
#define eps 0.0001
#define prid(x) printf("%.15lf\n", x)
signed main(void){
int i, j;
for(int testcase = 0;testcase >= 0;testcase++){
int(n);
puts((x < 1200) ? "ABC" : "ARC");
/*/
//*/ break;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:55:11: error: 'x' was not declared in this scope
55 | puts((x < 1200) ? "ABC" : "ARC");
| ^
|
s004901328 | p03813 | Java | import java.util.*;
public class Main{
public static void main(String atgs[]){
Scanner scan = Scaner(System.in);
int x = scan.nextInt();
if(x<1200){System.out.println("ABC");}
else{System.out.println("ARC");}
}
} | Main.java:4: error: cannot find symbol
Scanner scan = Scaner(System.in);
^
symbol: method Scaner(InputStream)
location: class Main
1 error
|
s390458684 | p03813 | C | #include<stdio.h>
int main()
{
int x;
printf("Input x: ");
while(true)
{
scanf("%d", &x);
if (x <= 3000 && x >= 1)
break;
printf("x is fail (1 <= x <= 3000), please input again: ");
}
if (x >= 1200)
printf("ARC");
else
printf("ABC");
return 0;
}
| main.c: In function 'main':
main.c:6:15: error: 'true' undeclared (first use in this function)
6 | while(true)
| ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
1 | #include<stdio.h>
+++ |+#include <stdbool.h>
2 | int main()
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
6 | while(true)
| ^~~~
|
s833016248 | p03813 | C++ | #include <bits/stdc++.h>
#define ren(i,j,n) for(li i=(j);i<(n);i++)
#define rep(i,n) ren(i,0,(n))
#define all(a) begin(a),end(a)
using namespace std;
typedef long int li;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<string> vs;
int main()
{
int a;
cin>>a;
if(a<1200) cout<<"ABC\n";
else cour<<"ARC\n";
return 0;
}
| a.cc: In function 'int main()':
a.cc:16:10: error: 'cour' was not declared in this scope
16 | else cour<<"ARC\n";
| ^~~~
|
s730315141 | p03813 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a;scanf("%d",&a);
if(a<1200)puts("ABC");
else puts("ARC");
} | a.cc:3:1: error: extended character is not valid in an identifier
3 |
| ^
a.cc:3:1: error: '\U000000a0' does not name a type
3 |
| ^
|
s777845581 | p03813 | C++ | #include<iostream>
using namespace std;
int main()
{
// get a integer
int a;
cin >> a;
if (a < 1200) {
cout << "ABC" << endl;
else
cout << "ARC" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:5: error: expected '}' before 'else'
11 | else
| ^~~~
a.cc:9:19: note: to match this '{'
9 | if (a < 1200) {
| ^
|
s844034405 | p03813 | C++ | #include<iostream>
using namespace std;
int main()
{
// get a integer
int a;
cin >> a;
if (a <= 1200) {
cout << "ABC" << endl;
else
cout << "ARC" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:5: error: expected '}' before 'else'
11 | else
| ^~~~
a.cc:9:20: note: to match this '{'
9 | if (a <= 1200) {
| ^
|
s293364041 | p03813 | C++ | #import"cstdio"
x;
main(){scanf("%d",&x);puts(x<1200?"ABC":"ARC");}
| a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import"cstdio"
| ^~~~~~
a.cc:2:1: error: 'x' does not name a type
2 | x;
| ^
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){scanf("%d",&x);puts(x<1200?"ABC":"ARC");}
| ^~~~
a.cc: In function 'int main()':
a.cc:3:20: error: 'x' was not declared in this scope
3 | main(){scanf("%d",&x);puts(x<1200?"ABC":"ARC");}
| ^
|
s102835414 | p03813 | C++ | import Control.Applicative
import Control.Monad
import qualified Data.ByteString.Char8 as B
import Data.Maybe (fromJust)
import Text.Printf
import Debug.Trace
getInts :: IO [Int]
getInts = map (fst . fromJust . B.readInt) . B.words <$> B.getLine
main = do
[x] <- getInts
putStrLn $ if x < 1200 then "ABC" else "ARC"
| a.cc:1:1: error: 'import' does not name a type
1 | import Control.Applicative
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
|
s897287180 | p03813 | C++ | using namespace std;
int main()
{
// 整数の入力
int a;
cin >> a;
// スペース区切りの整数の入力
//int b,c;
//cin >> b >> c;
// 文字列の入力
string s, t;
//cin >> s;
// 出力
s = "ABC";
t = "ARC";
if(a>=1200)
cout << t << endl;
else
cout << s << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin >> a;
| ^~~
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:11:5: error: 'string' was not declared in this scope
11 | string s, t;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | using namespace std;
a.cc:14:5: error: 's' was not declared in this scope
14 | s = "ABC";
| ^
a.cc:15:5: error: 't' was not declared in this scope
15 | t = "ARC";
| ^
a.cc:17:9: error: 'cout' was not declared in this scope
17 | cout << t << endl;
| ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:22: error: 'endl' was not declared in this scope
17 | cout << t << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | using namespace std;
a.cc:19:9: error: 'cout' was not declared in this scope
19 | cout << s << endl;
| ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:22: error: 'endl' was not declared in this scope
19 | cout << s << endl;
| ^~~~
a.cc:19:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s468138994 | p03813 | C++ | #include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <locale>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <limits>
#include <map>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <istream>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <utility>
#include <vector>
#include <cwchar>
#include <cwctype>
#include <complex.h>
#include <fenv.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <tgmath.h>
#include <conio.h>
using namespace std;
int main()
{
// ios_base::sync_with_stdio(false);
int n;
cin>>n;
cout<<(n<1200?"ABC":"ARC");
return 0;
}
| a.cc:56:10: fatal error: conio.h: No such file or directory
56 | #include <conio.h>
| ^~~~~~~~~
compilation terminated.
|
s382648792 | p03813 | C++ | #include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <locale>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <limits>
#include <map>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <istream>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <utility>
#include <vector>
#include <cwchar>
#include <cwctype>
#include <complex.h>
#include <fenv.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <tgmath.h>
#include <conio.h>
using namespace std;
int main()
{
// ios_base::sync_with_stdio(false);
int n;
cin>>n;
cout<<(n<1200?"ABC":"ARC");
return 0;
}
| a.cc:56:10: fatal error: conio.h: No such file or directory
56 | #include <conio.h>
| ^~~~~~~~~
compilation terminated.
|
s575316197 | p03813 | C++ | #include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <locale>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <limits>
#include <map>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <istream>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <utility>
#include <vector>
#include <cwchar>
#include <cwctype>
#include <complex.h>
#include <fenv.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <tgmath.h>
#include <conio.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
int n;
cin>>n;
cout<<(n<1200?"ABC":"ARC");
return 0;
}
| a.cc:56:10: fatal error: conio.h: No such file or directory
56 | #include <conio.h>
| ^~~~~~~~~
compilation terminated.
|
s830820186 | p03813 | C++ | //Written by Zhu Zeqi
//Come on,baby
//Hack,please
#include<cmath>
#include<math.h>
#include<ctype.h>
#include<algorithm>
#include<bitset>
#include<cassert>
#include<cctype>
#include<cerrno>
#include<cfloat>
#include<ciso646>
#include<climits>
#include<clocale>
#include<complex>
#include<csetjmp>
#include<csignal>
#include<cstdarg>
#include<cstddef>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<cwchar>
#include<cwctype>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<iterator>
#include<limits>
#include<list>
#include<locale>
#include<map>
#include<memory>
#include<new>
#include<numeric>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<typeinfo>
#include<utility>
#include<valarray>
#include<vector>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define pii pair<int,int>
#define vi vector<int>
#define MAX 100000000000000000
#define MOD 1000000007
#define PI 3.141592653589793238462
#define INF 1000000000
typedef long long ll;
using namespace std;
//作者:中国江苏南京朱泽齐
int a;
int main(){
//freopen("input.in","r",stdin);
//freopen("output.out","w",stdout);
cin>>a;
if(a<1200)
cout<<"ABC"<<endl;
else
cout<<"ARC"<<endl
//system("pause");
return 0;
} | a.cc: In function 'int main()':
a.cc:80:26: error: expected ';' before 'return'
80 | cout<<"ARC"<<endl
| ^
| ;
81 | //system("pause");
82 | return 0;
| ~~~~~~
|
s682633547 | p03813 | C++ | import std.stdio, std.conv, std.string;
void main() {
(readln.chomp.to!int < 1200 ? "ABC" : "ARC").writeln;
} | a.cc:1:1: error: 'import' does not name a type
1 | import std.stdio, std.conv, std.string;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: '::main' must return 'int'
3 | void main() {
| ^~~~
a.cc: In function 'int main()':
a.cc:4:6: error: 'readln' was not declared in this scope
4 | (readln.chomp.to!int < 1200 ? "ABC" : "ARC").writeln;
| ^~~~~~
a.cc:4:21: error: expected ')' before '!' token
4 | (readln.chomp.to!int < 1200 ? "ABC" : "ARC").writeln;
| ~ ^
| )
|
s361070794 | p03813 | C++ | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <cmath>
#include <map>
#include <fstream>
#define rep(i,a,n) for(int i=a;i<n;i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
template <typename T>
std::ostream &operator<<(std::ostream &out, const std::vector<T> &v){
if(!v.empty()) {
out << '[';
std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
out << "\b\b]";
}
return out;
}
template <typename T1, typename T2>
std::ostream &operator<<(std::ostream &out, const std::pair<T1, T2> &p) {
out << "[" << p.first << ", " << p.second << "]";
return out;
}
//---------
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
//CLion Standard Input
//--------------------------------------------------------------------------
ifstream in("/Users/ryo/Dropbox/competition/CompetitiveProgramming/in.txt");
cin.rdbuf(in.rdbuf());
//-------------------------------------------------------------------------
int x;
cin >> x;
if(x < 1200){
cout << "ABC" << endl;
}else{
cout << "ARC " << endl;
}
return 0;
} | a.cc: In function 'std::ostream& operator<<(std::ostream&, const std::vector<_Tp>&)':
a.cc:25:44: error: 'ostream_iterator' is not a member of 'std'
25 | std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
| ^~~~~~~~~~~~~~~~
a.cc:14:1: note: 'std::ostream_iterator' is defined in header '<iterator>'; this is probably fixable by adding '#include <iterator>'
13 | #include <fstream>
+++ |+#include <iterator>
14 |
a.cc:25:62: error: expected primary-expression before '>' token
25 | std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
| ^
|
s772487284 | p03813 | C++ | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <cmath>
#include <map>
#include <fstream>
#define rep(i,a,n) for(int i=a;i<n;i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
template <typename T>
std::ostream &operator<<(std::ostream &out, const std::vector<T> &v){
if(!v.empty()) {
out << '[';
std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
out << "\b\b]";
}
return out;
}
template <typename T1, typename T2>
std::ostream &operator<<(std::ostream &out, const std::pair<T1, T2> &p) {
out << "[" << p.first << ", " << p.second << "]";
return out;
}
//---------
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
//CLion Standard Input
//--------------------------------------------------------------------------
ifstream in("/Users/ryo/Dropbox/competition/CompetitiveProgramming/in.txt");
cin.rdbuf(in.rdbuf());
//-------------------------------------------------------------------------
int x;
cin >> x;
if(x < 1200) cout << "ABC" << endl;
else cout << "ARC" << endl;
return 0;
} | a.cc: In function 'std::ostream& operator<<(std::ostream&, const std::vector<_Tp>&)':
a.cc:25:44: error: 'ostream_iterator' is not a member of 'std'
25 | std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
| ^~~~~~~~~~~~~~~~
a.cc:14:1: note: 'std::ostream_iterator' is defined in header '<iterator>'; this is probably fixable by adding '#include <iterator>'
13 | #include <fstream>
+++ |+#include <iterator>
14 |
a.cc:25:62: error: expected primary-expression before '>' token
25 | std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
| ^
|
s351078393 | p03813 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException.;
public class Main {
public static void main (String args[]){
BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
String line;
try {
line = reader.readLine();
int number = Integer.parseInt(line);
if (number<1200){
System.out.print("ABC");
} else {
System.out.print("ARC");
}
}catch (IOException e){
System.out.print(e);
}catch (NumberFormatException e){
System.out.print("数字のみ");
}
}
} | Main.java:3: error: <identifier> expected
import java.io.IOException.;
^
1 error
|
s553409041 | p03813 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main (String args[]){
BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
String line;
try {
line = reader.readLine();
int number = Integer.parseInt(line);
if (number<1200){
System.out.print("ABC");
} else {
System.out.print("ARC");
}
}catch (IOException e){
System.out.print(e);
}catch (NumberFormatException e){
System.out.print("数字のみ");
}
}
} | Main.java:18: error: cannot find symbol
}catch (IOException e){
^
symbol: class IOException
location: class Main
1 error
|
s742416541 | p03813 | Java | import java.util.*;
public class Main {
public static void main (String args[]){
BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
String line;
try {
line = reader.readLine();
int number = Integer.parseInt(line);
if (number<1200){
System.out.println("ABC");
} else {
System.out.println("ARC");
}
}catch (IOException e){
System.out.println(e);
}
}
}
| Main.java:6: error: cannot find symbol
BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:6: error: cannot find symbol
BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:6: error: cannot find symbol
BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
^
symbol: class InputStreamReader
location: class Main
Main.java:17: error: cannot find symbol
}catch (IOException e){
^
symbol: class IOException
location: class Main
4 errors
|
s460495450 | p03813 | Java | import java.util.*;
public class Main {
public static void main (args[]){
BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
String line;
try {
line = reader.readLine();
int number = Integer.parseInt(line);
if (number<1200){
System.out.println("ABC");
} else {
System.out.println("ARC");
}
}catch (IOException e){
System.out.println(e);
}
}
}
| Main.java:4: error: <identifier> expected
public static void main (args[]){
^
1 error
|
s266922175 | p03813 | C++ | import java.util.*;
public class Main {
BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
String line;
try {
line = reader.readLine();
int number = Integer.parseInt(line);
if (number<1200){
System.out.println("ABC");
} else {
System.out.println("ARC");
}
}catch (IOException e){
System.out.println(e);
}
}
| a.cc:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s342111152 | p03813 | C++ | #import<iostream>
main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";} | a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<iostream>
| ^~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";}
| ^~~~
a.cc:2:1: warning: 'int main(int)' takes only zero or two arguments [-Wmain]
a.cc: In function 'int main(int)':
a.cc:2:37: error: 'hoge' was not declared in this scope
2 | main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";}
| ^~~~
|
s829746087 | p03813 | C++ | #import<iostream>
main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";} | a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<iostream>
| ^~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";}
| ^~~~
a.cc:2:1: warning: 'int main(int)' takes only zero or two arguments [-Wmain]
a.cc: In function 'int main(int)':
a.cc:2:37: error: 'hoge' was not declared in this scope
2 | main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";}
| ^~~~
|
s193073501 | p03813 | C | #include <stdio.h>
int main()
{
int x;
if(x < 1200){printf(ABC\n);}
else{printf(ARC\n);}
return 0;
]
| main.c: In function 'main':
main.c:6:32: error: stray '\' in program
6 | if(x < 1200){printf(ABC\n);}
| ^
main.c:6:29: error: 'ABC' undeclared (first use in this function)
6 | if(x < 1200){printf(ABC\n);}
| ^~~
main.c:6:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:32: error: expected ')' before 'n'
6 | if(x < 1200){printf(ABC\n);}
| ~ ^~
| )
main.c:7:24: error: stray '\' in program
7 | else{printf(ARC\n);}
| ^
main.c:7:21: error: 'ARC' undeclared (first use in this function)
7 | else{printf(ARC\n);}
| ^~~
main.c:7:24: error: expected ')' before 'n'
7 | else{printf(ARC\n);}
| ~ ^~
| )
main.c:9:1: error: expected statement before ']' token
9 | ]
| ^
main.c:9:1: error: expected declaration or statement at end of input
|
s465334680 | p03813 | Java | import java.io.*;
public class Main {
private static MyScanner scanner;
public static void main (String[] args){
Main instance = new Main();
scanner = instance.new MyScanner();
instance.solve();
}
private void solve() {
try {
long min_point = scanner.nextLong();
long mod_min_point = min_point % 11;
if ( 6 < mod_min_point < 6) {
System.out.println(2*(min_point/11) + 2);
} else if (0 < mod_min_point){
System.out.println(2*(min_point/11) + 1);
} else if (mod_min_point == 0){
System.out.println(2*(min_point/11));
}
} catch (Exception e) {
e.printStackTrace();
}
}
private class MyScanner {
String[] s;
int i;
BufferedReader br;
String reg = " ";
MyScanner () {
s = new String[0];
i = 0;
br = new BufferedReader(new InputStreamReader(System.in));
}
public String next() throws IOException {
if (i < s.length) return s[i++];
String line = br.readLine();
while (line.equals("")) {
line = br.readLine();
}
s = line.split(reg, 0);
i = 0;
return s[i++];
}
public int nextInt() throws NumberFormatException, IOException {
return Integer.parseInt(next());
}
public double nextDouble() throws NumberFormatException, IOException {
return Double.parseDouble(next());
}
public long nextLong() throws NumberFormatException, IOException {
return Long.parseLong(next());
}
}
} | Main.java:15: error: bad operand types for binary operator '<'
if ( 6 < mod_min_point < 6) {
^
first type: boolean
second type: int
1 error
|
s158840855 | p03813 | Java | public class Main {
public static void main(String ...args) {
Scanner sc = new Scanner(System.in);
System.out.println(sc.nextInt() > 1200 ? "ARC" : "ABC");
}
} | 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
|
s948594397 | p03813 | Java | public class Main {
public static void main(String args...) {
Scanner sc = new Scanner(System.in);
System.out.println(sc.nextInt() > 1200 ? "ARC" : "ABC");
}
} | Main.java:2: error: ',', ')', or '[' expected
public static void main(String args...) {
^
1 error
|
s859903493 | p03813 | C | #include<stdio.h>
int main()
{
int x;
scanf("%d",&x);
if(1200<=x){
printf("ARC");
}else{
printf("ABC");
}
| main.c: In function 'main':
main.c:10:1: error: expected declaration or statement at end of input
10 | }
| ^
|
s188871579 | p03813 | C | #include<stdio.h>
int main
{
int x;
scanf("%d",&x);
if(1200<=x){
printf("ARC");
}else{
printf("ABC");
}
} | main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
3 | {
| ^
|
s103083234 | p03813 | C++ | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author Yulian
*/
#include <iostream>
#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <cmath>
#include <queue>
#include <deque>
#include <string>
#include <algorithm>
#include <map>
#include "../../library/lib.hpp"
#include <iostream>
int getTheAnswer() {
return 42;
}
template< class InputIt>
void incAll(const InputIt &first, const InputIt &last){
for(auto it = first; it != last; ++it){
++*it;
}
}
template <class InputIt>
void printAll(const InputIt &first, const InputIt &last, std::ostream& out){
for(InputIt it = first; it != last; ++it){
out << *it << " ";
}
}
// only for positive integers
int gcd(int a, int b){
int tmp;
if(a < b){
tmp = a;
a = b;
b = tmp;
}
while(b != 0){
tmp = a;
a = b;
b = tmp % b;
}
return a;
}
int lcm(int a, int b){
return abs(a*b) / gcd(a, b);
}
using namespace std;
class TaskA {
public:
void solve(std::istream& in, std::ostream& out) {
ios::sync_with_stdio(false);
vector<int> x(1);
in >> x[0];
if(x[0] < 1200){
out << "ABC" << endl;
}else{
out << "ARC" << endl;
}
}
};
int main() {
TaskA solver;
std::istream& in(std::cin);
std::ostream& out(std::cout);
solver.solve(in, out);
return 0;
}
| a.cc:18:10: fatal error: ../../library/lib.hpp: No such file or directory
18 | #include "../../library/lib.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s305955030 | p03813 | C++ | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author Yulian
*/
#include <iostream>
int getTheAnswer() {
return 42;
}
template<class InputIt>
void incAll(const InputIt &first, const InputIt &last) {
for (auto it = first; it != last; ++it) {
++*it;
}
}
template<class InputIt>
void printAll(const InputIt &first, const InputIt &last, std::ostream &out) {
for (InputIt it = first; it != last; ++it) {
out << *it << " ";
}
}
// only for positive integers
int gcd(int a, int b) {
int tmp;
if (a < b) {
tmp = a;
a = b;
b = tmp;
}
while (b != 0) {
tmp = a;
a = b;
b = tmp % b;
}
return a;
}
int lcm(int a, int b) {
return abs(a * b) / gcd(a, b);
}
using namespace std;
class TaskA {
public:
void solve(std::istream &in, std::ostream &out) {
ios::sync_with_stdio(false);
vector<int> x(1);
in >> x[0];
if (x[0] < 1200) {
out << "ABC" << endl;
} else {
out << "ARC" << endl;
}
}
};
int main() {
TaskA solver;
std::istream &in(std::cin);
std::ostream &out(std::cout);
solver.solve(in, out);
return 0;
}
| a.cc: In member function 'void TaskA::solve(std::istream&, std::ostream&)':
a.cc:57:5: error: 'vector' was not declared in this scope
57 | vector<int> x(1);
| ^~~~~~
a.cc:10:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
9 | #include <iostream>
+++ |+#include <vector>
10 |
a.cc:57:12: error: expected primary-expression before 'int'
57 | vector<int> x(1);
| ^~~
a.cc:58:11: error: 'x' was not declared in this scope
58 | in >> x[0];
| ^
|
s158376518 | p03813 | C++ | #include<iostream>
using namespace std;
int main()
{
int x;
cin >> x;
cout << x < 1200 ? "ABC" : "ARC" << endl;
} | a.cc: In function 'int main()':
a.cc:7:15: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int')
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ~~~~~~~~~ ^ ~~~~
| | |
| | int
| std::basic_ostream<char>
a.cc:7:15: note: candidate: 'operator<(int, int)' (built-in)
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ~~~~~~~~~~^~~~~~
a.cc:7:15: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:7:38: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
7 | cout << x < 1200 ? "ABC" : "ARC" << endl;
| ~~~~~~^~~~~~~
|
s479409796 | p03813 | C++ | #include <iostream>
using namespace std;
int main()
{
int rate;
cin >> rate;
if(rate < 1200) {
cout >> "ABC"
} else {
cout >> "ARC"
}
}
| a.cc: In function 'int main()':
a.cc:10:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
10 | cout >> "ABC"
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> "ABC"
| ^~~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:10:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
10 | cout >> "ABC"
| ^~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/iostream:42:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> "ABC"
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
10 | cout >> "ABC"
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
10 | cout >> "ABC"
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> "ABC"
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
10 | cout >> "ABC"
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:10:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
10 | cout >> "ABC"
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[4]]':
a.cc:10:13: required from here
10 | cout >> "ABC"
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
a.cc:12:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
12 | cout >> "ARC"
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:12:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
12 | cout >> "ARC"
| ^~~~~
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:12:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
12 | cout >> "ARC"
| ^~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:12:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
12 | cout >> "ARC"
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:12:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
12 | cout >> "ARC"
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:12:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
12 | cout >> "ARC"
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:12:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
12 | cout >> "ARC"
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:12:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
|
s702763249 | p03813 | C++ | #include <iostream>
using namespace std;
int main()
{
int rate;
cin >> rate;
if(rate < 1200) {
cout "ABC"
} else {
cout "ARC"
}
}
| a.cc: In function 'int main()':
a.cc:10:9: error: expected ';' before string constant
10 | cout "ABC"
| ^~~~~~
| ;
a.cc:12:9: error: expected ';' before string constant
12 | cout "ARC"
| ^~~~~~
| ;
|
s728561578 | p03813 | C++ | #include <stdio.h>
void main (){
int x;
scanf("%d",&x);
if(x>1200&&x<3000)
printf("ARC");
else if(x>0)
printf("ABC");
return ;
} | a.cc:3:1: error: '::main' must return 'int'
3 | void main (){
| ^~~~
a.cc: In function 'int main()':
a.cc:10:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
10 | return ;
| ^~~~~~
|
s811942753 | p03813 | C | #include<stdio.h>
int main()
{
int x;
scnf("%d",&x);
if(x<1200) {
printf("ABC");
}
else//x>1200)
{
printf("ARC");
}
return 0;
}
| main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | scnf("%d",&x);
| ^~~~
| scanf
|
s252404111 | p03813 | C | #include<stdio.h>
int main()
{
int x;
scnf("%d",&x);
if(x<1200)
printf("ABC");
else//x>1200)
{
printf("ARC");
}
}
| main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | scnf("%d",&x);
| ^~~~
| scanf
|
s534198924 | p03813 | C++ |
#include<stdio.h>
int main(){
int a;
scanf("%d",&a);
if(a<1200)
printf("ABC");
else if(a>1200)
printf("ARC");
return 0;
}
#include<stdio.h>
int main(){
int a;
scanf("%d",&a);
if(a<1200)
printf("ABC");
else if(a>1200)
printf("ARC");
return 0;
}
| a.cc:23:9: error: redefinition of 'int main()'
23 | int main(){
| ^~~~
a.cc:5:9: note: 'int main()' previously defined here
5 | int main(){
| ^~~~
|
s940635421 | p03813 | Java | import java.math.*;
import java.io.*;
import java.util.*;
import java.lang.*;
public class number {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
int n=s.nextInt();
if(n<1200) System.out.println("ABC");
else System.out.println("ARC");
}
} | Main.java:7: error: class number is public, should be declared in a file named number.java
public class number {
^
1 error
|
s878539406 | p03813 | C++ | input = $<.gets.chomp.to_i
puts (input < 1200) ? "ABC" : "ARC" | a.cc:1:1: error: 'input' does not name a type; did you mean 'int'?
1 | input = $<.gets.chomp.to_i
| ^~~~~
| int
|
s289427273 | p03813 | C | #include<stdio.h>
int main(void)
{
int x=0;
scanf("%d",&x);
if(1<=x && x<=3000)
{}
else{}
if(1<=x && x<=1200)
{
printf("ABC\n");
}
if(1201<=x && x<=3000)
{
printf("ARC\n");
return 0;
} | main.c: In function 'main':
main.c:21:1: error: expected declaration or statement at end of input
21 | }
| ^
|
s555994153 | p03813 | C | #include<stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
if(1<=x && x<=3000)
{}
else{}
if(1<=x && x<=1200)
{
printf("ABC\n");
}
if(1201<=x && x<=3000)
{
printf("ARC\n");
return 0;
} | main.c: In function 'main':
main.c:21:1: error: expected declaration or statement at end of input
21 | }
| ^
|
s688091539 | p03813 | C | #include<stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
if(1<=x && x<=3000)
{}
else{}
if(1<=x && x<=1200)
{
printf("ABC\n",x);
}
if(1201<=x && x<=3000)
{
printf("ARC\n",x);
return 0;
} | main.c: In function 'main':
main.c:21:1: error: expected declaration or statement at end of input
21 | }
| ^
|
s028728237 | p03813 | C++ | #include <bits/stdc++.h>
int main(){
int x; cin >> x;
std::cout << ((x < 1200) ? "ABC" : "ARC") << std::endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:3:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
3 | int x; cin >> x;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
|
s459166364 | p03813 | Java | import java.io.InputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import java.io.IOException;
import java.math.BigInteger;
import java.util.*;
import java.util.stream.Stream;
/**
*
* @author Pradyumn Agrawal coderbond007
*/
public class Main{
public static InputStream inputStream = System.in;
public static FastReader in = new FastReader(inputStream);
public static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
public static void main(String[] args)throws java.lang.Exception
{
new Main().run();
out.close();
}
void run() throws java.lang.Exception
{
int n = ni();
if(x < 1200){
out.println("ABC");
} else {
out.println("ARC");
}
}
private static int ni(){
return in.nextInt();
}
private static long nl(){
return in.nextLong();
}
private static String ns(){
return in.nextString();
}
private static char nc(){
return in.nextCharacter();
}
private static double nd(){
return in.nextDouble();
}
private static char[] ns(int n)
{
char[] a = new char[n];
for(int i=0;i<n;i++) a[i] = nc();
return a;
}
private static char[][] nm(int n, int m)
{
char[][] map = new char[n][];
for(int i=0;i<n;i++) map[i] = ns(m);
return map;
}
private static int[] na(int n)
{
int[] a = new int[n];
for(int i=0;i<n;i++) a[i] = ni();
return a;
}
private static long[] nal(int n)
{
long[] a = new long[n];
for(int i=0;i<n;i++) a[i] = nl();
return a;
}
//private void tr(Object... o) { if(o.length() > 0)System.out.println(Arrays.deepToString(o)); }
}
class FastReader{
private boolean finished = false;
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private SpaceCharFilter filter;
public FastReader(InputStream stream){
this.stream = stream;
}
public int read(){
if (numChars == -1){
throw new InputMismatchException ();
}
if (curChar >= numChars){
curChar = 0;
try{
numChars = stream.read (buf);
} catch (IOException e){
throw new InputMismatchException ();
}
if (numChars <= 0){
return -1;
}
}
return buf[curChar++];
}
public int peek(){
if (numChars == -1){
return -1;
}
if (curChar >= numChars){
curChar = 0;
try{
numChars = stream.read (buf);
} catch (IOException e){
return -1;
}
if (numChars <= 0){
return -1;
}
}
return buf[curChar];
}
public int nextInt(){
int c = read ();
while (isSpaceChar (c))
c = read ();
int sgn = 1;
if (c == '-'){
sgn = -1;
c = read ();
}
int res = 0;
do{
if(c==','){
c = read();
}
if (c < '0' || c > '9'){
throw new InputMismatchException ();
}
res *= 10;
res += c - '0';
c = read ();
} while (!isSpaceChar (c));
return res * sgn;
}
public long nextLong(){
int c = read ();
while (isSpaceChar (c))
c = read ();
int sgn = 1;
if (c == '-'){
sgn = -1;
c = read ();
}
long res = 0;
do{
if (c < '0' || c > '9'){
throw new InputMismatchException ();
}
res *= 10;
res += c - '0';
c = read ();
} while (!isSpaceChar (c));
return res * sgn;
}
public String nextString(){
int c = read ();
while (isSpaceChar (c))
c = read ();
StringBuilder res = new StringBuilder ();
do{
res.appendCodePoint (c);
c = read ();
} while (!isSpaceChar (c));
return res.toString ();
}
public boolean isSpaceChar(int c){
if (filter != null){
return filter.isSpaceChar (c);
}
return isWhitespace (c);
}
public static boolean isWhitespace(int c){
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
private String readLine0(){
StringBuilder buf = new StringBuilder ();
int c = read ();
while (c != '\n' && c != -1){
if (c != '\r'){
buf.appendCodePoint (c);
}
c = read ();
}
return buf.toString ();
}
public String nextLine(){
String s = readLine0 ();
while (s.trim ().length () == 0)
s = readLine0 ();
return s;
}
public String nextLine(boolean ignoreEmptyLines){
if (ignoreEmptyLines){
return nextLine ();
}else{
return readLine0 ();
}
}
public BigInteger nextBigInteger(){
try{
return new BigInteger (nextString());
} catch (NumberFormatException e){
throw new InputMismatchException ();
}
}
public char nextCharacter(){
int c = read ();
while (isSpaceChar (c))
c = read ();
return (char) c;
}
public double nextDouble(){
int c = read ();
while (isSpaceChar (c))
c = read ();
int sgn = 1;
if (c == '-'){
sgn = -1;
c = read ();
}
double res = 0;
while (!isSpaceChar (c) && c != '.'){
if (c == 'e' || c == 'E'){
return res * Math.pow (10, nextInt ());
}
if (c < '0' || c > '9'){
throw new InputMismatchException ();
}
res *= 10;
res += c - '0';
c = read ();
}
if (c == '.'){
c = read ();
double m = 1;
while (!isSpaceChar (c)){
if (c == 'e' || c == 'E'){
return res * Math.pow (10, nextInt ());
}
if (c < '0' || c > '9'){
throw new InputMismatchException ();
}
m /= 10;
res += (c - '0') * m;
c = read ();
}
}
return res * sgn;
}
public boolean isExhausted(){
int value;
while (isSpaceChar (value = peek ()) && value != -1)
read ();
return value == -1;
}
public SpaceCharFilter getFilter(){
return filter;
}
public void setFilter(SpaceCharFilter filter){
this.filter = filter;
}
public interface SpaceCharFilter{
public boolean isSpaceChar(int ch);
}
} | Main.java:27: error: cannot find symbol
if(x < 1200){
^
symbol: variable x
location: class Main
1 error
|
s966774089 | p03813 | C++ | #include <stdio.h>
#include <string.h>
char str[3000000];
int main(){
scanf("%s",str);
int l,r;
int i;
int rr;
for(i=0;str[i] != \0; i++) {
rr = i;
if( str[i] == 'Z' ) r = i ;
}
for(i=rr; i>=0; i--){
if(str[i] == 'A') l = i;
}
printf("%d\n",r - l + 1);
return 0;
} | a.cc:9:23: error: stray '\' in program
9 | for(i=0;str[i] != \0; i++) {
| ^
|
s478094868 | p03813 | C++ | x = int(input())
if(x < 1200):
print 'ABC'
else:
print 'ARC' | a.cc:4:15: warning: multi-character character constant [-Wmultichar]
4 | print 'ABC'
| ^~~~~
a.cc:6:15: warning: multi-character character constant [-Wmultichar]
6 | print 'ARC'
| ^~~~~
a.cc:1:1: error: 'x' does not name a type
1 | x = int(input())
| ^
|
s644977152 | p03813 | C | include <stdio.h>
int main(){
int x;
scanf("%d",&x);
printf( x < 1200 ? "ABC" : "ARC");
return 0;
} | main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s692206114 | p03813 | C | #include <stdio.h>
int main(){
int x;
scanf'("%d",&x);
printf( x <= 1200 ? "ABC" : "ARC");
return 0;
} | main.c: In function 'main':
main.c:4:10: warning: missing terminating ' character
4 | scanf'("%d",&x);
| ^
main.c:4:10: error: missing terminating ' character
4 | scanf'("%d",&x);
| ^~~~~~~~~~~
main.c:4:10: error: expected ';' before 'printf'
4 | scanf'("%d",&x);
| ^
| ;
5 | printf( x <= 1200 ? "ABC" : "ARC");
| ~~~~~~
|
s482089606 | p03813 | C++ | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if(n < 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
}
| a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s019652552 | p03813 | C++ | package sg20170129;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if(n < 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
}
| a.cc:1:1: error: 'package' does not name a type
1 | package sg20170129;
| ^~~~~~~
a.cc:3:1: error: 'import' does not name a type
3 | import java.util.Scanner;
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
5 | public class Main {
| ^~~~~~
|
s136396572 | p03813 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace yukicode001
{
class Program
{
static void Main()
{
Program pg = new Program();
string word = Console.ReadLine();
int a = word
.Select((content, index) => new
{
Index = index,
Content = content
})
.Where(x => x.Content == 'a')
.Select(x => x.Index)
.First();
int z = word
.Select((content, index) => new
{
Index = index,
Content = content
})
.Where(x => x.Content == 'z')
.Select(x => x.Index)
.First();
var new_word = word.Skip(a).Take(z - a + 1).Count();
Console.WriteLine(new_word);
//Console.WriteLine(z);
}
}
}
| 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.Linq;
| ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
4 | using System.Text;
| ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
5 | using System.Threading.Tasks;
| ^~~~~~
a.cc:44:6: error: expected ';' after class definition
44 | }
| ^
| ;
a.cc: In static member function 'static void yukicode001::Program::Main()':
a.cc:13:26: error: conversion from 'yukicode001::Program*' to non-scalar type 'yukicode001::Program' requested
13 | Program pg = new Program();
| ^~~~~~~~~~~~~
a.cc:14:13: error: 'string' was not declared in this scope
14 | string word = Console.ReadLine();
| ^~~~~~
a.cc:16:21: error: 'word' was not declared in this scope
16 | int a = word
| ^~~~
a.cc:17:26: error: 'content' was not declared in this scope; did you mean 'const'?
17 | .Select((content, index) => new
| ^~~~~~~
| const
a.cc:17:35: error: 'index' was not declared in this scope
17 | .Select((content, index) => new
| ^~~~~
a.cc:17:43: error: expected primary-expression before '>' token
17 | .Select((content, index) => new
| ^
a.cc:18:17: error: expected type-specifier before '{' token
18 | {
| ^
a.cc:19:21: error: 'Index' was not declared in this scope
19 | Index = index,
| ^~~~~
a.cc:20:21: error: 'Content' was not declared in this scope
20 | Content = content
| ^~~~~~~
a.cc:22:24: error: 'x' was not declared in this scope
22 | .Where(x => x.Content == 'a')
| ^
a.cc:22:27: error: expected primary-expression before '>' token
22 | .Where(x => x.Content == 'a')
| ^
a.cc:23:28: error: expected primary-expression before '>' token
23 | .Select(x => x.Index)
| ^
a.cc:27:43: error: expected primary-expression before '>' token
27 | .Select((content, index) => new
| ^
a.cc:28:17: error: expected type-specifier before '{' token
28 | {
| ^
a.cc:32:27: error: expected primary-expression before '>' token
32 | .Where(x => x.Content == 'z')
| ^
a.cc:33:28: error: expected primary-expression before '>' token
33 | .Select(x => x.Index)
| ^
a.cc:36:13: error: 'var' was not declared in this scope
36 | var new_word = word.Skip(a).Take(z - a + 1).Count();
| ^~~
a.cc:38:13: error: 'Console' was not declared in this scope
38 | Console.WriteLine(new_word);
| ^~~~~~~
a.cc:38:31: error: 'new_word' was not declared in this scope
38 | Console.WriteLine(new_word);
| ^~~~~~~~
|
s005226213 | p03813 | C | #include<stdio.h>
int main(void){
int x;
scanf("%d,"&x);
if (x < 1200)
printf("ABC\n");
else
printf("ARC\n");
return 0;
}
| main.c: In function 'main':
main.c:5:20: error: invalid operands to binary & (have 'char *' and 'int')
5 | scanf("%d,"&x);
| ~~~~~^
| |
| char *
|
s439060139 | p03813 | C++ | #include<stdio.h>
int main(void){
int x;
scanf("%d",x);
if (x < 1200)
print("ABC\n");
else
printf("ARC\n");
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:9: error: 'print' was not declared in this scope; did you mean 'printf'?
7 | print("ABC\n");
| ^~~~~
| printf
|
s455451272 | p03813 | C | #include<stdio.h>
int main(void){
int x;
scanf("%d",x);
if (x < 1200)
print("ABC\n");
else
printf("ARC\n");
return 0;
}
| main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
7 | print("ABC\n");
| ^~~~~
| printf
|
s787181904 | p03813 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int a = sc.nextInt();
if(a<1200){
System.out.println("ABC");
return
}
// 出力
System.out.println("ARC");
}
}
}
| Main.java:10: error: illegal start of expression
}
^
Main.java:15: error: class, interface, enum, or record expected
}
^
2 errors
|
s834978994 | p03813 | C++ | x = int(input())
if x < 1200:
print("ABC")
else:
print("ARC")
| a.cc:1:1: error: 'x' does not name a type
1 | x = int(input())
| ^
|
s637726759 | p03813 | C++ | #include <iostream>
using namespace std;
int main() {
long long int x;
cin >> x;
if (x <= 6) {
cout << 1 << endl;
} else if (x > 6 && x <= 12) {
cout << 2 << endl;
// aaa }
} else {
long long int ans = ((x - 1) / 11) * 2;
// printf("%lld\n", ans);
int mod = (x - 1) % 11;
// printf("%d\n", mod);
// printf("%lld // 11 = %d", x - 1, mod);
if (mod != 2 && mod != 5 && mod <= 6) {
cout << ans + 1 << endl;
} else if (mod == 2 || mod == 5) {
cout << ans + 2 << endl;
} else if (mod > 6 &&) {
cout << ans + 2 << endl;
}
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:22:26: error: expected primary-expression before ')' token
22 | } else if (mod > 6 &&) {
| ^
|
s891243402 | p03813 | Java | public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
if (1 <= a && a <= 3000) {
if (a < 1200) {
System.out.println("ABC");
} else {
System.out.println("ARC");
}
}
}
} | Main.java:3: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s363285421 | p03813 | Java | public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
if (1 <= a && a <= 3000) {
if (a < 1200) {
System.out.println("ABC");
} else {
System.out.println("ARC");
}
}
}
| Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
|
s377260196 | p03813 | C | #include<stdio.h>
#include<string.h>
int main()
{
char s[200000];
scanf("%s",s);
int i;
while(s[i]!=A)
{
i++;
}
int t=i;
while(s[t]!=Z)
{
t++;
}
printf("%d",t-i+1);
return 0;
}
| main.c: In function 'main':
main.c:8:15: error: 'A' undeclared (first use in this function)
8 | while(s[i]!=A)
| ^
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:15: error: 'Z' undeclared (first use in this function)
13 | while(s[t]!=Z)
| ^
|
s299016173 | p03813 | C++ | #include <stdio.h>
#include <string.h>
int main(void) {
int x;
char s[101];
scanf("%d", &x);
if(x >= 0 && x < 1200){
strncat(s, "ABC");
}else if(x >= 1200){
strncat(s, "ARC");
}
printf("%s\n", s);
return 0;
} | a.cc: In function 'int main()':
a.cc:11:24: error: too few arguments to function 'char* strncat(char*, const char*, size_t)'
11 | strncat(s, "ABC");
| ~~~~~~~^~~~~~~~~~
In file included from a.cc:2:
/usr/include/string.h:152:14: note: declared here
152 | extern char *strncat (char *__restrict __dest, const char *__restrict __src,
| ^~~~~~~
a.cc:13:24: error: too few arguments to function 'char* strncat(char*, const char*, size_t)'
13 | strncat(s, "ARC");
| ~~~~~~~^~~~~~~~~~
/usr/include/string.h:152:14: note: declared here
152 | extern char *strncat (char *__restrict __dest, const char *__restrict __src,
| ^~~~~~~
|
s789604427 | p03813 | Java | package com.company.abc053;
import java.io.*;
import java.util.Scanner;
/**
* Created by ueda on 2017/01/28.
*/
public class A {
public static void main(String[] args) {
out.println(in.nextInt() < 1200 ? "ABC" : "ARC");
}
public static final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
public static final PrintStream out = System.out;
}
| Main.java:9: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s522616521 | p03813 | C | #include<stdio.h>
2.int main()
3.{
4. int x;
5. scanf("%d",&x);
6. if(x<1200)
7. printf("ABC");
8. else
9. printf("ARC");
10. return 0;
11.}
| main.c:2:1: error: invalid suffix "int" on floating constant
2 | 2.int main()
| ^~~~~
main.c:2:1: error: expected identifier or '(' before numeric constant
|
s867430253 | p03813 | C++ | #include<stdio.h>
int main()
{
int x;
scanf("%d",&x);
if(x1200)
printf("ABC");
else
printf("ARC");
return 0;
} | a.cc: In function 'int main()':
a.cc:6:6: error: 'x1200' was not declared in this scope
6 | if(x1200)
| ^~~~~
|
s955227366 | p03813 | C++ | #include <iostream>
using namespace std;
int main()
{
int x;
cin >> x;
if(x>3000){
return 0;
} | a.cc: In function 'int main()':
a.cc:11:4: error: expected '}' at end of input
11 | }
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s333160480 | p03813 | C++ | #include <iostream>
#include <vector>
using namespace std;
#define debug(x) cout << #x << "==" << x << endl;
const int inf = 100000000;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
int X;
cin >> X;#include <iostream>
#include <vector>
using namespace std;
#define debug(x) cout << #x << "==" << x << endl;
const int inf = 100000000;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
int X;
cin >> X;
if( X < 1200) {
cout << "ABC\n";
} else if ( X >= 1200 ) {
cout << "ARC\n";
}
return 0;
}
if( X < 1200) {
cout << "ABC\n";
} else if ( X >= 1200 ) {
cout << "ARC\n";
}
return 0;
}
| a.cc:16:12: error: stray '#' in program
16 | cin >> X;#include <iostream>
| ^
a.cc: In function 'int main()':
a.cc:16:13: error: 'include' was not declared in this scope
16 | cin >> X;#include <iostream>
| ^~~~~~~
a.cc:16:30: error: expected primary-expression before '>' token
16 | cin >> X;#include <iostream>
| ^
a.cc:19:1: error: expected primary-expression before 'using'
19 | using namespace std;
| ^~~~~
a.cc:27:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
27 | int main() {
| ^~
a.cc:27:9: note: remove parentheses to default-initialize a variable
27 | int main() {
| ^~
| --
a.cc:27:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:27:12: error: a function-definition is not allowed here before '{' token
27 | int main() {
| ^
|
s478484234 | p03813 | C++ | #include <stdio.h>
int main(){
ilong long x;
scanf("%lld", &x);
printf(x>1200?"ARC":"ABC");
return 0;
}
| a.cc: In function 'int main()':
a.cc:3:1: error: 'ilong' was not declared in this scope; did you mean 'long'?
3 | ilong long x;
| ^~~~~
| long
a.cc:4:16: error: 'x' was not declared in this scope
4 | scanf("%lld", &x);
| ^
|
s478694420 | p03813 | C++ | #include <stdio.h>
int main(){
int x;
scanf("%d", &x);
printf("x>1200?"ARC":"ABC");
return 0;
} | a.cc:5:26: warning: missing terminating " character
5 | printf("x>1200?"ARC":"ABC");
| ^
a.cc:5:26: error: missing terminating " character
5 | printf("x>1200?"ARC":"ABC");
| ^~~
a.cc: In function 'int main()':
a.cc:5:20: error: inconsistent user-defined literal suffixes 'ARC' and 'ABC' in string literal
5 | printf("x>1200?"ARC":"ABC");
| ^~~~~~
a.cc:5:20: error: unable to find string literal operator 'operator""ARC' with 'const char [9]', 'long unsigned int' arguments
|
s117584045 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
scanf("%d", &t);
string ans = t < 1200 ? 'ABC' : 'ARC';
cout << ans << endl;
return 0;
} | a.cc:9:33: warning: multi-character character constant [-Wmultichar]
9 | string ans = t < 1200 ? 'ABC' : 'ARC';
| ^~~~~
a.cc:9:41: warning: multi-character character constant [-Wmultichar]
9 | string ans = t < 1200 ? 'ABC' : 'ARC';
| ^~~~~
a.cc: In function 'int main()':
a.cc:9:31: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
9 | string ans = t < 1200 ? 'ABC' : 'ARC';
| ~~~~~~~~~^~~~~~~~~~~~~~~
|
s228426197 | p03813 | Java | package atcoder;
import java.util.Scanner;
/**
* Created by Abhilash on 28-01-2017.
*/
public class ABC_ARC {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
if(num<1200)
System.out.println("ABC");
else
System.out.println("ARC");
}
}
| Main.java:8: error: class ABC_ARC is public, should be declared in a file named ABC_ARC.java
public class ABC_ARC {
^
1 error
|
s225392781 | p03813 | C++ | #include <cstdio>
using namespace std;
int main()
{
scanf("%d", &x);
if (x < 1200) printf("ABC\n");
else printf("ARC\n");
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:18: error: 'x' was not declared in this scope
7 | scanf("%d", &x);
| ^
|
s128124540 | p03813 | C++ | #include <iostream>
#include <algorithm>
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int uint;
void solveA() {
int x; cin >> x;
if (x < 1200) cout << "ABC" << endl;
else cout << "ARC" << endl;
}
void solveB() {
}
void solveC() {
}
void solveD() {
}
int main() {
solveA();
return 0;
} | a.cc: In function 'void solveA()':
a.cc:9:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
9 | int x; cin >> x;
| ^~~
| 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; ///< Linked to standard input
| ^~~
a.cc:10:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | if (x < 1200) cout << "ABC" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:10:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
10 | if (x < 1200) cout << "ABC" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:11:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | else cout << "ARC" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:11:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | else cout << "ARC" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s467952135 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x;
cin >> x;
if(x < 1200){
cout << ABC << endl;
}else cout << ARC <<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:13: error: 'ABC' was not declared in this scope
9 | cout << ABC << endl;
| ^~~
a.cc:10:17: error: 'ARC' was not declared in this scope
10 | }else cout << ARC <<endl;
| ^~~
|
s784481987 | p03813 | Java | import com.sun.tools.corba.se.idl.StringGen;
import java.util.*;
/**
* Created by Seiya on 2016/10/16.
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a, b, c;
a = scanner.nextInt();
if(a < 1200) {
System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
}
| Main.java:1: error: package com.sun.tools.corba.se.idl does not exist
import com.sun.tools.corba.se.idl.StringGen;
^
1 error
|
s059860466 | p03813 | C | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main(){
int x;
scanf("%d"&x);
if(x<1200) printf("ABC\n");
else printf("ARC\n");
return 0;
}
| main.c: In function 'main':
main.c:8:19: error: invalid operands to binary & (have 'char *' and 'int')
8 | scanf("%d"&x);
| ~~~~^
| |
| char *
|
s124365238 | p03814 | C++ | #include<iostream>
int main()
{
std::string str;
std::cin>>str;
int i,a,b;
for(i=0;i<str.size();i++){
if(str[i]=='A'){
a = i;
break;
}
}
for(i=;str.size()-1;i>=0;i--){
if(str[i]=='Z'){
b = i;
break;
}
}
std::cout<<a-b+1<<std::cout;
}
| a.cc: In function 'int main()':
a.cc:14:11: error: expected primary-expression before ';' token
14 | for(i=;str.size()-1;i>=0;i--){
| ^
a.cc:14:29: error: expected ')' before ';' token
14 | for(i=;str.size()-1;i>=0;i--){
| ~ ^
| )
a.cc:14:33: error: expected ';' before ')' token
14 | for(i=;str.size()-1;i>=0;i--){
| ^
| ;
a.cc:20:21: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'std::ostream' {aka 'std::basic_ostream<char>'})
20 | std::cout<<a-b+1<<std::cout;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~
| | |
| | basic_ostream<[...]>
| basic_ostream<[...]>
a.cc:20:21: note: candidate: 'operator<<(int, int)' (built-in)
20 | std::cout<<a-b+1<<std::cout;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~
a.cc:20:21: note: no known conversion for argument 2 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'std::ios_base& (*)(std::ios_base&)'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
174 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long int'
174 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
178 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long unsigned int'
178 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
182 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'bool'
182 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
189 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'short unsigned int'
189 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
200 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'unsigned int'
200 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
211 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long long int'
211 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
215 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long long unsigned int'
215 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
231 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'double'
231 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
235 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'float'
235 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
243 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'long double'
243 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostr |
s525107105 | p03814 | C++ | #include<string>
#include<iomanip>
#include <numeric>
#include <limits>
using namespace std;
int main()
{
string s; int x,y; cin>>s;
x=s.find("A");
y=s.rfind("Z");
cout<<y-x+1;
} | a.cc: In function 'int main()':
a.cc:9:21: error: 'cin' was not declared in this scope
9 | string s; int x,y; cin>>s;
| ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
4 | #include <limits>
+++ |+#include <iostream>
5 | using namespace std;
a.cc:12:1: error: 'cout' was not declared in this scope
12 | cout<<y-x+1;
| ^~~~
a.cc:12:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
|
s007363630 | p03814 | C++ | #include<string>
#include<iomanip>
#include <numeric>
#include <limits>
using namespace std;
int main()
{
string s; int x,y; getline(cin,s);
for(int i=0;i<s.size();i++)
{
if(s.at(i)=='A'){ x=i; break;}
}
for(int i=s.size()-1;i>x;i--)
{
if(s.at(i)=='Z'){ y=i; break;}
}
cout<<y-x+1;
} | a.cc: In function 'int main()':
a.cc:9:29: error: 'cin' was not declared in this scope
9 | string s; int x,y; getline(cin,s);
| ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
4 | #include <limits>
+++ |+#include <iostream>
5 | using namespace std;
a.cc:18:1: error: 'cout' was not declared in this scope
18 | cout<<y-x+1;
| ^~~~
a.cc:18:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
|
s816192094 | p03814 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
int main () {
string s;
int index1, index2;
cin >> s;
for(i=0; i<s.size();i++){
if(s[i]=='A'){
index1=i;
break;
}
}
for(i=s.size()-1; i>-1;i--){
if(s[i]=='Z'){
index2=i;
break;
}
}
cout << index1-index2+1;
}
cout << count;
} | a.cc: In function 'int main()':
a.cc:12:7: error: 'i' was not declared in this scope
12 | for(i=0; i<s.size();i++){
| ^
a.cc:19:7: error: 'i' was not declared in this scope
19 | for(i=s.size()-1; i>-1;i--){
| ^
a.cc: At global scope:
a.cc:32:3: error: 'cout' does not name a type
32 | cout << count;
| ^~~~
a.cc:34:1: error: expected declaration before '}' token
34 | }
| ^
|
s089574483 | p03814 | C | #include <iostream>
#include <string>
using namespace std;
int main(void){
string S;
cin >> S;
int l,r;
l = r = -1;
for(int i=0;i<S.size();i++){
if(S[i] == 'A' && l == -1){
l = i;
}
if(S[i] == 'Z'){
r = i;
}
}
int ans = r - l;
cout << ans << endl;
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s492533161 | p03814 | C++ | #include<iostream>
using namespace std;
int main()
{
string a;cin>>a;
int c=0,d=0;
int n=a.size();
for(int i=n-1;.i>=0;i--)
{
if(a[i]=='Z'){d=i;break;}
}
for(int i=0;.i<n;i++)
{
if(a[i]=='A'){c=i;break;}
}
cout<<d-c+1<<endl;
} | a.cc: In function 'int main()':
a.cc:9:17: error: expected primary-expression before '.' token
9 | for(int i=n-1;.i>=0;i--)
| ^
a.cc:13:15: error: expected primary-expression before '.' token
13 | for(int i=0;.i<n;i++)
| ^
|
s408398595 | p03814 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
int a,b;
for(int i=0;i<N;i++){
if(s[i]=='A') a=i;
if(s[N-1-i]=='Z') b=N-1-i;
}
cout << b-a+1 << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:17: error: 'N' was not declared in this scope
9 | for(int i=0;i<N;i++){
| ^
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
19 | }
| ^
|
s892458997 | p03814 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
bool x=false;
for(int i=0;i<s.size();i++){
int p=-1;
int count=0;
if(s[i]=='A'){
x=true;
count++;
}
if(x) {
count++;
}
if(s[i]=='Z' && x ){
x=false;
count++;
if(p<count)p=count;
}
}
cout << p << endl;
} | a.cc: In function 'int main()':
a.cc:27:13: error: 'p' was not declared in this scope
27 | cout << p << endl;
| ^
|
s217999685 | p03814 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
int p=-1;
bool x=false;
for(int i=0;i<s.size();i++){
int count=0;
if(s[i]=='A'){
x=true;
count++;
}
else if(x) {
count++;
}
else if(s[i]=='Z'){
x=false;
count++;
if(p<count)p=count;
}
cout << p << endl;
}
| a.cc: In function 'int main()':
a.cc:26:4: error: expected '}' at end of input
26 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s273704285 | p03814 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
int main() {
string s;
cin>>s;
ll max=0;
ll count=0;
for(ll i=0;i<s.size();i++) {
if(count==0&&S[i]=='A') {
count++;
}
if(count>0) {
count++;
}
if(S[i]=='Z') {
max=count;
}
}
cout<<max<<endl;
}
| a.cc: In function 'int main()':
a.cc:13:14: error: 'S' was not declared in this scope
13 | if(count==0&&S[i]=='A') {
| ^
a.cc:20:8: error: 'S' was not declared in this scope
20 | if(S[i]=='Z') {
| ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.