submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s130434168
p03813
C++
/*****/ #include <iostream> #include <array> #include <vector> #include <algorithm> #include <string> #include <cmath> #include <queue> #include <stack> #include <map> #include <iomanip> //cout << fixed << setprecision(桁数); #include <stdexcept> //#define int long long using namespace std; using ll = long long; using ld = long double; using vecll = vector<ll>; #define nextline() (std::cerr << "\n") #define debug(x) (#x " : " + (x)) #define debug_cout(x) (std::cerr << #x << " : " << (x) << "\n") #define debug_tabcout(n, x) (std::cerr << strMulti("\t",n) << #x << " : " << (x) << "\n") #define debug_headcout(h, x) (std::cerr << h << " : " << (x) << "\n") #define debug_tabheadcout(n, h, x) (std::cerr << strMulti("\t",n) << h << " : " << (x) << "\n") #define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; i++) #define rep1(i, n) for(int i=1, i##_len=(n); i<=i##_len; i++) #define rrep(i, n) for(int i=(n)-1; i >= 0; i--) #define rrep1(i, n) for(int i=(n); i > 0; i--) #define all(x) (x).begin(), (x).end() #define pair(a, b) make_pair(a, b); constexpr int INF = 2000000100; constexpr ll DIV = 1000000007; // 10e9+7 template<class T> bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } template<class T> bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } //template<class T> T divup(T a, T b) { if (a % b == 0) { return a / b; } return a / b + 1; } #define diup(a, b) (a % b == 0 ? a / b : a / b + 1) std::string strMulti(std::string t, int n) { std::string out = ""; for (int i = 0; i < n; i++) { out += t; } return out; } template<class T> T math_P(T m, T n) { T ret = 1; for (T i = m; i > m - n; i--) { ret *= i; } return ret; } template<class T> T math_C(T m, T n) { T ret = mathP(m, n); for (T i = 2; i <= n; i++) { ret /= i; } return ret; } template<class T> bool compare_by_b(pair<T, T> a, pair<T, T> b) { if (a.second != b.second) { return a.second < b.second; } return a.first < b.first; } template<class T> T math_gcd(T a, T b) { a = abs(a); b = abs(b); if (a < b) { std::swap(a, b); } T tmp; while (b != 0) { tmp = b; b = a % b; a = tmp; } return a; } template<class T> T math_lcm(T a, T b) { a = abs(a); b = abs(b); if (a > b) { std::swap(a, b); } if (a == 1) { return b; } T i = a; while (i % b != 0) { i += a; } return i; } /*****/ void Main() { int x; cin >> c; if (x < 1200) cout << "ABC"; else cout << "ARC"; } /*****/ int main() { //std::ios::sync_with_stdio(false); //std::cin.tie(0); std::cout << std::fixed << std::setprecision(10); /* while (true) { Main(); cout << endl; } //*/ Main(); return 0; }
a.cc: In function 'void Main()': a.cc:54:16: error: 'c' was not declared in this scope 54 | cin >> c; | ^
s428102972
p03813
C++
#include<bits/stdc++.h> using namespace std; typedef int q; typedef double w; typedef string s; int main(){ q x,k,y,n; cin>>x; if(x<1200)cout<<"ABC" else cout<<"ARC"; return 0;}
a.cc: In function 'int main()': a.cc:9:26: error: expected ';' before 'else' 9 | if(x<1200)cout<<"ABC" | ^ | ; 10 | else cout<<"ARC"; | ~~~~
s945107315
p03813
C++
x = int(input()) print('ARC' if x>=1200 else 'ABC')
a.cc:2:7: warning: multi-character character constant [-Wmultichar] 2 | print('ARC' if x>=1200 else 'ABC') | ^~~~~ a.cc:2:29: warning: multi-character character constant [-Wmultichar] 2 | print('ARC' if x>=1200 else 'ABC') | ^~~~~ a.cc:1:1: error: 'x' does not name a type 1 | x = int(input()) | ^
s580323483
p03813
C++
#include <iostream> using namespace std; int main() { int r; cin>>r; if(r<=3000 && r>=1){ if(r<=1200){ cout<<'ABC'; } else { cout<<'ARC'; } }else{cout<<"no";} return 0; } else { cout<<"ARC"; } }else{cout<<"no";} return 0; } else { cout<<m; } } return 0; }
a.cc:16:15: warning: multi-character character constant [-Wmultichar] 16 | cout<<'ABC'; | ^~~~~ a.cc:20:15: warning: multi-character character constant [-Wmultichar] 20 | cout<<'ARC'; | ^~~~~ a.cc:28:5: error: expected unqualified-id before 'else' 28 | else { | ^~~~ a.cc:33:1: error: expected declaration before '}' token 33 | }else{cout<<"no";} | ^ a.cc:33:2: error: expected unqualified-id before 'else' 33 | }else{cout<<"no";} | ^~~~ a.cc:34:5: error: expected unqualified-id before 'return' 34 | return 0; | ^~~~~~ a.cc:35:1: error: expected declaration before '}' token 35 | } | ^ a.cc:37:5: error: expected unqualified-id before 'else' 37 | else { | ^~~~ a.cc:42:1: error: expected declaration before '}' token 42 | } | ^ a.cc:43:5: error: expected unqualified-id before 'return' 43 | return 0; | ^~~~~~ a.cc:44:1: error: expected declaration before '}' token 44 | } | ^
s002586643
p03813
C++
#include <iostream> using namespace std; int main() { int r; cin>>r; if(r<=3000 && r>=1){ if(r<=1200){ cout<<"ABC"; } else { cout<<"ARC"; } }else{cout<<"no";} return 0; } else { cout<<m; } } return 0; }
a.cc:28:5: error: expected unqualified-id before 'else' 28 | else { | ^~~~ a.cc:33:1: error: expected declaration before '}' token 33 | } | ^ a.cc:34:5: error: expected unqualified-id before 'return' 34 | return 0; | ^~~~~~ a.cc:35:1: error: expected declaration before '}' token 35 | } | ^
s586567971
p03813
C++
#include <iostream> using namespace std; int main() { int r; cin>>r; if(r<=3000 && r>=1){ if(r<=1200){ cout<<"ABC"; } else { cout<<"ARC"; } } return 0; } return 0; } return 0; }
a.cc:27:5: error: expected unqualified-id before 'return' 27 | return 0; | ^~~~~~ a.cc:28:1: error: expected declaration before '}' token 28 | } | ^ a.cc:32:5: error: expected unqualified-id before 'return' 32 | return 0; | ^~~~~~ a.cc:33:1: error: expected declaration before '}' token 33 | } | ^
s929139434
p03813
C++
#include <iostream> using namespace std; int main() { int r; cin>>r; if(r<=1200){ cout<<"ABC"; } else { cout<<"ARC"; } return 0; } return 0; }
a.cc:26:5: error: expected unqualified-id before 'return' 26 | return 0; | ^~~~~~ a.cc:27:1: error: expected declaration before '}' token 27 | } | ^
s452841520
p03813
C++
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; ) { cout<<"ABC"; } else { cout<<"ARC"; } ; }
a.cc: In function 'int main()': a.cc:7:5: error: expected primary-expression before ')' token 7 | ) | ^ a.cc:11:5: error: 'else' without a previous 'if' 11 | else | ^~~~
s661023427
p03813
C++
#include <iostream> using namespace std; int main(){ int rate; cin >> rate; if (rate < 1200) cout << "ABC" << endl; else cout << "ARC" << enld; return 0; }
a.cc: In function 'int main()': a.cc:9:25: error: 'enld' was not declared in this scope 9 | else cout << "ARC" << enld; | ^~~~
s287141011
p03813
C++
#include <iostream> int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");}
a.cc: In function 'int main()': a.cc:2:26: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ~~~~~~~~^~~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:2:26: note: candidate: 'operator<<(int, int)' (built-in) 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ~~~~~~~~^~~ a.cc:2:26: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, 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/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)' 763 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ 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:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:2:23: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ~~~~~^~~ In file included from /usr/include/c++/14/bits/ios_base.h:46: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)' 671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)' 684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)' 689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed: a.cc:2:28: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ^ /usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)' 810 | operator<<(_Ostream&& __os, const _Tp& __x) | ^~~~~~~~ /usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution fai
s598255256
p03813
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ int a; cin >> a; //if(x=='a'||x=='i'||x=='u'||x=='e'||x=='o')){cout << "vowel" << endl;} //else{cout << "consonant" << endl;} //int x = a*b; //int y = c*d; if(x<1200){cout << "ABC" << endl;} //else(y<x){cout < x << endl;} else{cout << "ARC" << endl;} return 0; }
a.cc: In function 'int main()': a.cc:12:6: error: 'x' was not declared in this scope 12 | if(x<1200){cout << "ABC" << endl;} | ^
s469926843
p03813
C
#include<stdio.h> int main() { int x; scanf("%d",&x); if(x<1200) printf("ABC\n"); else if printf("ARC\n"); return 0; }
main.c: In function 'main': main.c:9:9: error: expected '(' before 'printf' 9 | printf("ARC\n"); | ^~~~~~ | (
s955187915
p03813
Java
import java.util.*; public class Main { public static void main(String[] args) { Compute c1 = new Compute();//calc int count = 0; boolean sw = false; int max = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; double dMax = Double.MIN_VALUE; double dMin = Double.MAX_VALUE; //StringBuilder answer=new StringBuilder(); //input Scanner sc = new Scanner(System.in); int n=sc.nextInt(); String ans[] = {"ABC","ARC"}; //long n = sc.nextLong(); if(n<1200) { System.out.println(ans[0]); }else { System.out.println(ans[1]); } sc.close(); } }
Main.java:6: error: cannot find symbol Compute c1 = new Compute();//calc ^ symbol: class Compute location: class Main Main.java:6: error: cannot find symbol Compute c1 = new Compute();//calc ^ symbol: class Compute location: class Main 2 errors
s777345482
p03813
Java
import java.util.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(); int rate = sc.nextInt(); if(rate < 1200){ System.out.println("ABC"); }else{ System.out.println("ARC"); } } }
Main.java:6: error: no suitable constructor found for Scanner(no arguments) Scanner sc = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(InputStream) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(InputStream,String) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(InputStream,Charset) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(File) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(File,String) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(File,Charset) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(File,CharsetDecoder) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Path) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Path,String) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Path,Charset) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(String) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(ReadableByteChannel) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable (actual and formal argument lists differ in length) 1 error
s214123657
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; if(n<1200)cout << "ABC" << endl; else()cout << "ARC" << endl; }
a.cc: In function 'int main()': a.cc:7:8: error: expected primary-expression before ')' token 7 | else()cout << "ARC" << endl; | ^
s249532552
p03813
C++
#include<bits/stdc++.h> using namespace std; int main () { int n ; cin >> n ; if(n<1200 )cout << ABC << endl; else () cout <<ARC<<endl; }
a.cc: In function 'int main()': a.cc:7:22: error: 'ABC' was not declared in this scope 7 | if(n<1200 )cout << ABC << endl; | ^~~ a.cc:8:9: error: expected primary-expression before ')' token 8 | else () cout <<ARC<<endl; | ^
s044200993
p03813
C++
#include<bits/stdnc++,h> using namespace std; int main () { int n ; cin >> n ; if(n<1200 )cout << ABC << endl; else () cout <<ARC<<endl; }
a.cc:1:9: fatal error: bits/stdnc++,h: No such file or directory 1 | #include<bits/stdnc++,h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s292705591
p03813
C++
#include<bits/stdnc++.h> using namespace std; int main () { int n ; cin >> n ; if(n<1200 )cout << ABC << endl; else () cout <<ARC<<endl; }
a.cc:1:9: fatal error: bits/stdnc++.h: No such file or directory 1 | #include<bits/stdnc++.h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s656768221
p03813
C++
#include <iostream> #include <iomanip> #include <vector> #include <cmath> #include <algorithm> #include <iomanip> #include <cstring> #define rep(i, N) for (int i = 0; i < (int)N; i++) using namespace std; typedef long long ll; const ll LLINF = 9223372036854775807; const int MOD = 1000000007; int main() { int x; cin >> x; string result; if (x<1200) result = "ABC"; else result = "ARC;" cout << result << endl; return 0; }
a.cc: In function 'int main()': a.cc:18:23: error: expected ';' before 'cout' 18 | else result = "ARC;" | ^ | ; 19 | cout << result << endl; | ~~~~
s567579637
p03813
C++
#include <bits/stdc++.h> #include <stdio.h> #include <numeric> using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);++i) #define repone(i,n) for(int i=1;i<(int)(n);++i) #define repo(i,o,n) for(int i=o;i<(int)(n);++i) #define Rep(j,n) for(int j=0;j<(int)(n);++j) #define Repo(j,o,n) for(int j=o;j<(int)(n);++j) #define Repone(j,n) for(int j=1;j<(int)(n);++j) #define all(v) (v).begin(),(v).end() #define rall(v) (v).rbegin(),(v).rend() #define int long long #define pb(a) push_back(a) #define eraser(v,i) (v).erase(v.begin()+(i)) #define pbpair(a,b) push_back(make_pair(a,b)) #define MOD 1000000007 #define INF 9223372036854775807 #define pairint pair<int,int> int num[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; bool uru(int checkyear){if(checkyear%4==0){if(checkyear%100!=0||checkyear%400==0)return true;}return false;} int gcd( int x, int y ){return y ? gcd(y, x%y) : x;} signed main() { int x=0,y=0,z=0,w=0,n=0,m=0; std::cin >> x; std::cout << (x<1200) ? "ABC":"ARC" << '\n'; }
a.cc: In function 'int main()': a.cc:27:37: error: invalid operands of types 'const char [4]' and 'char' to binary 'operator<<' 27 | std::cout << (x<1200) ? "ABC":"ARC" << '\n'; | ~~~~~ ^~ ~~~~ | | | | | char | const char [4]
s177748822
p03813
C
#include<stdio.h> int main(){ int x; scanf("%d", &x); if(x < 1200){ printf("ABC") } else { printf("ARC") } return 0; }
main.c: In function 'main': main.c:9:30: error: expected ';' before '}' token 9 | printf("ABC") | ^ | ; 10 | } else { | ~ main.c:11:30: error: expected ';' before '}' token 11 | printf("ARC") | ^ | ; 12 | } | ~
s942622958
p03813
C
#include<stdio.h> int main(){ int x; scanf("%d", &x) if(x < 1200){ printf("ABC") } else { printf("ARC") } return 0; }
main.c: In function 'main': main.c:6:24: error: expected ';' before 'if' 6 | scanf("%d", &x) | ^ | ; 7 | 8 | if(x < 1200){ | ~~
s979308527
p03813
C++
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x < 1200) { print("ABC"); } else { print("ARC"); } return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'print' was not declared in this scope; did you mean 'printf'? 11 | print("ABC"); | ^~~~~ | printf a.cc:15:9: error: 'print' was not declared in this scope; did you mean 'printf'? 15 | print("ARC"); | ^~~~~ | printf
s774051350
p03813
C++
#include <iostream> using namespace std; int main(void){ int x; cin >> x; if(x < 1200) cout << "ABC" << end; else cout << "ARC" <<endl; }
a.cc: In function 'int main()': a.cc:9:23: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 9 | cout << "ABC" << end; | ~~~~~~~~~~~~~~^~~~~~ 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 301 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*' 301 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]' 306 | operator<<(nullptr_t) | ^~~~~~~~ /usr/include/c++/14/ostream:306:18: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::nullptr_t' 306 | operator<<(nullptr_t)
s157682416
p03813
C++
n=int(input()) if(n<1200): print("ABC") else: print("ARC")
a.cc:1:1: error: 'n' does not name a type 1 | n=int(input()) | ^
s484122724
p03813
C++
#include <bits/stdc++.h> using namespace std; int x; int main () { cin >> x; if (x < 1200) cout "ABC" << endl; else cout << "ARC" << endl; }
a.cc: In function 'int main()': a.cc:9:9: error: expected ';' before string constant 9 | cout "ABC" << endl; | ^~~~~~ | ;
s676850024
p03813
C++
#include <bits/stdc++.h> #define int long long #define ALL(v) (v).begin(),(v).end() #define Vi vector<int> #define pb push_back #define rep(i,a,b) for(int i=a;i<b;i++) #define repr(i,a,b) for(int i=a;i>b;i--) #define leng(n) (int)(log10(n)+1) #define INF 9000000000000000000 using namespace std; int gcd(int a,int b){return b?gcd(b,a%b):a;} // 最大公約数gcd int lcm(int a,int b){return a/gcd(a,b)*b;} // 最小公倍数lcm signed main() { int a; cin >> a; if(a<1200) cout << "ABC" <, endl; else cout << "ARC" << endl; }
a.cc: In function 'int main()': a.cc:18:29: error: expected primary-expression before ',' token 18 | if(a<1200) cout << "ABC" <, endl; | ^
s661472068
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(void){ int A; cin >> A; if(A >= 1200){ cout << "ARC"; } else { cout << "ABC"; }
a.cc: In function 'int main()': a.cc:10:2: error: expected '}' at end of input 10 | } | ^ a.cc:3:15: note: to match this '{' 3 | int main(void){ | ^
s190390907
p03813
Java
package at_coder; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; public class ABC_053_A { static FastScanner sc = new FastScanner(); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) { int a = sc.nextInt(); if (a<1200) out.println("ABC"); else out.println("ARC"); out.flush(); } static class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen) { return true; } else { ptr = 0; try { buflen = in.read(buffer); } catch (IOException e) { e.printStackTrace(); } if (buflen <= 0) { return false; } } return true; } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1; } private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126; } private void skipUnprintable() { while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; } public boolean hasNext() { skipUnprintable(); return hasNextByte(); } public String next() { if (!hasNext()) throw new NoSuchElementException(); StringBuilder sb = new StringBuilder(); int b = readByte(); while (isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public long nextLong() { if (!hasNext()) throw new NoSuchElementException(); long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while (true) { if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; } else if (b == -1 || !isPrintableChar(b)) { return minus ? -n : n; } else { throw new NumberFormatException(); } b = readByte(); } } public int nextInt() { return (int) nextLong(); } public int[] nextIntArray(int N, boolean oneBased) { if (oneBased) { int[] array = new int[N + 1]; for (int i = 1; i <= N; i++) { array[i] = sc.nextInt(); } return array; } else { int[] array = new int[N]; for (int i = 0; i < N; i++) { array[i] = sc.nextInt(); } return array; } } public long[] nextLongArray(int N, boolean oneBased) { if (oneBased) { long[] array = new long[N + 1]; for (int i = 1; i <= N; i++) { array[i] = sc.nextLong(); } return array; } else { long[] array = new long[N]; for (int i = 0; i < N; i++) { array[i] = sc.nextLong(); } return array; } } } }
Main.java:9: error: class ABC_053_A is public, should be declared in a file named ABC_053_A.java public class ABC_053_A { ^ 1 error
s450556914
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; }
a.cc: In function 'int main()': a.cc:9:22: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 9 | else cout << "ARC" < endl; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:9:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:9:24: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 9 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:9:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:9:24: note: couldn't deduce template parameter '_Bi_iter' 9 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:9:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:9:24: note: couldn't deduce template parameter '_Bi_iter' 9 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:9:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | else cout << "ARC" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h: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:9:24: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 9 | else cout << "ARC" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /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:9:24: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 9 | else cout << "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:9:24: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 9 | else cout << "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:9:24: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 9 | else cout << "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:9:24: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 9 | else cout << "ARC" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /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:9:24: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 9 | else cout << "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:9:24: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 9 | else cout << "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:9:24: note: couldn't deduce template parameter '_CharT' 9 | else cout << "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:9:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 9 | else cout << "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 _Ch
s224718452
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; }
a.cc: In function 'int main()': a.cc:7:22: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 7 | else cout << "ARC" < endl; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:7:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:7:24: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 7 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:7:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:7:24: note: couldn't deduce template parameter '_Bi_iter' 7 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:7:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:7:24: note: couldn't deduce template parameter '_Bi_iter' 7 | else cout << "ARC" < endl; | ^~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:7:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | else cout << "ARC" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h: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:24: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 7 | else cout << "ARC" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /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:24: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 7 | else cout << "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:24: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 7 | else cout << "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:24: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 7 | else cout << "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:24: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 7 | else cout << "ARC" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /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:24: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 7 | else cout << "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:24: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 7 | else cout << "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:24: note: couldn't deduce template parameter '_CharT' 7 | else cout << "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:24: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 7 | else cout << "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 _Ch
s929165650
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; cout << maxx << endl; }
a.cc: In function 'int main()': a.cc:11:17: error: 'maxx' was not declared in this scope 11 | cout << maxx << endl; | ^~~~
s789121514
p03813
C++
x = int(input()) if x < 1200: print('ABC') else: print('ARC')
a.cc:3:11: warning: multi-character character constant [-Wmultichar] 3 | print('ABC') | ^~~~~ a.cc:5:11: warning: multi-character character constant [-Wmultichar] 5 | print('ARC') | ^~~~~ a.cc:1:1: error: 'x' does not name a type 1 | x = int(input()) | ^
s638315589
p03813
C++
x = int(input()) if x < 1200: print('ABC') else: print('ARC')
a.cc:3:11: warning: multi-character character constant [-Wmultichar] 3 | print('ABC') | ^~~~~ a.cc:5:11: warning: multi-character character constant [-Wmultichar] 5 | print('ARC') | ^~~~~ a.cc:1:1: error: 'x' does not name a type 1 | x = int(input()) | ^
s161333288
p03813
C++
# include <bits/stdc++.h> 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:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | 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 | ^~~ a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 10 | 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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 10 | cout << "ABC" << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 14 | 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:14:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 14 | cout << "ARC" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s623705064
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(){ int X = 0 ; scanf("%d" , &X); if(<=X<=3000) { if(X < 1200) printf("ABC"); else printf("ARC"); } return 0; }
a.cc: In function 'int main()': a.cc:9:4: error: expected primary-expression before '<=' token 9 | if(<=X<=3000) | ^~
s593533043
p03813
C++
#include<queue> #include<stack> #include<iostream> #include<math.h> #include<algorithm> #include<vector> #include<string> #include<windows.h> //#include<windows.h> using namespace std; #define Int int64_t #define dump(x) cout << (x) << endl #define fi first #define se second Int mod = 1e9 + 7; Int INF = 1e18; double EPS = 0.00000001; //Int mod = 1e6+3; Int fib_memo[1000001] = {}; Int mfib(Int n) { if (n <= 1) return n; if (fib_memo[n] != 0) return fib_memo[n]; return fib_memo[n] = mfib(n - 1) + mfib(n - 2); } Int fib(Int n) { if (n <= 1) return n; return fib(n - 1) + fib(n - 2); } //ここまでライブラリ //ここから本編 int main() { int x; cin >> x; cout << ((x < 2000) ? "Yes" : "No") << endl; }
a.cc:8:9: fatal error: windows.h: No such file or directory 8 | #include<windows.h> | ^~~~~~~~~~~ compilation terminated.
s444152538
p03813
Java
public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int x = in.nextInt(); if(x<1200) { System.out.println("ABC"); } else { System.out.println("ARC"); } } }
Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s855183332
p03813
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ double x; scanf("%ld",&x); if(x>1200) printf("ARC"); else printf("ABC"); return0;}
a.cc: In function 'int main()': a.cc:11:1: error: 'return0' was not declared in this scope 11 | return0;} | ^~~~~~~
s951481035
p03813
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ int x; scanf("%d",&x); if(x>1200) printf("ARC"); else printf("ABC"); return0;}
a.cc: In function 'int main()': a.cc:11:1: error: 'return0' was not declared in this scope 11 | return0;} | ^~~~~~~
s340863314
p03813
C
#include <iostream> using namespace std; int main(){ int x; cin>>x; if(x>1200) cout<<"ARC"; else cout<<"ABC"; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s947480080
p03813
C
#include <bits/stdc++.h> using namespace std; int main(){ int x; scanf("%d",&x); if(x<1200) printf("ABC"); else printf("ARC"); return 0; }
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s755007785
p03813
C++
#include<iostream> using namespace std; int main(){ int x; cin>>n; if(x<1200) cout<<"ABC" ; else cout<<"ARC"; }
a.cc: In function 'int main()': a.cc:5:6: error: 'n' was not declared in this scope 5 | cin>>n; | ^
s840999361
p03813
C++
#include<bits/stdc++.h> using namespace std; int main() { int a; scanf("%d",&a); if(a<1200) printf("ABC"); else printf("ARC"); } }
a.cc:12:1: error: expected declaration before '}' token 12 | } | ^
s281937339
p03813
C
#include<bits/stdc++.h> using namespace std; int main() { int n; while(scanf("%d",&n)) { if(n<1200) printf("ABC"); else printf("ARC"); } }
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s286365288
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A cin>>A; if(A<1200){ cout<<"ABC"<<endl; }else{ cout<<"ARC"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:3: error: expected initializer before 'cin' 5 | cin>>A; | ^~~ a.cc:6:12: error: 'A' was not declared in this scope 6 | if(A<1200){ | ^
s229271267
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(){ int N; cin>>N; if(N>=1200) cout<<ARC; else cout<<ABC; }
a.cc: In function 'int main()': a.cc:8:7: error: 'ARC' was not declared in this scope 8 | cout<<ARC; | ^~~ a.cc:10:7: error: 'ABC' was not declared in this scope 10 | cout<<ABC; | ^~~
s136951619
p03813
C++
#include <iostream> #include <string> #include <cmath> #include <algorithm> using namespace std; int main() { int n; cin >> n; if (n < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << Endl; } }
a.cc: In function 'int main()': a.cc:16:34: error: 'Endl' was not declared in this scope 16 | cout << "ARC" << Endl; | ^~~~
s054328178
p03813
C++
#include <bits\stdc++.h> using namespace std; int main(){ int x; cin>>x; if (x<1200) cout <<"ABC"; else cout <<"ARC"; }
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory 1 | #include <bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s291871894
p03813
C++
v#include<bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; cout<<(x<1200?"ABC":"ARC")<<endl; return 0; }
a.cc:1:2: error: stray '#' in program 1 | v#include<bits/stdc++.h> | ^ a.cc:1:1: error: 'v' does not name a type 1 | v#include<bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope 6 | cin>>x; | ^~~ a.cc:7:5: error: 'cout' was not declared in this scope 7 | cout<<(x<1200?"ABC":"ARC")<<endl; | ^~~~ a.cc:7:33: error: 'endl' was not declared in this scope 7 | cout<<(x<1200?"ABC":"ARC")<<endl; | ^~~~
s107870506
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >>x; if(x<1200){ cout <<"ABC; } else{ cout <<"ARC": } }
a.cc:9:12: warning: missing terminating " character 9 | cout <<"ABC; | ^ a.cc:9:12: error: missing terminating " character 9 | cout <<"ABC; | ^~~~~ a.cc: In function 'int main()': a.cc:10:3: error: expected primary-expression before '}' token 10 | } | ^ a.cc:12:17: error: expected ';' before ':' token 12 | cout <<"ARC": | ^ | ;
s576155320
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >>x; if(x<1200){ cout <<"ABC; } else{ cout <<"ARC" ; } }
a.cc:9:12: warning: missing terminating " character 9 | cout <<"ABC; | ^ a.cc:9:12: error: missing terminating " character 9 | cout <<"ABC; | ^~~~~ a.cc: In function 'int main()': a.cc:10:3: error: expected primary-expression before '}' token 10 | } | ^
s175123857
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x;cin>>x; cout<(x<1200?"ABC":"ARC")<<endl; }
a.cc: In function 'int main()': a.cc:6:34: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<' 6 | cout<(x<1200?"ABC":"ARC")<<endl; | ~~~~~~~~~~~~~~~~~~~~^~~~~~
s476339390
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x<1200){ cout<<"ABC"<<endl; }else{ cin<<"ARC"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:11:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [4]') 11 | cin<<"ARC"<<endl; | ~~~^~~~~~~ | | | | | const char [4] | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)' 1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:11:9: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 11 | cin<<"ARC"<<endl; | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)' 763 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)' 1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ In file included from /usr/include/c++/14/bits/ios_base.h:46, from /usr/include/c++/14/streambuf:43, from /usr/include/c++/14/bits/streambuf_iterator.h:35, from /usr/include/c++/14/iterator:66, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ In file included from /usr/include/c++/14/memory:80, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56: /usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)' 70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)' 671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~
s415465208
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x<1200){ cout<<"ABC"<<endl; }else{ cin<<"ARC"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:11:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [4]') 11 | cin<<"ARC"<<endl; | ~~~^~~~~~~ | | | | | const char [4] | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)' 1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:11:9: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 11 | cin<<"ARC"<<endl; | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)' 763 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)' 1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ In file included from /usr/include/c++/14/bits/ios_base.h:46, from /usr/include/c++/14/streambuf:43, from /usr/include/c++/14/bits/streambuf_iterator.h:35, from /usr/include/c++/14/iterator:66, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ In file included from /usr/include/c++/14/memory:80, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56: /usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)' 70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~~ /usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)' 671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed: a.cc:11:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 11 | cin<<"ARC"<<endl; | ^~~~
s711565224
p03813
C++
#include <bits/stdcpp.h> using namespace std; int main(){ int x; cin>>x; if(x<1200){ cout<<"ABC"<<endl; }else{ cin<<"ARC"<<endl; } return 0; }
a.cc:1:10: fatal error: bits/stdcpp.h: No such file or directory 1 | #include <bits/stdcpp.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s918954970
p03813
C++
#include <stdio.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:6:3: error: 'cin' was not declared in this scope 6 | cin>>x; | ^~~ a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include <stdio.h> +++ |+#include <iostream> 2 | using namespace std; a.cc:9:5: error: 'cout' was not declared in this scope 9 | cout<<"ABC"<<endl; | ^~~~ a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:9:18: error: 'endl' was not declared in this scope 9 | cout<<"ABC"<<endl; | ^~~~ a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' 1 | #include <stdio.h> +++ |+#include <ostream> 2 | using namespace std; a.cc:11:5: error: 'cout' was not declared in this scope 11 | cout<<"ARC"<<endl; | ^~~~ a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:11:18: error: 'endl' was not declared in this scope 11 | cout<<"ARC"<<endl; | ^~~~ a.cc:11:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s032491831
p03813
C++
a
a.cc:1:1: error: 'a' does not name a type 1 | a | ^
s624659012
p03813
C++
#include<stdio.h> void main() { int a; scanf("%d", &a); if(a < 1200) { printf("ABC"); } else { printf("ARC"); } return 0; }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() { | ^~~~
s717343036
p03813
C++
#include <iostream> #include <vector> #include <map> #include <algorithm> #include <cstdlib> #include <cmath> #include <numeric> #include <tuple> #include <stack> #define rep(i,n) for (int i = 0; i < (n); ++i) #define all(x) x.begin(),x.end() #define rall(x) x.rbegin(),x.rend() #define print(s) cout << s << endl typedef long long ll; using namespace std; ll mod = pow(10,9) + 7; int ctoi(char c) { if (c >= '0' && c <= '9') { return c - '0'; } return 0; } char upper(char c){ return c-0x20; } char lower(char c){ return c+0x20; } int main() { int a, cin >> a; cout << (a < 1200? "ABC": "ARC") << endl; }
a.cc: In function 'int main()': a.cc:30:20: error: expected initializer before '>>' token 30 | int a, cin >> a; | ^~
s184576889
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if(x<1200){ printf(“ABC”); } else{ printf(“ARC”); } }
a.cc:8:8: error: extended character “ is not valid in an identifier 8 | printf(“ABC”); | ^ a.cc:8:8: error: extended character ” is not valid in an identifier a.cc:11:8: error: extended character “ is not valid in an identifier 11 | printf(“ARC”); | ^ a.cc:11:8: error: extended character ” is not valid in an identifier a.cc: In function 'int main()': a.cc:8:8: error: '\U0000201cABC\U0000201d' was not declared in this scope 8 | printf(“ABC”); | ^~~~~ a.cc:11:8: error: '\U0000201cARC\U0000201d' was not declared in this scope 11 | printf(“ARC”); | ^~~~~
s093544682
p03813
Java
#include <iostream> using namespace std; int main(){ int x; cin >> x; if (x < 1200){ cout << "ABC" << endl; } else if (x >= 1200){ cout << "ARC" << endl; } }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:7: error: not a statement cin >> x; ^ Main.java:9: error: not a statement cout << "ABC" << endl; ^ Main.java:11: error: not a statement cout << "ARC" << endl; ^ Main.java:5: error: unnamed classes are a preview feature and are disabled by default. int main(){ ^ (use --enable-preview to enable unnamed classes) 6 errors
s303894495
p03813
Java
#include <iostream> using namespace std; int main(){ int x; cin >> x; if (x < 1000){ cout << "ABC" << endl; } else if (x >= 1200){ cout << "ARC" << endl; } return 0; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:7: error: not a statement cin >> x; ^ Main.java:9: error: not a statement cout << "ABC" << endl; ^ Main.java:11: error: not a statement cout << "ARC" << endl; ^ Main.java:5: error: unnamed classes are a preview feature and are disabled by default. int main(){ ^ (use --enable-preview to enable unnamed classes) 6 errors
s799188029
p03813
Java
#include <iostream> using namespace std; int main(){ int x; cin >> x; if (x < 1000){ cout << "ABC" << endl; } else if (x >= 1200){ cout << "ARC" << endl; } }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:7: error: not a statement cin >> x; ^ Main.java:9: error: not a statement cout << "ABC" << endl; ^ Main.java:11: error: not a statement cout << "ARC" << endl; ^ Main.java:5: error: unnamed classes are a preview feature and are disabled by default. int main(){ ^ (use --enable-preview to enable unnamed classes) 6 errors
s204167923
p03813
C++
#include <iostream> #include <cstdio> using namespace std; int main() { int x; cin >> x; if (x<1200){ printf('ABC'); }else{ printf('ARC'); } }
a.cc:9:12: warning: multi-character character constant [-Wmultichar] 9 | printf('ABC'); | ^~~~~ a.cc:11:12: warning: multi-character character constant [-Wmultichar] 11 | printf('ARC'); | ^~~~~ a.cc: In function 'int main()': a.cc:9:12: error: invalid conversion from 'int' to 'const char*' [-fpermissive] 9 | printf('ABC'); | ^~~~~ | | | int In file included from /usr/include/c++/14/cstdio:42, from /usr/include/c++/14/ext/string_conversions.h:45, from /usr/include/c++/14/bits/basic_string.h:4154, from /usr/include/c++/14/string:54, 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/stdio.h:363:43: note: initializing argument 1 of 'int printf(const char*, ...)' 363 | extern int printf (const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ a.cc:11:12: error: invalid conversion from 'int' to 'const char*' [-fpermissive] 11 | printf('ARC'); | ^~~~~ | | | int /usr/include/stdio.h:363:43: note: initializing argument 1 of 'int printf(const char*, ...)' 363 | extern int printf (const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
s669537278
p03813
C++
#include<iostream> #include<cstdio> using namespace std; int x; int main(){ cin>>x; if (x < 1200) printf(ABC); else printf(ARC); return 0; }
a.cc: In function 'int main()': a.cc:9:10: error: 'ABC' was not declared in this scope 9 | printf(ABC); | ^~~ a.cc:11:10: error: 'ARC' was not declared in this scope 11 | printf(ARC); | ^~~
s063264194
p03813
C++
#include<iostream> #include<cstdio> using namespace std; int x; int main(){ cin>>x; if (x<1200) printf(ABC); else printf(ARC); return 0; }
a.cc: In function 'int main()': a.cc:9:10: error: 'ABC' was not declared in this scope 9 | printf(ABC); | ^~~ a.cc:11:10: error: 'ARC' was not declared in this scope 11 | printf(ARC); | ^~~
s682982008
p03813
C++
include(iostream) #include(cstdio) using namespacestd; int x; intmain() { cin >> x; if(x < 1200) printf("ABC") else printf("ARC") return 0; }
a.cc:2:9: error: #include expects "FILENAME" or <FILENAME> 2 | #include(cstdio) | ^ a.cc:1:8: error: expected constructor, destructor, or type conversion before '(' token 1 | include(iostream) | ^ a.cc:6:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive] 6 | intmain() { | ^~~~~~~ a.cc: In function 'int intmain()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | cin >> x; | ^~~ a.cc:9:5: error: 'printf' was not declared in this scope 9 | printf("ABC") | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | include(iostream) a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type] 13 | } | ^
s752239040
p03813
C++
#include<iostream> #include<cstdio> using namespace std; int x; int main() { printf(x < 1200 ? ""ABC"" : ""ARC""); return 0; }
a.cc: In function 'int main()': a.cc:7:26: error: unable to find string literal operator 'operator""ABC' with 'const char [1]', 'long unsigned int' arguments 7 | printf(x < 1200 ? ""ABC"" : ""ARC""); | ^~ a.cc:7:36: error: unable to find string literal operator 'operator""ARC' with 'const char [1]', 'long unsigned int' arguments 7 | printf(x < 1200 ? ""ABC"" : ""ARC""); | ^~
s911700667
p03813
C++
#include(iostream) #include(cstdio) using namespacestd; int x; intmain() { cin >> x; if(x < 1200) printf("ABC") else printf("ABC") return 0; }
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include(iostream) | ^ a.cc:2:9: error: #include expects "FILENAME" or <FILENAME> 2 | #include(cstdio) | ^ a.cc:3:7: error: expected nested-name-specifier before 'namespacestd' 3 | using namespacestd; | ^~~~~~~~~~~~ a.cc:6:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive] 6 | intmain() { | ^~~~~~~ a.cc: In function 'int intmain()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | cin >> x; | ^~~ a.cc:9:5: error: 'printf' was not declared in this scope 9 | printf("ABC") | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | #include(iostream) a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type] 13 | } | ^
s056956609
p03813
C++
#include<iostream> #include<cstdio> using namespace std; int x; int main() { cin >> xj if (x < 1200) printf("ABC"); else printf("ABC"); return 0; }
a.cc: In function 'int main()': a.cc:7:10: error: 'xj' was not declared in this scope; did you mean 'x'? 7 | cin >> xj | ^~ | x a.cc:10:3: error: 'else' without a previous 'if' 10 | else | ^~~~
s095809227
p03813
C++
#include(iostream) #include(cstdio) using namespacestd; int x; intmain() { cin >> x; if(x < 1200) printf("ABC") else printf("ABC") return 0; }
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include(iostream) | ^ a.cc:2:9: error: #include expects "FILENAME" or <FILENAME> 2 | #include(cstdio) | ^ a.cc:3:7: error: expected nested-name-specifier before 'namespacestd' 3 | using namespacestd; | ^~~~~~~~~~~~ a.cc:6:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive] 6 | intmain() { | ^~~~~~~ a.cc: In function 'int intmain()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | cin >> x; | ^~~ a.cc:9:5: error: 'printf' was not declared in this scope 9 | printf("ABC") | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | #include(iostream) a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type] 13 | } | ^
s979698277
p03813
C++
#include<bits/stdc++.h> using namespace; int main(){ int x; if(x < 1200){ cout << "ABC" << endl; }else{ cout << "ARC" << endl; } }
a.cc:2:16: error: expected identifier before ';' token 2 | using namespace; | ^ a.cc: In function 'int main()': a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 7 | cout << "ABC" << endl; | ^~~~ | std::cout 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:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 7 | cout << "ABC" << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | 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:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | cout << "ARC" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s605099947
p03813
C++
read a; [ $a -le 1200 ] && echo "ABC" || echo "ARC"
a.cc:1:1: error: 'read' does not name a type 1 | read a; [ $a -le 1200 ] && echo "ABC" || echo "ARC" | ^~~~ a.cc:1:9: error: expected unqualified-id before '[' token 1 | read a; [ $a -le 1200 ] && echo "ABC" || echo "ARC" | ^
s593983384
p03813
C++
#include <iostream> using namespace std; int main() { int x; if(x < 1200) cout << "ABC"; else cout << "ARG" }
a.cc: In function 'int main()': a.cc:8:21: error: expected ';' before '}' token 8 | else cout << "ARG" | ^ | ; 9 | } | ~
s515123326
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:6:38: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 6 | cout << (x < 1200 ? "ABC" : "ARC") <endl; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ 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:6:39: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 6 | 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:6:39: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 6 | 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:6:39: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 6 | 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:6:39: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 6 | 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:6:39: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 6 | 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:6:39: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | 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:6:39: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | 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:6:39: note: couldn't deduce template parameter '_CharT' 6 | 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:6:39: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 6 | 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:6:39: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 6 | 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:6:39: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>' 6 | 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:6:39: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>' 6 | 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, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
s665625216
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()) | ^
s802333176
p03813
C++
x=int(input()) if x<1200: print('ABC') else: print('ARC')
a.cc:3:11: warning: multi-character character constant [-Wmultichar] 3 | print('ABC') | ^~~~~ a.cc:5:11: warning: multi-character character constant [-Wmultichar] 5 | print('ARC') | ^~~~~ a.cc:1:1: error: 'x' does not name a type 1 | x=int(input()) | ^
s905876302
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int N; string str; cin >> N; if (N<1200){ str = "ABC"} else { str ="ARC" } cout << str << endl; }
a.cc: In function 'int main()': a.cc:8:16: error: expected ';' before '}' token 8 | str = "ABC"} | ^ | ; a.cc:10:15: error: expected ';' before '}' token 10 | str ="ARC" | ^ | ; 11 | } | ~
s750466733
p03813
C++
#include <bits/std/c++.h> using namespace std; int main(){ int n; cin >> n; if ( n < 1200 ) cout << "ABC" << endl; else cout << "ARC" << endl; }
a.cc:1:10: fatal error: bits/std/c++.h: No such file or directory 1 | #include <bits/std/c++.h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s496012999
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(void){ int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:14: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ~~~^~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:5:14: note: candidate: 'operator>(int, int)' (built-in) 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ~~~^~ a.cc:5:14: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1176:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1176 | operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1176:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/bits/regex.h:1236:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1236 | operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1236:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/bits/regex.h:1329:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1329 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1329:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/bits/regex.h:1403:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1403 | operator>(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1403:5: note: template argument deduction/substitution failed: a.cc:5:15: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/bits/regex.h:1497:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1497 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1497:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/bits/regex.h:1573:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1573 | operator>(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1573:5: note: template argument deduction/substitution failed: a.cc:5:15: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/bits/regex.h:1673:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1673 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1673:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/string_view:702: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> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:5:15: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/string_view:710: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>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:5:15: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _Cha
s920827473
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; } }
a.cc: In function 'int main()': a.cc:8:13: error: 'ABC' was not declared in this scope 8 | cout << ABC << endl; | ^~~ a.cc:11:13: error: 'ARC' was not declared in this scope 11 | cout << ARC << endl; | ^~~
s036704993
p03813
C++
#include<iostream> using namespace std; int main(){ int x; cin>>x; x<1200?cout<<"ABC"<<endl;:cout<<"ARC"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:33: error: expected ':' before ';' token 7 | x<1200?cout<<"ABC"<<endl;:cout<<"ARC"<<endl; | ^ | : a.cc:7:33: error: expected primary-expression before ';' token a.cc:7:34: error: expected primary-expression before ':' token 7 | x<1200?cout<<"ABC"<<endl;:cout<<"ARC"<<endl; | ^
s986304981
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin>>c; if(x<1200){ cout<<"ABC"<<endl; } else{ cout<<"ARC"<<endl; } }
a.cc: In function 'int main()': a.cc:6:8: error: 'c' was not declared in this scope 6 | cin>>c; | ^
s462029007
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; int ans,a,z; bool flag = 0; cin >> s; for(int i=0;i<s.size();i++){ if(s[i] == 'A' && flag == false){ a = i; flag = ture; } if(s[i] == 'Z') z = i; } ans = z-a+1; cout << ans << endl; }
a.cc: In function 'int main()': a.cc:12:14: error: 'ture' was not declared in this scope 12 | flag = ture; | ^~~~
s069655870
p03813
C++
#include<cstdio> #include<cmath> #include<string> #include<iostream> #include<algorithm> #include<utility> #include<vector> #include<map> #include<set> #include<limits> #include<bitset> #include<array> #include<numeric> #include<iomanip> #include<functional> using namespace std; typedef long long int ll; #define C(I) cout<<(I)<<endl ll n,m,a,b,c,x,y,z,aa[100010],ba[100010]; bool r,ra,rb,rc; string s,sa,sb,sc; char ca,cb,cc; vector<ll> va,vb,vc; int main(){ cin>>a; else C(a>=1200 ? "ARC":"ABC"); }
a.cc: In function 'int main()': a.cc:31:5: error: 'else' without a previous 'if' 31 | else C(a>=1200 ? "ARC":"ABC"); | ^~~~
s341874438
p03813
C++
#include <iostream> #include <array> #include <vector> #include <iomanip> #include <string> #include <cmath> #include <algorithm> #include <queue> #include <map> #include <set> using namespace std; typedef pair<int,int> P; typedef long long LL; const LL INF=1<<31; const LL MOD=1000000007; int main(){ int n; cin>>n; if(n<=1200)cout<<"ABC"<<endl; welse cout<<"ARC"<<endl; }
a.cc: In function 'int main()': a.cc:25:6: error: 'welse' was not declared in this scope; did you mean 'wmemset'? 25 | welse cout<<"ARC"<<endl; | ^~~~~ | wmemset
s695767264
p03813
C
include <stdio.h> int main(void) { int num = 0; scanf("%d",&num); if(num >= 1200){ printf("ARC\n"); } else{ printf("ABC\n"); } }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s631372840
p03813
C
#include<iostream> using namespace std; int main(){ int a; cin >> a; if(a<1200)cout << "ABC" << endl; else cout << "ARC" << endl; }
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s419352978
p03813
C++
#include <bits/stdc++.h> #include <type_traits> using namespace std; using ll = int64_t; #define int ll #define for(i, a, b) for (int i = int(a); i < int(b); i++) #define rep(i, b) for(i, 0, b) #define mp make_pair #define pb push_back #define eb emplace_back #define all(x) x.begin(), x.end() auto &errstream = cerr; #ifdef local #define cerr (cerr << "-- line " << __line__ << " -- ") #else class cerrdummy { } cerrdummy; template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { return cd; } using chartdummy = char; using traitsdummy = char_traits<chartdummy>; cerrdummy &operator<<(cerrdummy &cd, basic_ostream<chartdummy, traitsdummy> &( basic_ostream<chartdummy, traitsdummy> &)) { return cd; } #define cerr cerrdummy #endif #define reach cerr << "reached" << endl #define dmp(x) cerr << #x << ":" << x << endl #define zero(x) memset(x, 0, sizeof(x)) #define one(x) memset(x, -1, sizeof(x)) using pi = pair<int, int>; using vi = vector<int>; using ld = long double; template <class t, class u> ostream &operator<<(ostream &os, const pair<t, u> &p) { os << "(" << p.first << "," << p.second << ")"; return os; } template <class t> ostream &operator<<(ostream &os, const vector<t> &v) { os << "{"; rep(i, (int)v.size()) { if (i) os << ","; os << v[i]; } os << "}"; return os; } ll read() { ll i; scanf("%" scnd64, &i); return i; } void printspace() { printf(" "); } void printeoln() { printf("\n"); } void print(ll x, int suc = 1) { printf("%" prid64, x); if (suc == 1) printeoln(); if (suc == 2) printspace(); } string readstring() { static char buf[3341000]; scanf("%s", buf); return string(buf); } char *readchararray() { static char buf[3341000]; static int bufused = 0; char *ret = buf + bufused; scanf("%s", ret); bufused += strlen(ret) + 1; return ret; } template <class t, class u> void chmax(t &a, u b) { if (a < b) a = b; } template <class t, class u> void chmin(t &a, u b) { if (b < a) a = b; } template <class t> t sq(const t &t) { return t * t; } #define capital void yes(bool ex = true) { #ifdef capital cout << "yes" << endl; #else cout << "yes" << endl; #endif if (ex) exit(0); } void no(bool ex = true) { #ifdef capital cout << "no" << endl; #else cout << "no" << endl; #endif if (ex) exit(0); } const ll infll = llong_max / 3; #ifdef int const int inf = infll; #else const int inf = int_max / 2 - 100; #endif signed main() { int a = read(); if (a < 1200) cout << "abc" << endl; else cout << "arc" << endl; return 0; }
a.cc:20:20: error: 'cerrdummy' does not name a type 20 | template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { | ^~~~~~~~~ a.cc:25:1: error: 'cerrdummy' does not name a type 25 | cerrdummy &operator<<(cerrdummy &cd, | ^~~~~~~~~ a.cc: In function 'll read()': a.cc:60:12: error: expected ')' before 'scnd64' 60 | scanf("%" scnd64, &i); | ~ ^~~~~~~ | ) a.cc: In function 'void print(ll, ll)': a.cc:69:13: error: expected ')' before 'prid64' 69 | printf("%" prid64, x); | ~ ^~~~~~~ | ) a.cc: At global scope: a.cc:101:34: error: declaration of 'const t& t' shadows template parameter 101 | template <class t> t sq(const t &t) { return t * t; } | ~~~~~~~~~^ a.cc:101:11: note: template parameter 't' declared here 101 | template <class t> t sq(const t &t) { return t * t; } | ^~~~~ a.cc: In function 't sq(const t&)': a.cc:101:34: error: declaration of 'const t& t' shadows template parameter 101 | template <class t> t sq(const t &t) { return t * t; } | ~~~~~~~~~^ a.cc:101:11: note: template parameter 't' declared here 101 | template <class t> t sq(const t &t) { return t * t; } | ^~~~~ a.cc: At global scope: a.cc:123:18: error: 'llong_max' was not declared in this scope 123 | const ll infll = llong_max / 3; | ^~~~~~~~~
s876329437
p03813
C++
#include <bits/stdc++.h> #include <type_traits> using namespace std; using ll = int64_t; #define int ll #define for(i, a, b) for (int i = int(a); i < int(b); i++) #define rep(i, b) for(i, 0, b) #define mp make_pair #define pb push_back #define eb emplace_back #define all(x) x.begin(), x.end() auto &errstream = cerr; #ifdef local #define cerr (cerr << "-- line " << __line__ << " -- ") #else class cerrdummy { } cerrdummy; template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { return cd; } using chartdummy = char; using traitsdummy = char_traits<chartdummy>; cerrdummy &operator<<(cerrdummy &cd, basic_ostream<chartdummy, traitsdummy> &( basic_ostream<chartdummy, traitsdummy> &)) { return cd; } #define cerr cerrdummy #endif #define reach cerr << "reached" << endl #define dmp(x) cerr << #x << ":" << x << endl #define zero(x) memset(x, 0, sizeof(x)) #define one(x) memset(x, -1, sizeof(x)) using pi = pair<int, int>; using vi = vector<int>; using ld = long double; template <class t, class u> ostream &operator<<(ostream &os, const pair<t, u> &p) { os << "(" << p.first << "," << p.second << ")"; return os; } template <class t> ostream &operator<<(ostream &os, const vector<t> &v) { os << "{"; rep(i, (int)v.size()) { if (i) os << ","; os << v[i]; } os << "}"; return os; } ll read() { ll i; scanf("%" scnd64, &i); return i; } void printspace() { printf(" "); } void printeoln() { printf("\n"); } void print(ll x, int suc = 1) { printf("%" prid64, x); if (suc == 1) printeoln(); if (suc == 2) printspace(); } string readstring() { static char buf[3341000]; scanf("%s", buf); return string(buf); } char *readchararray() { static char buf[3341000]; static int bufused = 0; char *ret = buf + bufused; scanf("%s", ret); bufused += strlen(ret) + 1; return ret; } template <class t, class u> void chmax(t &a, u b) { if (a < b) a = b; } template <class t, class u> void chmin(t &a, u b) { if (b < a) a = b; } template <class t> t sq(const t &t) { return t * t; } #define capital void yes(bool ex = true) { #ifdef capital cout << "yes" << endl; #else cout << "yes" << endl; #endif if (ex) exit(0); } void no(bool ex = true) { #ifdef capital cout << "no" << endl; #else cout << "no" << endl; #endif if (ex) exit(0); } const ll infll = llong_max / 3; #ifdef int const int inf = infll; #else const int inf = int_max / 2 - 100; #endif signed main() { int a = read(); if (a < 1200) cout << "abc" << endl; else cout << "arc" << endl; return 0; }
a.cc:20:20: error: 'cerrdummy' does not name a type 20 | template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { | ^~~~~~~~~ a.cc:25:1: error: 'cerrdummy' does not name a type 25 | cerrdummy &operator<<(cerrdummy &cd, | ^~~~~~~~~ a.cc: In function 'll read()': a.cc:60:12: error: expected ')' before 'scnd64' 60 | scanf("%" scnd64, &i); | ~ ^~~~~~~ | ) a.cc: In function 'void print(ll, ll)': a.cc:69:13: error: expected ')' before 'prid64' 69 | printf("%" prid64, x); | ~ ^~~~~~~ | ) a.cc: At global scope: a.cc:101:34: error: declaration of 'const t& t' shadows template parameter 101 | template <class t> t sq(const t &t) { return t * t; } | ~~~~~~~~~^ a.cc:101:11: note: template parameter 't' declared here 101 | template <class t> t sq(const t &t) { return t * t; } | ^~~~~ a.cc: In function 't sq(const t&)': a.cc:101:34: error: declaration of 'const t& t' shadows template parameter 101 | template <class t> t sq(const t &t) { return t * t; } | ~~~~~~~~~^ a.cc:101:11: note: template parameter 't' declared here 101 | template <class t> t sq(const t &t) { return t * t; } | ^~~~~ a.cc: At global scope: a.cc:123:18: error: 'llong_max' was not declared in this scope 123 | const ll infll = llong_max / 3; | ^~~~~~~~~
s678708722
p03813
C++
#include <bits/stdc++.h> #include <type_traits> using namespace std; using ll = int64_t; #define int ll #define for(i, a, b) for (int i = int(a); i < int(b); i++) #define rep(i, b) for(i, 0, b) #define mp make_pair #define pb push_back #define eb emplace_back #define all(x) x.begin(), x.end() auto &errstream = cerr; #ifdef local #define cerr (cerr << "-- line " << __line__ << " -- ") #else class cerrdummy { } cerrdummy; template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { return cd; } using chartdummy = char; using traitsdummy = char_traits<chartdummy>; cerrdummy &operator<<(cerrdummy &cd, basic_ostream<chartdummy, traitsdummy> &( basic_ostream<chartdummy, traitsdummy> &)) { return cd; } #define cerr cerrdummy #endif #define reach cerr << "reached" << endl #define dmp(x) cerr << #x << ":" << x << endl #define zero(x) memset(x, 0, sizeof(x)) #define one(x) memset(x, -1, sizeof(x)) using pi = pair<int, int>; using vi = vector<int>; using ld = long double; template <class t, class u> ostream &operator<<(ostream &os, const pair<t, u> &p) { os << "(" << p.first << "," << p.second << ")"; return os; } template <class t> ostream &operator<<(ostream &os, const vector<t> &v) { os << "{"; rep(i, (int)v.size()) { if (i) os << ","; os << v[i]; } os << "}"; return os; } ll read() { ll i; scanf("%" scnd64, &i); return i; } void printspace() { printf(" "); } void printeoln() { printf("\n"); } void print(ll x, int suc = 1) { printf("%" prid64, x); if (suc == 1) printeoln(); if (suc == 2) printspace(); } string readstring() { static char buf[3341000]; scanf("%s", buf); return string(buf); } char *readchararray() { static char buf[3341000]; static int bufused = 0; char *ret = buf + bufused; scanf("%s", ret); bufused += strlen(ret) + 1; return ret; } template <class t, class u> void chmax(t &a, u b) { if (a < b) a = b; } template <class t, class u> void chmin(t &a, u b) { if (b < a) a = b; } template <class t> t sq(const t &t) { return t * t; } #define capital void yes(bool ex = true) { #ifdef capital cout << "yes" << endl; #else cout << "yes" << endl; #endif if (ex) exit(0); } void no(bool ex = true) { #ifdef capital cout << "no" << endl; #else cout << "no" << endl; #endif if (ex) exit(0); } const ll infll = llong_max / 3; #ifdef int const int inf = infll; #else const int inf = int_max / 2 - 100; #endif signed main() { int a = read(); if (a < 1200) cout << "abc" << endl; else cout << "arc" << endl; return 0; }
a.cc:20:20: error: 'cerrdummy' does not name a type 20 | template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { | ^~~~~~~~~ a.cc:25:1: error: 'cerrdummy' does not name a type 25 | cerrdummy &operator<<(cerrdummy &cd, | ^~~~~~~~~ a.cc: In function 'll read()': a.cc:60:12: error: expected ')' before 'scnd64' 60 | scanf("%" scnd64, &i); | ~ ^~~~~~~ | ) a.cc: In function 'void print(ll, ll)': a.cc:69:13: error: expected ')' before 'prid64' 69 | printf("%" prid64, x); | ~ ^~~~~~~ | ) a.cc: At global scope: a.cc:101:34: error: declaration of 'const t& t' shadows template parameter 101 | template <class t> t sq(const t &t) { return t * t; } | ~~~~~~~~~^ a.cc:101:11: note: template parameter 't' declared here 101 | template <class t> t sq(const t &t) { return t * t; } | ^~~~~ a.cc: In function 't sq(const t&)': a.cc:101:34: error: declaration of 'const t& t' shadows template parameter 101 | template <class t> t sq(const t &t) { return t * t; } | ~~~~~~~~~^ a.cc:101:11: note: template parameter 't' declared here 101 | template <class t> t sq(const t &t) { return t * t; } | ^~~~~ a.cc: At global scope: a.cc:123:18: error: 'llong_max' was not declared in this scope 123 | const ll infll = llong_max / 3; | ^~~~~~~~~
s436565076
p03813
C++
#include <bits/stdc++.h> #include <type_traits> using namespace std; using ll = int64_t; #define int ll #define for(i, a, b) for (int i = int(a); i < int(b); i++) #define rep(i, b) for(i, 0, b) #define mp make_pair #define pb push_back #define eb emplace_back #define all(x) x.begin(), x.end() auto &errstream = cerr; #ifdef local #define cerr (cerr << "-- line " << __line__ << " -- ") #else class cerrdummy { } cerrdummy; template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { return cd; } using chartdummy = char; using traitsdummy = char_traits<chartdummy>; cerrdummy &operator<<(cerrdummy &cd, basic_ostream<chartdummy, traitsdummy> &( basic_ostream<chartdummy, traitsdummy> &)) { return cd; } #define cerr cerrdummy #endif #define reach cerr << "reached" << endl #define dmp(x) cerr << #x << ":" << x << endl #define zero(x) memset(x, 0, sizeof(x)) #define one(x) memset(x, -1, sizeof(x)) using pi = pair<int, int>; using vi = vector<int>; using ld = long double; template <class t, class u> ostream &operator<<(ostream &os, const pair<t, u> &p) { os << "(" << p.first << "," << p.second << ")"; return os; } template <class t> ostream &operator<<(ostream &os, const vector<t> &v) { os << "{"; rep(i, (int)v.size()) { if (i) os << ","; os << v[i]; } os << "}"; return os; } ll read() { ll i; scanf("%" scnd64, &i); return i; } void printspace() { printf(" "); } void printeoln() { printf("\n"); } void print(ll x, int suc = 1) { printf("%" prid64, x); if (suc == 1) printeoln(); if (suc == 2) printspace(); } string readstring() { static char buf[3341000]; scanf("%s", buf); return string(buf); } char *readchararray() { static char buf[3341000]; static int bufused = 0; char *ret = buf + bufused; scanf("%s", ret); bufused += strlen(ret) + 1; return ret; } template <class t, class u> void chmax(t &a, u b) { if (a < b) a = b; } template <class t, class u> void chmin(t &a, u b) { if (b < a) a = b; } template <class t> t sq(const t &t) { return t * t; } #define capital void yes(bool ex = true) { #ifdef capital cout << "yes" << endl; #else cout << "yes" << endl; #endif if (ex) exit(0); } void no(bool ex = true) { #ifdef capital cout << "no" << endl; #else cout << "no" << endl; #endif if (ex) exit(0); } const ll infll = llong_max / 3; #ifdef int const int inf = infll; #else const int inf = int_max / 2 - 100; #endif signed main() { int a = read(); if (a < 1200) cout << "abc" << endl; else cout << "arc" << endl; return 0; }
a.cc:20:20: error: 'cerrdummy' does not name a type 20 | template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { | ^~~~~~~~~ a.cc:25:1: error: 'cerrdummy' does not name a type 25 | cerrdummy &operator<<(cerrdummy &cd, | ^~~~~~~~~ a.cc: In function 'll read()': a.cc:60:12: error: expected ')' before 'scnd64' 60 | scanf("%" scnd64, &i); | ~ ^~~~~~~ | ) a.cc: In function 'void print(ll, ll)': a.cc:69:13: error: expected ')' before 'prid64' 69 | printf("%" prid64, x); | ~ ^~~~~~~ | ) a.cc: At global scope: a.cc:101:34: error: declaration of 'const t& t' shadows template parameter 101 | template <class t> t sq(const t &t) { return t * t; } | ~~~~~~~~~^ a.cc:101:11: note: template parameter 't' declared here 101 | template <class t> t sq(const t &t) { return t * t; } | ^~~~~ a.cc: In function 't sq(const t&)': a.cc:101:34: error: declaration of 'const t& t' shadows template parameter 101 | template <class t> t sq(const t &t) { return t * t; } | ~~~~~~~~~^ a.cc:101:11: note: template parameter 't' declared here 101 | template <class t> t sq(const t &t) { return t * t; } | ^~~~~ a.cc: At global scope: a.cc:123:18: error: 'llong_max' was not declared in this scope 123 | const ll infll = llong_max / 3; | ^~~~~~~~~
s947045781
p03813
C++
#include<algorithm> #include<string> using namespace std; int main(void) { int a; cin >> a; if (a < 1200) { cout << "ABC"; } else { cout << "ARC"; } return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'cin' was not declared in this scope 8 | cin >> a; | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include<string> +++ |+#include <iostream> 3 | using namespace std; a.cc:9:25: error: 'cout' was not declared in this scope 9 | if (a < 1200) { cout << "ABC"; } | ^~~~ a.cc:9:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:10:16: error: 'cout' was not declared in this scope 10 | else { cout << "ARC"; } | ^~~~ a.cc:10:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
s318485685
p03813
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) //const ll mod = 1000000007; int main() { //cout.precision(10); int a; cin >> a; if(x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:8: error: 'x' was not declared in this scope 14 | if(x < 1200) cout << "ABC" << endl; | ^
s239712642
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { string ans = "ARC"; int x; cin >> x; if(x<1200){ ans = "ABC"; } cout << ans << endl;
a.cc: In function 'int main()': a.cc:11:29: error: expected '}' at end of input 11 | cout << ans << endl; | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s624233490
p03813
C++
#include<iostream> #include<string> using namespace std; int main(){ string s; cin >> s; for(int i = 0; i < s.size(); i++){ if("A" == s[i]){ for(int j = s.size() - 1; j > i; j--){ if("Z" == s[j]){ cout << j - i + 1; } } } } cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if("A" == s[i]){ a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if("Z" == s[j]){
s278234524
p03813
C++
print(["ARC","ABC"][int(input())<1200])
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token 1 | print(["ARC","ABC"][int(input())<1200]) | ^
s711682374
p03813
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define debug(x) cerr << x << "\n" #define all(x) (x).begin(),(x).end() #define exist(s, e)((s).find(e) != (s).end()) int main(){ cin.tie(0); ios::sync_with_stdio(false); int x; cin >> x; cout << x < 1200 ? "ABC\n" : "ARC\n"; return 0; }
a.cc: In function 'int main()': a.cc:15:15: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int') 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ~~~~~~~~~ ^ ~~~~ | | | | | int | std::basic_ostream<char> a.cc:15:15: note: candidate: 'operator<(int, int)' (built-in) 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ~~~~~~~~~~^~~~~~ a.cc:15:15: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int' In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:15:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:15:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h: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:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /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:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /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:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /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:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /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:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /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:15:17: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /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:15:17: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /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:15:17: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ^~~~ /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_str
s206316329
p03813
C++
#include <iostream> using namespace std; int main() { int A; cin >> A+; if (A < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
a.cc: In function 'int main()': a.cc:6:12: error: expected primary-expression before ';' token 6 | cin >> A+; | ^