submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s528847649 | p03813 | Java | import java.util.*
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
System.out.println((x < 1200) ? "ABC" : "ARC");
}
} | Main.java:1: error: ';' expected
import java.util.*
^
1 error
|
s398849144 | p03813 | C++ | include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<string>
#include<cmath>
#include<vector>
#include<stack>
#include<queue>
#include<time.h>
#include<tuple>
#include<set>
#include<map>
#include<cctype>
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define vint vector<int>
#define vvint vector<vint>
#define ct(a) cout<<a<<endl
#define tget(a,b) get<a>(b)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const ll INF = 1e18;
const int MOD = 1e9 + 7;
int a;
int main(void) {
cin >> a;
if (a < 1200)ct("ABC");
else ct("ARC");
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<stdio.h>
| ^~~~~~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:3:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/14/bits/exception_ptr.h:38,
from /usr/include/c++/14/exception:166,
from /usr/include/c++/14/ios:41:
/usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function
131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
In file included from /usr/include/stdlib.h:32,
from /usr/include/c++/14/cstdlib:79,
from /usr/include/c++/14/stdlib.h:36,
from a.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive]
132 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive]
134 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/14/new:140:29: error: 'std::size_t' has not been declared
140 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/14/new:142:31: error: 'std::size_t' has not been declared
142 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/14/new:145:26: error: declaration of 'operator new' as non-function
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/new:145:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:145:52: error: expected primary-expression before 'const'
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/include/c++/14/new:147:26: error: declaration of 'operator new []' as non-function
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/new:147:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:147:54: error: expected primary-expression before 'const'
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/include/c++/14/new:154:26: error: declaration of 'operator new' as non-function
154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^~~~~~~~
/usr/include/c++/14/new:154:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:154:68: error: expected primary-expression before ')' token
154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^
/usr/include/c++/14/new:155:73: error: attributes after parenthesized initializer ignored [-fpermissive]
155 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/14/new:156:26: error: declaration of 'operator new' as non-function
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~~~
/usr/include/c++/14/new:156:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:156:68: error: expected primary-expression before ',' token
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^
/usr/include/c++/14/new:156:70: error: expected primary-expression before 'const'
156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~
/usr/include/c++/14/new:162:26: error: declaration of 'operator new []' as non-function
162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^~~~~~~~
/usr/include/c++/14/new:162:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:162:70: error: expected primary-expression before ')' token
162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^
/usr/include/c++/14/new:163:73: error: attributes after parenthesized initializer ignored [-fpermissive]
163 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/14/new:164:26: error: declaration of 'operator new []' as non-function
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~~~
/usr/include/c++/14/new:164:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/new:164:70: error: expected primary-expression before ',' token
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^
/usr/include/c++/14/new:164:72: error: expected primary-expression before 'const'
164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~
/usr/include/c++/14/new:171:29: error: 'std::size_t' has not been declared
171 | void operator delete(void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/14/new:173:31: error: 'std::size_t' has not been declared
173 | void operator delete[](void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/14/new:179:33: error: declaration of 'operator new' as non-function
179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/new:179:51: error: 'size_t' is not a member of 'std'; did you mean 'si |
s667521779 | p03813 | C++ | #include <iostream>
using namespace std;
int main()
{
int x;
cin >> x;
if (x < 1200) {
cout << "ABC";
}
else {
cout < "ARC";
}
} | a.cc: In function 'int main()':
a.cc:14:22: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
14 | cout < "ARC";
| ~~~~ ^ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
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:14:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
14 | cout < "ARC";
| ^~~~~
/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:14:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
14 | cout < "ARC";
| ^~~~~
/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:14:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
14 | cout < "ARC";
| ^~~~~
/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:14:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
14 | cout < "ARC";
| ^~~~~
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:14:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
14 | cout < "ARC";
| ^~~~~
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:14:24: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
14 | cout < "ARC";
| ^~~~~
/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:14:24: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
14 | cout < "ARC";
| ^~~~~
/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:14:24: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*'
14 | cout < "ARC";
| ^~~~~
/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:14:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
14 | cout < "ARC";
| ^~~~~
/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:14:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
14 | cout < "ARC";
| ^~~~~
/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:14:24: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
14 | cout < "ARC";
| ^~~~~
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:14:24: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::tuple<_UTypes ...>'
14 | cout < "ARC";
| ^~~~~
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::ostream' {aka '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::ostream' {aka 'std::basic_ostream<char>'} to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s314871842 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define itrfor(itr,A) for(auto itr = A.begin(); itr !=A.end();itr++)
typedef long long llong;
char moji[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
char moji2[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
char moji3[10]={'0','1','2','3','4','5','6','7','8','9'};
#define Sort(a) sort(a.begin(),a.end());
#define Reverse(a) reverse(a.begin(),a.end());
#define print(a) cout << a << endl;
int main(){
int x;
cin >> x;
if(x<1200) cout << "ABC" << endl;
if(1200<=x) cout << "ARC" << endl; | a.cc: In function 'int main()':
a.cc:20:37: error: expected '}' at end of input
20 | if(1200<=x) cout << "ARC" << endl;
| ^
a.cc:16:11: note: to match this '{'
16 | int main(){
| ^
|
s448071831 | p03813 | C++ | #include<iostream>
using namespace std;
int main(){
int x;
cin>>x;
cout<<(c<1200?"ABC":"ARC");
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:10: error: 'c' was not declared in this scope
7 | cout<<(c<1200?"ABC":"ARC");
| ^
|
s295419823 | p03813 | C++ | if int(input()) < 1200 :
print "ABC"
else :
print "ARC" | a.cc:1:1: error: expected unqualified-id before 'if'
1 | if int(input()) < 1200 :
| ^~
|
s480836399 | p03813 | C++ | #include <iosteam>
using namespace std;
int main(){
int x;
cin >> x;
if ( x < 1200 ) cout << "ABC" << endl;
else cout << "ARC" << endl;
} | a.cc:1:10: fatal error: iosteam: No such file or directory
1 | #include <iosteam>
| ^~~~~~~~~
compilation terminated.
|
s567209907 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
cout << (x < 1200) ? "ABC" : "ARC" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:38: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout << (x < 1200) ? "ABC" : "ARC" << endl;
| ~~~~~~^~~~~~~
|
s788065662 | p03813 | C++ | import sys
import math
import collections
import itertools
import array
import inspect
# Set max recursion limit
sys.setrecursionlimit(1000000)
# Debug output
def chkprint(*args):
names = {
id(v): k
for k, v in inspect.currentframe().f_back.f_locals.items()
}
print(', '.join(
names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))
# Binary converter
def to_bin(x):
return bin(x)[2:]
def li_input():
return [int(_) for _ in input().split()]
def gcd(n, m):
if n % m == 0:
return m
else:
return gcd(m, n % m)
def gcd_list(L):
v = L[0]
for i in range(1, len(L)):
v = gcd(v, L[i])
return v
def lcm(n, m):
return (n * m) // gcd(n, m)
def lcm_list(L):
v = L[0]
for i in range(1, len(L)):
v = lcm(v, L[i])
return v
# Width First Search (+ Distance)
def wfs_d(D, N, K):
"""
D: 隣接行列(距離付き)
N: ノード数
K: 始点ノード
"""
dfk = [-1] * (N + 1)
dfk[K] = 0
cps = [(K, 0)]
r = [False] * (N + 1)
r[K] = True
while len(cps) != 0:
n_cps = []
for cp, cd in cps:
for i, dfcp in enumerate(D[cp]):
if dfcp != -1 and not r[i]:
dfk[i] = cd + dfcp
n_cps.append((i, cd + dfcp))
r[i] = True
cps = n_cps[:]
return dfk
# Depth First Search (+Distance)
def dfs_d(v, pre, dist):
"""
v: 現在のノード
pre: 1つ前のノード
dist: 現在の距離
以下は別途用意する
D: 隣接リスト(行列ではない)
D_dfs_d: dfs_d関数で用いる,始点ノードから見た距離リスト
"""
global D
global D_dfs_d
D_dfs_d[v] = dist
for next_v, d in D[v]:
if next_v != pre:
dfs_d(next_v, v, dist + d)
return
def sigma(N):
ans = 0
for i in range(1, N + 1):
ans += i
return ans
def comb(n, r):
if n - r < r: r = n - r
if r == 0: return 1
if r == 1: return n
numerator = [n - r + k + 1 for k in range(r)]
denominator = [k + 1 for k in range(r)]
for p in range(2, r + 1):
pivot = denominator[p - 1]
if pivot > 1:
offset = (n - r) % p
for k in range(p - 1, r, p):
numerator[k - offset] /= pivot
denominator[k] /= pivot
result = 1
for k in range(r):
if numerator[k] > 1:
result *= int(numerator[k])
return result
def bisearch(L, target):
low = 0
high = len(L) - 1
while low <= high:
mid = (low + high) // 2
guess = L[mid]
if guess == target:
return True
elif guess < target:
low = mid + 1
elif guess > target:
high = mid - 1
if guess != target:
return False
# --------------------------------------------
dp = None
def main():
if int(input()) < 1200:
print("ABC")
else:
print("ARC")
main()
| a.cc:8:3: error: invalid preprocessing directive #Set
8 | # Set max recursion limit
| ^~~
a.cc:12:3: error: invalid preprocessing directive #Debug
12 | # Debug output
| ^~~~~
a.cc:18:11: warning: multi-character character constant [-Wmultichar]
18 | print(', '.join(
| ^~~~
a.cc:19:30: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
19 | names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))
a.cc:19:28: warning: multi-character character constant [-Wmultichar]
19 | names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))
| ^~~~~
a.cc:19:37: warning: multi-character character constant [-Wmultichar]
19 | names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))
| ^~~~~
a.cc:22:3: error: invalid preprocessing directive #Binary
22 | # Binary converter
| ^~~~~~
a.cc:60:3: error: invalid preprocessing directive #Width
60 | # Width First Search (+ Distance)
| ^~~~~
a.cc:62:7: warning: missing terminating " character
62 | """
| ^
a.cc:62:7: error: missing terminating " character
a.cc:66:7: warning: missing terminating " character
66 | """
| ^
a.cc:66:7: error: missing terminating " character
a.cc:88:3: error: invalid preprocessing directive #Depth
88 | # Depth First Search (+Distance)
| ^~~~~
a.cc:90:7: warning: missing terminating " character
90 | """
| ^
a.cc:90:7: error: missing terminating " character
a.cc:98:7: warning: missing terminating " character
98 | """
| ^
a.cc:98:7: error: missing terminating " character
a.cc:158:3: error: invalid preprocessing directive #--
158 | # --------------------------------------------
| ^~
a.cc:1:1: error: 'import' does not name a type
1 | import sys
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:18:10: error: expected constructor, destructor, or type conversion before '(' token
18 | print(', '.join(
| ^
|
s894983786 | p03813 | C++ | x = int(input().rstrip())
print('ABC' if x < 1200 else 'ARC')
| a.cc:3:7: warning: multi-character character constant [-Wmultichar]
3 | print('ABC' if x < 1200 else 'ARC')
| ^~~~~
a.cc:3:30: warning: multi-character character constant [-Wmultichar]
3 | print('ABC' if x < 1200 else 'ARC')
| ^~~~~
a.cc:1:1: error: 'x' does not name a type
1 | x = int(input().rstrip())
| ^
|
s732889335 | p03813 | C++ | #include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
int h,w,x;
char s[1000][1000];
bool visited [1000][1000];
pair<int,int> start,goal;
queue<pair<int,pair<int,int>>> q;
vector<pair<int,int>> ino;
int main(){
int a,b,c;cin>>a>>b>>c;
if(a<1200){
cout << "ABC";
return 0;
}else{
result = "ARC";
}
}
| a.cc: In function 'int main()':
a.cc:23:5: error: 'result' was not declared in this scope
23 | result = "ARC";
| ^~~~~~
|
s479735717 | p03813 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int a;
cin >> a;
if (x < 1200) {
cout << "ABC" << endl;
}
else {
cout << "ARC" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:13: error: 'x' was not declared in this scope
6 | if (x < 1200) {
| ^
|
s996104565 | p03813 | C++ | #include <iostream>
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:21: error: expected primary-expression before '<' token
8 | cout<<"ABC"<<<endl;
| ^
|
s426245610 | p03813 | C | #include<stdio.h>
int main(){
int a;
scanf("%d",&a)
if(a>=1200)puts("ARC");
else puts("ABC");
return 0;
} | main.c: In function 'main':
main.c:5:15: error: expected ';' before 'if'
5 | scanf("%d",&a)
| ^
| ;
6 | if(a>=1200)puts("ARC");
| ~~
main.c:7:1: error: 'else' without a previous 'if'
7 | else puts("ABC");
| ^~~~
|
s177434435 | 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:5:11: error: expected ';' before 'if'
5 | cin >> x
| ^
| ;
6 | if(x<1200){cout << "ABC" << endl;}
| ~~
a.cc:7:3: error: 'else' without a previous 'if'
7 | else{ cout << "ARC" << endl;}
| ^~~~
|
s235374110 | 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:5:11: error: expected ';' before 'if'
5 | cin >> x
| ^
| ;
6 | if(x<1200)cout << "ABC" << endl;
| ~~
a.cc:7:3: error: 'else' without a previous 'if'
7 | else cout << "ARC" << endl;
| ^~~~
|
s468711308 | p03813 | C++ | include <iostream>
using namespace std;
int main()
{
int x;
cin >> x;
if (x < 1200) {
cout << "ABC" << endl;
} else {
cout << "ARC" << endl;
}
}
| a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
9 | cin >> x;
| ^~~
a.cc:12:9: error: 'cout' was not declared in this scope
12 | cout << "ABC" << endl;
| ^~~~
a.cc:12:26: error: 'endl' was not declared in this scope
12 | cout << "ABC" << endl;
| ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
14 | cout << "ARC" << endl;
| ^~~~
a.cc:14:26: error: 'endl' was not declared in this scope
14 | cout << "ARC" << endl;
| ^~~~
|
s948205884 | p03813 | C++ | /*input
happy,newyear,enjoy
*/
#include <bits/stdc++.h>
#pragma GCC optimize("unroll-loops,no-stack-protector")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<double,double> pdd;
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define ALL(a) a.begin(),a.end()
#define SZ(a) ((int)a.size())
#define F first
#define S second
#define REP(i,n) for(int i=0;i<((int)n);i++)
#define pb push_back
#define MP(a,b) make_pair(a,b)
#define SORT_UNIQUE(c) (sort(c.begin(),c.end()), c.resize(distance(c.begin(),unique(c.begin(),c.end()))))
#define GET_POS(c,x) (lower_bound(c.begin(),c.end(),x)-c.begin())
#ifdef leowang
#define debug(...) do{\
fprintf(stderr,"%s - %d : (%s) = ",__PRETTY_FUNCTION__,__LINE__,#__VA_ARGS__);\
_DO(__VA_ARGS__);\
}while(0)
template<typename I> void _DO(I&&x){cerr<<x<<endl;}
template<typename I,typename...T> void _DO(I&&x,T&&...tail){cerr<<x<<", ";_DO(tail...);}
#else
#define debug(...)
#endif
template<typename T1,typename T2>
ostream& operator<<(ostream& out,pair<T1,T2> P){
out<<'('<<P.F<<','<<P.S<<')';
return out;
}
//}}}
const ll maxn=300005;
const ll maxlg=__lg(maxn)+2;
const ll INF64=8000000000000000000LL;
const int INF=0x3f3f3f3f;
const ll MOD=ll(1e9+7);
const double PI=acos(-1);
//const ll p=880301;
//const ll P=31;
ll mypow(ll a,ll b){
ll res=1LL;
while(b){
if(b&1) res=res*a%MOD;
a=a*a%MOD;
b>>=1;
}
return res;
}
int main()
{
IOS;
int n;
cin>>n;
if(n<1200){
cout<<"ABC";
}
else cout<<"ARC"
return 0;
}
| a.cc: In function 'int main()':
a.cc:65:25: error: expected ';' before 'return'
65 | else cout<<"ARC"
| ^
| ;
66 | return 0;
| ~~~~~~
|
s990115968 | p03813 | C++ | #include <iostream>
using namespacestd;
int main()
{
| a.cc:2:7: error: expected nested-name-specifier before 'namespacestd'
2 | using namespacestd;
| ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:2: error: expected '}' at end of input
5 | {
| ~^
|
s738966997 | p03813 | C | #include <stdio.h>
int main(void){
int x;scanf("%d",&x);
print("%s\n",(x>=1200)?"ARC":"ABC");
return 0;
} | main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
4 | print("%s\n",(x>=1200)?"ARC":"ABC");
| ^~~~~
| printf
|
s246844622 | p03813 | C++ | #include<bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; ++i)
#define FOR(i, a, b) for(int i = a; i < b; ++i)
#define F first
#define S second
#define OUT(x) cout << (x) << "\n"
using namespace std;
using point = pair< int,int >;
using ll = long long;
int main() {
int x;
cin >> x;
OUT(x < 1200 : "ABC" : "ARC");
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:18: error: expected ')' before ':' token
15 | OUT(x < 1200 : "ABC" : "ARC");
| ^
a.cc:6:25: note: in definition of macro 'OUT'
6 | #define OUT(x) cout << (x) << "\n"
| ^
a.cc:6:24: note: to match this '('
6 | #define OUT(x) cout << (x) << "\n"
| ^
a.cc:15:5: note: in expansion of macro 'OUT'
15 | OUT(x < 1200 : "ABC" : "ARC");
| ^~~
|
s525579505 | p03813 | C |
int main (){
int x;
printf("Smeke's current rating : ");
scanf("%d",&x);fflush(stdin);
if(x<1200 && x>=1){
printf("ABC\n");
}else if(x>= 1200 && x<= 3000){
printf("ARC\n");
}
return 0;
}
| main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
4 | printf("Smeke's current rating : ");
| ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 |
main.c:4:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
4 | printf("Smeke's current rating : ");
| ^~~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
5 | scanf("%d",&x);fflush(stdin);
| ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:20: error: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
5 | scanf("%d",&x);fflush(stdin);
| ^~~~~~
main.c:5:27: error: 'stdin' undeclared (first use in this function)
5 | scanf("%d",&x);fflush(stdin);
| ^~~~~
main.c:5:27: note: 'stdin' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:5:27: note: each undeclared identifier is reported only once for each function it appears in
|
s067826514 | p03813 | C | #include <stdio.h>
int main (){
int x;
printf("Smeke's current rating : ");
scanf("%d",&x);fflush(stdin);
if(x<1200 && x>=1){
printf("ABC\n");
}else if(x>= 1200 && x<= 3000){
printf("ARC\n");
return 0;
} | main.c: In function 'main':
main.c:16:1: error: expected declaration or statement at end of input
16 | }
| ^
|
s123395319 | p03813 | C | #include <stdio.h>
int main()
{
int x;
1<=x<=3000;
scanf("%d", &x);
if(x<1200){
printf("ABC");
}
else
{
printf("ARC")
}
return 0;
}
| main.c: In function 'main':
main.c:12:22: error: expected ';' before '}' token
12 | printf("ARC")
| ^
| ;
13 | }
| ~
|
s473700061 | p03813 | C++ | #include <stdio.h>
int main()
{
int x;
1<=x<=3000;
scanf("%d", &x);
if(x<1200){
printf("ABC");
}
else
{
printf("ARC")
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before '}' token
12 | printf("ARC")
| ^
| ;
13 | }
| ~
|
s652777175 | p03813 | C | #include <stdio.h>
int main()
{
int x;
printf("enter x:");
scanf("%d", &x);
if(1 <= x <= 1200)
{
printf("\n Smeke's current rating is lower than 1200 thus it will be ABC.
", x);
}
else if(1200 <= x <= 3000)
{
printf("\n Smeke's current rating is higher than 1200 thus it will be ARC.
", x);
}
else
{
printf("\n can't participate", x);
}
return 0;
}
| main.c: In function 'main':
main.c:9:16: warning: missing terminating " character
9 | printf("\n Smeke's current rating is lower than 1200 thus it will be ABC.
| ^
main.c:9:16: error: missing terminating " character
9 | printf("\n Smeke's current rating is lower than 1200 thus it will be ABC.
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:11:1: warning: missing terminating " character
11 | ", x);
| ^
main.c:11:1: error: missing terminating " character
11 | ", x);
| ^~~~~~
main.c:12:5: error: expected expression before '}' token
12 | }
| ^
main.c:9:16: error: expected ';' before '}' token
9 | printf("\n Smeke's current rating is lower than 1200 thus it will be ABC.
| ^
| ;
......
12 | }
| ~
main.c:15:19: warning: missing terminating " character
15 | printf("\n Smeke's current rating is higher than 1200 thus it will be ARC.
| ^
main.c:15:19: error: missing terminating " character
15 | printf("\n Smeke's current rating is higher than 1200 thus it will be ARC.
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:17:1: warning: missing terminating " character
17 | ", x);
| ^
main.c:17:1: error: missing terminating " character
17 | ", x);
| ^~~~~~
main.c:18:8: error: expected expression before '}' token
18 | }
| ^
main.c:15:19: error: expected ';' before '}' token
15 | printf("\n Smeke's current rating is higher than 1200 thus it will be ARC.
| ^
| ;
......
18 | }
| ~
|
s615524395 | p03813 | C | #include <stdio.h>
int main()
{
int x;
printf("enter x:");
scanf("%d", &x);
if(1 <= x <= 1200)
{
printf("\n Smeke's current rating is less than 1200, thus the output should be ABC.
", x);
}
else if(1200 <= x <= 3000)
{
printf("\n Smeke's current rating is not less than 1200, thus the output should be ABC.
", x);
}
else
{
printf("\n can't participate", x);
}
return 0;
}
| main.c: In function 'main':
main.c:9:16: warning: missing terminating " character
9 | printf("\n Smeke's current rating is less than 1200, thus the output should be ABC.
| ^
main.c:9:16: error: missing terminating " character
9 | printf("\n Smeke's current rating is less than 1200, thus the output should be ABC.
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:11:1: warning: missing terminating " character
11 | ", x);
| ^
main.c:11:1: error: missing terminating " character
11 | ", x);
| ^~~~~~
main.c:12:5: error: expected expression before '}' token
12 | }
| ^
main.c:9:16: error: expected ';' before '}' token
9 | printf("\n Smeke's current rating is less than 1200, thus the output should be ABC.
| ^
| ;
......
12 | }
| ~
main.c:15:19: warning: missing terminating " character
15 | printf("\n Smeke's current rating is not less than 1200, thus the output should be ABC.
| ^
main.c:15:19: error: missing terminating " character
15 | printf("\n Smeke's current rating is not less than 1200, thus the output should be ABC.
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:17:1: warning: missing terminating " character
17 | ", x);
| ^
main.c:17:1: error: missing terminating " character
17 | ", x);
| ^~~~~~
main.c:18:8: error: expected expression before '}' token
18 | }
| ^
main.c:15:19: error: expected ';' before '}' token
15 | printf("\n Smeke's current rating is not less than 1200, thus the output should be ABC.
| ^
| ;
......
18 | }
| ~
|
s112452615 | p03813 | C | #include <stdio.h>
int main()
{
int x;
1 < x < 3{,}000;
printf ("Smeke's current rating is =");
scanf ("%d", &x);
if (x < 1200) {
printf ("Smeke's current rating is lower than 1200 thus it will be ABC");
} else if (x > 1200) {
printf ("Smeke's current rating is higher than 1200 thus it will be ARC");
}
return 0;
} | main.c: In function 'main':
main.c:5:18: error: expected ';' before '{' token
5 | 1 < x < 3{,}000;
| ^
| ;
|
s156451505 | p03813 | C | #include <stdio.h>
#include <stdlib.h>
int main(){
int x;
scanf("%d",&x);
if (x < 1200){
printf("ABC\n");
printf("Smeke's current rating is less than 1200, thus the output should be ABC.");
}
else{
printf("ARC");
printf("\nSmeke's current rating is not less than 1200, thus the output should be ARC.")
}
return 0;
}
| main.c: In function 'main':
main.c:16:97: error: expected ';' before '}' token
16 | printf("\nSmeke's current rating is not less than 1200, thus the output should be ARC.")
| ^
| ;
17 | }
| ~
|
s379381002 | p03813 | C++ | #include<iostream>
using namespace sd;
int main(){
int x;
cin>>x;
if(x<1200)cout<<"ABC"<<endl;
else cout<<"ARC"<<endl;
} | a.cc:2:17: error: 'sd' is not a namespace-name
2 | using namespace sd;
| ^~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>x;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:6:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
6 | if(x<1200)cout<<"ABC"<<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
6 | if(x<1200)cout<<"ABC"<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | else cout<<"ARC"<<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | else cout<<"ARC"<<endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s153283258 | p03813 | C++ | #include<iostream>
#include<string>
int main(){
int rate;
cin>>rate;
if(rate<1200){
cout<<"ABC"<<endl;
}else{
cout<<"ARC"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin>>rate;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | 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:11:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | cout<<"ABC"<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:13:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
13 | 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:13:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
13 | cout<<"ARC"<<endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s901361892 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
cout << x < 1200? "ABC" : "ARC" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:19: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'int')
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ~~~~~~~~~ ^ ~~~~
| | |
| | int
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:7:19: note: candidate: 'operator<(int, int)' (built-in)
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ~~~~~~~~~~^~~~~~
a.cc:7:19: note: no known conversion for argument 1 from 'std::basic_ostream<char>::__ostream_type' {aka '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:7:21: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << x < 1200? "ABC" : "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:21: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
7 | cout << x < 1200? "ABC" : "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:21: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << x < 1200? "ABC" : "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:21: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
7 | cout << x < 1200? "ABC" : "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:21: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << x < 1200? "ABC" : "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:21: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
7 | cout << x < 1200? "ABC" : "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:21: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/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:21: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ^~~~
In file included from /usr/include/c++/14/bits/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:21: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:7:21: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:7:21: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:7:21: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ^~~~
In file included from /usr/include/c++/14/bits/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:21: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:7:21: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ^~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_Cha |
s329258088 | 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())
| ^
|
s304630258 | p03813 | Java | import java.util.*
fun main(args: Array<String>) {
val sc = Scanner(System.`in`)
val n = sc.nextInt()
println(if (n < 1200) "ABC" else "ARC")
} | Main.java:1: error: ';' expected
import java.util.*
^
Main.java:4: error: illegal character: '`'
val sc = Scanner(System.`in`)
^
Main.java:4: error: illegal character: '`'
val sc = Scanner(System.`in`)
^
3 errors
|
s563822618 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a;
cin >> a;
if(a >= 1200){
cout << "ARC" << endl;
} else {
cout << "ABC" << endl;
}
return 0;
}p | a.cc:13:2: error: 'p' does not name a type
13 | }p
| ^
|
s514981010 | p03813 | C++ | #include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
cout<< (a<1200)?"ABC":"ARC"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:36: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout<< (a<1200)?"ABC":"ARC"<<endl;
| ~~~~~^~~~~~
|
s892548231 | p03813 | C++ | #include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
cout<< a<1200?"ABC":"ARC"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:17: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int')
8 | cout<< a<1200?"ABC":"ARC"<<endl;
| ~~~~~~~~^~~~~
| | |
| | int
| std::basic_ostream<char>
a.cc:8:17: note: candidate: 'operator<(int, int)' (built-in)
8 | cout<< a<1200?"ABC":"ARC"<<endl;
| ~~~~~~~~^~~~~
a.cc:8:17: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
8 | cout<< a<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:8:18: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
8 | cout<< a<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:8:18: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
8 | cout<< a<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:8:18: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
8 | cout<< a<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:8:18: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
8 | cout<< a<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:8:18: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | cout<< a<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:8:18: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | cout<< a<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:8:18: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
8 | cout<< a<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:8:18: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
8 | cout<< a<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:8:18: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
8 | cout<< a<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:8:18: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
8 | cout<< a<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:8:18: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
8 | cout<< a<1200?"ABC":"ARC"<<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:8:34: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout<< a<1200?"ABC":"ARC"<<endl;
| ~~~~~^~~~~~
|
s748845210 | p03813 | C++ | #include <bits/stdc++.h>
#include <typeinfo>
#include <cxxabi.h>
#ifdef LOCAL
#include "dbgtoki.hpp"
#define DUMP(i) dump((string)TOSTRING(i), demangle(typeid(i).name()), __LINE__ , i)
DbgTimer D_t;
#define TSTART() D_t.start()
#define TSTOP() D_t.stop()
#else
#define DUMP(i)
#define TSTART()
#define TSTOP()
#endif
#define TOSTRING(x) #x
#define SZ(x) (int)(x).size()
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(s) (s).begin(), (s).end()
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()) , v.end());
using namespace std;
typedef long long unsigned int llu;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
const int EPS = 1e-9;
int main (){
cin.tie(0);
ios::sync_with_stdio(false);
int x;
whil(cin >> x ){
TSTART();
string ans;
if(x < 1200)ans = "ABC";
else ans = "ARC";
cout << ans << endl;
TSTOP();
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:36:3: error: 'whil' was not declared in this scope
36 | whil(cin >> x ){
| ^~~~
|
s462696164 | p03813 | C++ | int main(void)
{
int x;
scanf("%d",&x);
if(x<1200){
printf("ABC\n");
}
else{
printf("ARC\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
4 | scanf("%d",&x);
| ^~~~~
a.cc:6:25: error: 'printf' was not declared in this scope
6 | printf("ABC\n");
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | int main(void)
a.cc:9:25: error: 'printf' was not declared in this scope
9 | printf("ARC\n");
| ^~~~~~
a.cc:9:25: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
|
s495238834 | p03813 | C++ | #!/usr/bin/env perl
use strict;
use warnings;
print <> < 1200 ? "ABC\n" : "ARC\n";
| a.cc:1:2: error: invalid preprocessing directive #!
1 | #!/usr/bin/env perl
| ^
a.cc:3:1: error: 'use' does not name a type
3 | use strict;
| ^~~
a.cc:4:1: error: 'use' does not name a type
4 | use warnings;
| ^~~
a.cc:6:1: error: 'print' does not name a type; did you mean 'int'?
6 | print <> < 1200 ? "ABC\n" : "ARC\n";
| ^~~~~
| int
|
s037002470 | p03813 | C++ | #include <stdio.h>
int main(){
int a;
scanf(''%d'',&a);
if(a>=1200)
printf("ARC");
else
printf("ABC");
} | a.cc:4:7: error: empty character constant
4 | scanf(''%d'',&a);
| ^~
a.cc:4:11: error: empty character constant
4 | scanf(''%d'',&a);
| ^~
a.cc: In function 'int main()':
a.cc:4:10: error: 'd' was not declared in this scope
4 | scanf(''%d'',&a);
| ^
|
s356442296 | p03813 | C++ | #include<iostream>
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:7:19: error: 'ABC' was not declared in this scope
7 | if(x<1200)cout<<ABC<<endl;
| ^~~
a.cc:8:14: error: 'ARC' was not declared in this scope
8 | else cout<<ARC<<endl;
| ^~~
|
s577064695 | p03813 | C++ | #include<bits/stdc++.h>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<string>
#include<iostream>
using namespace std;
int main() {
string S;
cin>>S;
int x=0;
int y=0;
for(int i=0;i<S.size();i++){
if(s[i]=='A'){
x=i;
break;
}
}
for(int i=0;i<S.size();i++)
if(S[S.size()-i]=='Z')
{
y=S.size()-i;
break;
}
cout<<b-a+1<<endl;
}
| a.cc: In function 'int main()':
a.cc:15:8: error: 's' was not declared in this scope
15 | if(s[i]=='A'){
| ^
a.cc:26:9: error: 'b' was not declared in this scope
26 | cout<<b-a+1<<endl;
| ^
a.cc:26:11: error: 'a' was not declared in this scope
26 | cout<<b-a+1<<endl;
| ^
|
s188716647 | p03813 | C++ | #include <iostream>
using namespace std;
int main() {
int x;
cin>>x;
if(x>1200&&x<=3000){
cout<<"ARC"<<endl;
}
elseif(x<1200&&x>=1){
cout<<"ABC"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:15:5: error: 'elseif' was not declared in this scope
15 | elseif(x<1200&&x>=1){
| ^~~~~~
|
s655767719 | p03813 | C++ | #include<iostream>
using namespace std;
int main(void){
int a;
cin >> a;
if(a<1200){
cut << "ABC" << endl;
}
else{
cout << "ARC" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:5: error: 'cut' was not declared in this scope
8 | cut << "ABC" << endl;
| ^~~
|
s514699566 | p03813 | C++ | #include<iostream>
using namsespace std;
int main(void){
int a;
cin >> a;
if(a<1200){
cut << "ABC" << endl;
}
else{
cout << "ARC" << endl;
}
} | a.cc:2:7: error: expected nested-name-specifier before 'namsespace'
2 | using namsespace std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> a;
| ^~~
| std::cin
In file included from 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:8:5: error: 'cut' was not declared in this scope
8 | cut << "ABC" << endl;
| ^~~
a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
8 | cut << "ABC" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | cout << "ARC" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | cout << "ARC" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s759581472 | p03813 | C++ | #include(iostream>
using namsespace std;
int main(void){
int a;
cin >> a;
if(a<1200){
cut << "ABC" << endl;
}
else{
cout << "ARC" << endl;
}
} | a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
1 | #include(iostream>
| ^
a.cc:2:7: error: expected nested-name-specifier before 'namsespace'
2 | using namsespace std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> a;
| ^~~
a.cc:8:5: error: 'cut' was not declared in this scope
8 | cut << "ABC" << endl;
| ^~~
a.cc:8:21: error: 'endl' was not declared in this scope
8 | cut << "ABC" << endl;
| ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
11 | cout << "ARC" << endl;
| ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope
11 | cout << "ARC" << endl;
| ^~~~
|
s674832561 | p03813 | C++ | #include<iostream>
using namespace std;
int main(){
int x;
cin >> x;
if(x<1200){
cout >> 'ABC' >> endl;
}
else{
cout >> 'ARC' >> endl;
}
return 0;
} | a.cc:7:17: warning: multi-character character constant [-Wmultichar]
7 | cout >> 'ABC' >> endl;
| ^~~~~
a.cc:10:17: warning: multi-character character constant [-Wmultichar]
10 | cout >> 'ARC' >> endl;
| ^~~~~
a.cc: In function 'int main()':
a.cc:7:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
7 | cout >> 'ABC' >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
a.cc:7:14: note: candidate: 'operator>>(int, int)' (built-in)
7 | cout >> 'ABC' >> endl;
| ~~~~~^~~~~~~~
a.cc:7:14: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | cout >> 'ABC' >> endl;
| ^~~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:7:9: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
7 | cout >> 'ABC' >> endl;
| ^~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/iostream:42:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | cout >> 'ABC' >> endl;
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | cout >> 'ABC' >> endl;
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | cout >> 'ABC' >> endl;
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | cout >> 'ABC' >> endl;
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | cout >> 'ABC' >> endl;
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | cout >> 'ABC' >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = int]':
a.cc:7:17: required from here
7 | cout >> 'ABC' >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
a.cc:10:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
10 | cout >> 'ARC' >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
a.cc:10:14: note: candidate: 'operator>>(int, int)' (built-in)
10 | cout >> 'ARC' >> endl;
| ~~~~~^~~~~~~~
a.cc:10:14: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int'
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:10:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> 'ARC' >> endl;
| ^~~~~
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:10:9: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
10 | cout >> 'ARC' >> endl;
| ^~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:10:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> 'ARC' >> endl;
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:10:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
10 | cout >> 'ARC' >> endl;
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:10:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
10 | cout >> 'ARC' >> endl;
| ^~~~~
/usr/include/c++/14/istream:896:5: note: can |
s564750125 | p03813 | C++ | #include<iostream>
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:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
7 | cout >> "ABC" >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | cout >> "ABC" >> endl;
| ^~~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:7:9: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
7 | cout >> "ABC" >> endl;
| ^~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/iostream:42:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | cout >> "ABC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | cout >> "ABC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | cout >> "ABC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | cout >> "ABC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | cout >> "ABC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | cout >> "ABC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[4]]':
a.cc:7:17: required from here
7 | cout >> "ABC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
a.cc:10:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
10 | cout >> "ARC" >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:10:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> "ARC" >> endl;
| ^~~~~
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:10:9: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
10 | cout >> "ARC" >> endl;
| ^~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:10:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> "ARC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:10:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
10 | cout >> "ARC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:10:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
10 | cout >> "ARC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:10:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
10 | cout >> "ARC" >> endl;
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | op |
s559618583 | p03813 | C++ | #include<iostream>
#include<string>
#include <cmath>
#include <algorithm>
#define MOD 1000000007
using namespace std;
typedef long long ll;
int main(){
int x;
cin >> x;
if(x < 1200) cout << "ABC" << endl;
else cout << ARC" << endl;
return 0;
} | a.cc:16:17: warning: missing terminating " character
16 | else cout << ARC" << endl;
| ^
a.cc:16:17: error: missing terminating " character
16 | else cout << ARC" << endl;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:14: error: 'ARC' was not declared in this scope
16 | else cout << ARC" << endl;
| ^~~
|
s094767843 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if(x < 1200){
cout << "ABC" << endl;}
else{
cout << "ARC" << end;
}
} | a.cc: In function 'int main()':
a.cc:10:15: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
10 | cout << "ARC" << end;
| ~~~~~~~~~~~~~~^~~~~~
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,
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 | op |
s925974478 | p03813 | C++ | #include <stdio.h.
int main(){
int n;
scanf("%d",&n);
if(n<1200){
printf("ABC\n");
}
else{
printf("ARC\n");
}
return 0;
} | a.cc:1:19: error: missing terminating > character
1 | #include <stdio.h.
| ^
a.cc:1:10: fatal error: stdio.h.: No such file or directory
1 | #include <stdio.h.
| ^
compilation terminated.
|
s270304567 | p03813 | C++ | #include<cstdio>
int main()
{
int x;
cin >> x;
if(x > 1200) printf("ARC");
else printf("ABC");
printf("\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin >> x;
| ^~~
|
s498229943 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll x;
cin x;
if(x < 1200){
cout << "ABC" << endl;
}
else cout << "ARC" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'x'
7 | cin x;
| ^~
| ;
|
s266595620 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
struct Fast {Fast(){std::cin.tie(0);ios::sync_with_stdio(false);}} fast;
/* cpp template {{{ */
/* short */
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define Fi first
#define Se second
#define ALL(v) (v).begin(), (v).end()
#define RALL(v) (v).rbegin(), (v).rend()
#define X real()
#define Y imag()
/* REPmacro */
#define REPS(i, a, n) for (ll i = (a); i < (ll)(n); ++i)
#define rep(i, n) REPS(i, 0, n)
#define REP0(i,n) for (ll i = 0; i <= (ll)(n); ++i)
#define REP1(i,n) for (ll i = 1; i <= (ll)(n); ++i)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (ll i = (a); i >= (ll)(n); --i)
#define DEP(i, n) DEPS(i, n, 0)
#define EACH(i, n) for (auto&& i : n)
/* debug */
#define debug(x) cerr << x << " " << "(L:" << __LINE__ << ")" << '\n';
/* alias */
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using D = double;
using P = complex<D>;
using vs = vector<string>;
template <typename T> using PQ = priority_queue<T>;
template <typename T> using minPQ = priority_queue<T, vector<T>, greater<T>>;
/* const */
const int INF = 1001001001;
const ll LINF = 1001001001001001001ll;
const int MOD = 1e9 + 7;
const D EPS = 1e-9;
const int dx[] = {0, 1, 0, -1, 1, -1, 1, -1}, dy[] = {1, 0, -1, 0, 1, -1, -1, 1};
/* func */
inline bool inside(int y, int x, int H, int W) {return y >= 0 && x >= 0 && y < H && x < W;}
inline int in() {int x; cin >> x; return x;}
inline ll IN() {ll x; cin >> x; return x;}
inline vs split(const string& t, char c) {vs v; stringstream s(t); string b; while(getline(s, b, c)) v.eb(b); return v;}
template <typename T> inline bool chmin(T& a, const T& b) {if (a > b) a = b; return a > b;}
template <typename T> inline bool chmax(T& a, const T& b) {if (a < b) a = b; return a < b;}
template <typename T, typename S> inline void print(const pair<T, S>& p) {cout << p.first << " " << p.second << endl;}
template <typename T> inline void print(const T& x) {cout << x << '\n';}
template <typename T, typename S> inline void print(const vector<pair<T, S>>& v) {for (auto&& p : v) print(p);}
template <typename T> inline void print(const vector<T>& v, string s = " ") {rep(i, v.size()) cout << v[i] << (i != (ll)v.size() - 1 ? s : "\n");}
template<typename T>
int main()
{
int x=in();
x<1200?print("ABC"):print("ARC");
return 0;
}
| a.cc:66:5: error: cannot declare '::main' to be a template
66 | int main()
| ^~~~
|
s810562635 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
struct Fast {Fast(){std::cin.tie(0);ios::sync_with_stdio(false);}} fast;
/* cpp template {{{ */
/* short */
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define Fi first
#define Se second
#define ALL(v) (v).begin(), (v).end()
#define RALL(v) (v).rbegin(), (v).rend()
#define X real()
#define Y imag()
/* REPmacro */
#define REPS(i, a, n) for (ll i = (a); i < (ll)(n); ++i)
#define rep(i, n) REPS(i, 0, n)
#define REP0(i,n) for (ll i = 0; i <= (ll)(n); ++i)
#define REP1(i,n) for (ll i = 1; i <= (ll)(n); ++i)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (ll i = (a); i >= (ll)(n); --i)
#define DEP(i, n) DEPS(i, n, 0)
#define EACH(i, n) for (auto&& i : n)
/* debug */
#define debug(x) cerr << x << " " << "(L:" << __LINE__ << ")" << '\n';
/* alias */
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using D = double;
using P = complex<D>;
using vs = vector<string>;
template <typename T> using PQ = priority_queue<T>;
template <typename T> using minPQ = priority_queue<T, vector<T>, greater<T>>;
/* const */
const int INF = 1001001001;
const ll LINF = 1001001001001001001ll;
const int MOD = 1e9 + 7;
const D EPS = 1e-9;
const int dx[] = {0, 1, 0, -1, 1, -1, 1, -1}, dy[] = {1, 0, -1, 0, 1, -1, -1, 1};
/* func */
inline bool inside(int y, int x, int H, int W) {return y >= 0 && x >= 0 && y < H && x < W;}
inline int in() {int x; cin >> x; return x;}
inline ll IN() {ll x; cin >> x; return x;}
inline vs split(const string& t, char c) {vs v; stringstream s(t); string b; while(getline(s, b, c)) v.eb(b); return v;}
template <typename T> inline bool chmin(T& a, const T& b) {if (a > b) a = b; return a > b;}
template <typename T> inline bool chmax(T& a, const T& b) {if (a < b) a = b; return a < b;}
template <typename T, typename S> inline void print(const pair<T, S>& p) {cout << p.first << " " << p.second << endl;}
template <typename T> inline void print(const T& x) {cout << x << '\n';}
template <typename T, typename S> inline void print(const vector<pair<T, S>>& v) {for (auto&& p : v) print(p);}
template <typename T> inline void print(const vector<T>& v, string s = " ") {rep(i, v.size()) cout << v[i] << (i != (ll)v.size() - 1 ? s : "\n");}
template<typename T>
signed main()
{
int x=in();
x<1200?print("ABC"):print("ARC");
return 0;
}
| a.cc:66:8: error: cannot declare '::main' to be a template
66 | signed main()
| ^~~~
|
s153659092 | p03813 | C++ | use std::env;
use std::io::*;
use std::str::*;
fn read<T: FromStr>() -> T {
let stdin = stdin();
let s = stdin.bytes().map(|c| c.unwrap() as char)
.skip_while(|c| c.is_whitespace())
.take_while(|c| !c.is_whitespace())
.collect::<String>();
s.parse::<T>().ok().unwrap()
}
fn main() {
// main の引数
/*
引数なしのときargs.len() = 1;
*/
let args: Vec<String> = env::args().collect();
let rate = read<i32>();
if rate < 1200 {
println!("ABC");
} else {
println!("ARC");
}
}
| a.cc:1:1: error: 'use' does not name a type
1 | use std::env;
| ^~~
a.cc:2:1: error: 'use' does not name a type
2 | use std::io::*;
| ^~~
a.cc:3:1: error: 'use' does not name a type
3 | use std::str::*;
| ^~~
a.cc:5:1: error: 'fn' does not name a type
5 | fn read<T: FromStr>() -> T {
| ^~
a.cc:14:1: error: 'fn' does not name a type
14 | fn main() {
| ^~
|
s572120216 | p03813 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
string s;
cin>>s;
for(int i=0;s[i]!='A';i++);
for(int j=s.size();s[j]!='Z';j--);
cout<<j-i+1;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'j' was not declared in this scope
9 | cout<<j-i+1;
| ^
a.cc:9:11: error: 'i' was not declared in this scope
9 | cout<<j-i+1;
| ^
|
s404301051 | p03813 | C++ | #include<bits/stdc++.h>
using namespace std;
int j;
string s;
int main(){
cin>>s;
for(int i=0;s[i];i++){
if (s[i]=='Z'){j=i}
for(i=0;s[i]!='A';i++){
cout<<j-i+1;
}
}
} | a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before '}' token
9 | if (s[i]=='Z'){j=i}
| ^
| ;
|
s787094735 | p03813 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
int x;
cin>>x;
if(x<1200)cout<<"ABC¥n";
else cout<<"ARC¥n";
return 0;
} | a.cc:5:3: error: expected initializer before 'int'
5 | int x;
| ^~~
a.cc:6:1: error: 'cin' does not name a type
6 | cin>>x;
| ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
7 | if(x<1200)cout<<"ABC¥n";
| ^~
a.cc:8:1: error: expected unqualified-id before 'else'
8 | else cout<<"ARC¥n";
| ^~~~
a.cc:9:3: error: expected unqualified-id before 'return'
9 | return 0;
| ^~~~~~
a.cc:10:3: error: expected declaration before '}' token
10 | }
| ^
|
s748550586 | p03813 | C++ | import Control.Applicative
import Control.Monad
import Data.List
import Data.Char
strToInt s = (read :: String -> Int) s
strToInteger s = (read :: String -> Integer) s
strToDouble s = (read :: String -> Double) s
main :: IO ()
main = do
-- 整数の入力
a <- readLn
-- 出力
putStrLn $ if a >= 1200 then "ARC" else "ABC"
| a.cc:1:1: error: 'import' does not name a type
1 | import Control.Applicative
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
|
s205553016 | p03813 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
if(x<1200){
System.out.println("ABC");
}else(1200<=x){
System.out.println("ARC")
}
}
} | Main.java:8: error: not a statement
}else(1200<=x){
^
Main.java:8: error: ';' expected
}else(1200<=x){
^
Main.java:9: error: ';' expected
System.out.println("ARC")
^
3 errors
|
s320959346 | p03813 | C | #include <stdio.h>
int main(void){
int n;
scanf("%d", &n);
if (n < 1200){
printf("ABC\n");
else{
printf("ARC\n");
}
return 0;
}
| main.c: In function 'main':
main.c:8:3: error: expected '}' before 'else'
8 | else{
| ^~~~
|
s214286657 | p03813 | Java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int rate = sc.nextInt();
sc.close();
String ans = rate>=1200 ? "ARC" : "ABC";
System.out.println(ans);
}
} | Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s068141439 | p03813 | C++ | #include "stdio.h"
int main (void)
{
int x;
scanf("%d",&x);
if(x<120)
{ printf("ABC")}
else
{printf("ARC")}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before '}' token
7 | { printf("ABC")}
| ^
| ;
a.cc:9:15: error: expected ';' before '}' token
9 | {printf("ARC")}
| ^
| ;
|
s839863865 | p03813 | C++ | #include "stdio.h"
int main ()
{
int x;
scanf("%d",&x);
if(x<120)
{ printf("ABC")}
else
{printf("ARC")}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before '}' token
7 | { printf("ABC")}
| ^
| ;
a.cc:9:15: error: expected ';' before '}' token
9 | {printf("ARC")}
| ^
| ;
|
s274381756 | p03813 | C++ | include "stdio.h"
int main ()
{
int x;
scanf("%d",&x);
if(x<120)
{ printf("ABC")}
else
{printf("ARC")}
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include "stdio.h"
| ^~~~~~~
|
s989017745 | p03813 | C++ | include<stdio.h>
int main ()
{
int x;
scanf("%d",&x);
if(x<120)
{ printf("ABC")}
else
{printf("ARC")}
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<stdio.h>
| ^~~~~~~
|
s297233935 | p03813 | C++ | include<stdio.h>
int main ()
{
int x;
scanf("%d",&x);
if(x<120)
{ printf("ABC")}
else
{printf(ARC)}
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<stdio.h>
| ^~~~~~~
|
s496205565 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int n0;
cin>>n;
if(n<1200)
cout<<"ABC";
else
cout<<"ARC";
return 0;
} | a.cc: In function 'int main()':
a.cc:5:10: error: 'n' was not declared in this scope; did you mean 'n0'?
5 | cin>>n;
| ^
| n0
|
s846872763 | p03813 | C++ | include<bits/stdc++.h>
using namespace std;
int main(){
int x;
cin >> x;
if(x<1200) puts("ABC");
else puts("ARC");
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | 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:16: error: 'puts' was not declared in this scope
7 | if(x<1200) puts("ABC");
| ^~~~
a.cc:8:10: error: 'puts' was not declared in this scope
8 | else puts("ARC");
| ^~~~
|
s525642488 | p03813 | C++ | using namespace std;
typedef long long LL;
typedef pair<int, int> PII;
int main() {
ios_base::sync_with_stdio(false);
int n;
cin >> n;
if (n < 1200) {
cout << "ABC" << endl;
} else {
cout << "ARC" << endl;
}
return 0;
}
| a.cc:4:9: error: 'pair' does not name a type
4 | typedef pair<int, int> PII;
| ^~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'ios_base' has not been declared
8 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
a.cc:10:5: error: 'cin' was not declared in this scope
10 | cin >> n;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:12:9: error: 'cout' was not declared in this scope
12 | cout << "ABC" << endl;
| ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:26: error: 'endl' was not declared in this scope
12 | cout << "ABC" << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | using namespace std;
a.cc:14:9: error: 'cout' was not declared in this scope
14 | cout << "ARC" << endl;
| ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:26: error: 'endl' was not declared in this scope
14 | cout << "ARC" << endl;
| ^~~~
a.cc:14:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s647543269 | p03813 | C | #include <stdio.h>
int main()
{
int x;
scanf("%d",&x)
if(x<1200) printf("ABC\n");
else printf("ARC\n");
return 0;
}
| main.c: In function 'main':
main.c:5:19: error: expected ';' before 'if'
5 | scanf("%d",&x)
| ^
| ;
6 | if(x<1200) printf("ABC\n");
| ~~
main.c:7:9: error: 'else' without a previous 'if'
7 | else printf("ARC\n");
| ^~~~
|
s233115038 | p03813 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.pritnln(a < 1200 ? "ABC" : "ARC");
}
}
| Main.java:7: error: cannot find symbol
System.out.pritnln(a < 1200 ? "ABC" : "ARC");
^
symbol: method pritnln(a < 1200 ?[...]"ARC")
location: variable out of type PrintStream
1 error
|
s199688466 | p03813 | Java | import java.util.Scanner;
public class ABCARC {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.pritnln(a < 1200 ? "ABC" : "ARC");
}
}
| Main.java:3: error: class ABCARC is public, should be declared in a file named ABCARC.java
public class ABCARC {
^
Main.java:7: error: cannot find symbol
System.out.pritnln(a < 1200 ? "ABC" : "ARC");
^
symbol: method pritnln(a < 1200 ?[...]"ARC")
location: variable out of type PrintStream
2 errors
|
s236144902 | p03813 | Java | package abc0603;
import java.util.Scanner;
public class C004 {
public static void main(String args[]){
Scanner cin = new Scanner(System.in);
long target = cin.nextLong();
cin.close();
long tmp = (long)target/11;
long result;
if(target==tmp*11){
result = tmp*2;
}else if(target-tmp*11<=6){
result = tmp*2+1;
}else{
result = tmp*2+2;
}
System.out.println(result);
}
}
| Main.java:5: error: class C004 is public, should be declared in a file named C004.java
public class C004 {
^
1 error
|
s766944779 | p03813 | Java | public class Atcoder {
public static void main(String args[]){
int x = new java.util.Scanner(System.in).nextInt();
if(x < 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
}
| Main.java:1: error: class Atcoder is public, should be declared in a file named Atcoder.java
public class Atcoder {
^
1 error
|
s270867529 | p03813 | C++ | #include<iostream>
using namespace std;
int main()
{
int64 x;
cin >> x;
int64 times = x / 11;
int64 a = x % 11;
int64 add = 0;
if (a){
add = 1;
if (a > 6){
add = 2;
}
}
cout << times*2+add;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'int64' was not declared in this scope; did you mean 'int64_t'?
6 | int64 x;
| ^~~~~
| int64_t
a.cc:7:16: error: 'x' was not declared in this scope
7 | cin >> x;
| ^
a.cc:9:14: error: expected ';' before 'times'
9 | int64 times = x / 11;
| ^~~~~~
| ;
a.cc:10:14: error: expected ';' before 'a'
10 | int64 a = x % 11;
| ^~
| ;
a.cc:12:14: error: expected ';' before 'add'
12 | int64 add = 0;
| ^~~~
| ;
a.cc:13:13: error: 'a' was not declared in this scope
13 | if (a){
| ^
a.cc:14:17: error: 'add' was not declared in this scope
14 | add = 1;
| ^~~
a.cc:19:17: error: 'times' was not declared in this scope; did you mean 'timex'?
19 | cout << times*2+add;
| ^~~~~
| timex
a.cc:19:25: error: 'add' was not declared in this scope
19 | cout << times*2+add;
| ^~~
|
s979807937 | p03813 | Java | /**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Alan
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
OutputWriter out = new OutputWriter(outputStream);
TaskA solver = new TaskA();
solver.solve(1, in, out);
out.close();
}
static class TaskA {
public void solve(int testNumber, InputReader in, OutputWriter out) {
int x = in.nextInt();
if (x < 1200) out.printLine("ABC");
else out.printLine("ARC");
}
}
static class OutputWriter {
private final PrintWriter writer;
public OutputWriter(OutputStream outputStream) {
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
}
public OutputWriter(Writer writer) {
this.writer = new PrintWriter(writer);
}
public void printLine(String s) {
writer.println(s);
}
public void close() {
writer.close();
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) throw new InputMismatchException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) return -1;
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9')
throw new InputMismatchException();
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
if (filter != null)
return filter.isSpaceChar(c);
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
boolean isSpaceChar(int ch);
}
}
} | Main.java:28: error: cannot find symbol
private final PrintWriter writer;
^
symbol: class PrintWriter
location: class OutputWriter
Main.java:30: error: cannot find symbol
public OutputWriter(OutputStream outputStream) {
^
symbol: class OutputStream
location: class OutputWriter
Main.java:34: error: cannot find symbol
public OutputWriter(Writer writer) {
^
symbol: class Writer
location: class OutputWriter
Main.java:49: error: cannot find symbol
private InputStream stream;
^
symbol: class InputStream
location: class InputReader
Main.java:55: error: cannot find symbol
public InputReader(InputStream stream) {
^
symbol: class InputStream
location: class InputReader
Main.java:9: error: cannot find symbol
InputStream inputStream = System.in;
^
symbol: class InputStream
location: class Main
Main.java:10: error: cannot find symbol
OutputStream outputStream = System.out;
^
symbol: class OutputStream
location: class Main
Main.java:31: error: cannot find symbol
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
^
symbol: class PrintWriter
location: class OutputWriter
Main.java:31: error: cannot find symbol
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
^
symbol: class BufferedWriter
location: class OutputWriter
Main.java:31: error: cannot find symbol
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
^
symbol: class OutputStreamWriter
location: class OutputWriter
Main.java:35: error: cannot find symbol
this.writer = new PrintWriter(writer);
^
symbol: class PrintWriter
location: class OutputWriter
Main.java:60: error: cannot find symbol
if (numChars == -1) throw new InputMismatchException();
^
symbol: class InputMismatchException
location: class InputReader
Main.java:65: error: cannot find symbol
} catch (IOException e) {
^
symbol: class IOException
location: class InputReader
Main.java:66: error: cannot find symbol
throw new InputMismatchException();
^
symbol: class InputMismatchException
location: class InputReader
Main.java:84: error: cannot find symbol
throw new InputMismatchException();
^
symbol: class InputMismatchException
location: class InputReader
15 errors
|
s313700442 | p03813 | C++ | #include<iostream>
using namespace std;
int main{
int x;
cin>>x;
if(x>=1200){
cout<<"ARC"<<endl;}
else{
cout<<"ABC"<<endl;}
return 0;
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
4 | int x;
| ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:6:9: error: 'cin' does not name a type
6 | cin>>x;
| ^~~
a.cc:8:9: error: expected unqualified-id before 'if'
8 | if(x>=1200){
| ^~
a.cc:10:9: error: expected unqualified-id before 'else'
10 | else{
| ^~~~
a.cc:13:1: error: expected unqualified-id before 'return'
13 | return 0;
| ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
14 | }
| ^
|
s459070889 | p03813 | C++ | #include<iostream>
using namespace std;
int main{
int x;
cin>>x>>;
if(a>=1200){
cout<<"ABC"<<endl;}
else{
cout<<"ARC"<<endl;}
return 0;
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
4 | int x;
| ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:6:9: error: 'cin' does not name a type
6 | cin>>x>>;
| ^~~
a.cc:8:9: error: expected unqualified-id before 'if'
8 | if(a>=1200){
| ^~
a.cc:10:9: error: expected unqualified-id before 'else'
10 | else{
| ^~~~
a.cc:13:1: error: expected unqualified-id before 'return'
13 | return 0;
| ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
14 | }
| ^
|
s890315843 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}
int main() {
string s;
int count = 0;
int maxcount = 0;
bool flag = false;
cin >> s;
for(int i=0; i<s.size(); i++){
if(s[i]=='A' && flag==false){
count++;
flag = true;
}
if(s[i]=='Z' && flag==true){
count++;
if(count > maxcount){
maxcount = count;
}
flag = false;
flag2 = true;
}else if(flag==true){
count++;
}
}
cout << maxcount << endl;
} | a.cc: In function 'int main()':
a.cc:39:13: error: 'flag2' was not declared in this scope; did you mean 'flag'?
39 | flag2 = true;
| ^~~~~
| flag
|
s934038813 | p03813 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<stdio.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n<1200){
cout<<"ABC";
}else{
cout<<"ARC";
}
cout<<endl;
return 0;
} | a.cc:7:1: error: extended character is not valid in an identifier
7 |
| ^
a.cc:7:1: error: '\U000000a0' does not name a type
7 |
| ^
|
s842856709 | p03813 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<stdio.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n<1200){
cout<<"ABC";
}else(n<2000){
cout<<"ARC";
}
cout<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before '{' token
13 | }else(n<2000){
| ^
| ;
|
s015653040 | p03813 | C++ | #include <iostream>
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:9: error: expected primary-expression before ';' token
6 | cin>>x>>;
| ^
|
s406200310 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x < 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
return;
}
}
| Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s560487716 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x < 1200){
System.out.println("ABC");
}else if(x <= 3000){
System.out.println("ARC");
}
}
}
| Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s643938657 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x <= 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
}
| Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s094425778 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(1 <= x && x < 1200){
System.out.println("ABC");
}else if(1200 < x && x <= 3000){
System.out.println("ARC");
}
}
}
| Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s240723158 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x >= 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
}
| Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s827116626 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x <= 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
}
| Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s114351334 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x < 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
}
| Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s447043505 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x < 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
}
| Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s502026729 | p03813 | C++ | #include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
int x;
scanf_s("%d",&x);
if(x < 1200){
printf("ABC\n");
}
else{
printf("ARC\n");
}
return 0;
}
| a.cc:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s783891122 | p03813 | Java | import java.util;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
if (a < 1200) {
System.out.println("ABC");
} else {
System.out.println("ARC");
}
}
} | Main.java:1: error: cannot find symbol
import java.util;
^
symbol: class util
location: package java
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
3 errors
|
s272296482 | p03813 | Java | import java.util;
public static void main() {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
if (a < 1200) {
System.out.println("ABC");
} else {
System.out.println("ARC");
}
}
| Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main() {
^
(use --enable-preview to enable unnamed classes)
1 error
|
s252451510 | p03813 | C++ | #include <stdio.h>
int main{
int x=0;
scanf("%d",&x)
if(x<1200){
printf("ABC");
} else {
printf("ARC");
}
return 0;
} | a.cc:2:5: error: cannot declare '::main' to be a global variable
2 | int main{
| ^~~~
a.cc:3:5: error: expected primary-expression before 'int'
3 | int x=0;
| ^~~
a.cc:3:5: error: expected '}' before 'int'
a.cc:2:9: note: to match this '{'
2 | int main{
| ^
a.cc:4:10: error: expected constructor, destructor, or type conversion before '(' token
4 | scanf("%d",&x)
| ^
a.cc:7:7: error: expected unqualified-id before 'else'
7 | } else {
| ^~~~
a.cc:10:5: error: expected unqualified-id before 'return'
10 | return 0;
| ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
11 | }
| ^
|
s847305306 | p03813 | C++ | #include <bits/stdc++.h>
2 using namespace std;
3 int main(void) {
4 int n;
5 cin >> n;
6 if(n<1200) cout << "ABC" << endl;
7 else cout << "ARC" << endl;
8 } | a.cc:2:3: error: expected unqualified-id before numeric constant
2 | 2 using namespace std;
| ^
a.cc:3:3: error: expected unqualified-id before numeric constant
3 | 3 int main(void) {
| ^
|
s781390311 | p03813 | C++ | #include<stdio.h>
#include<stdlib.h>
int x;
int main(void){
scanf("%d",&x);
if(x<1200){
printf("ABC")
}
else{
printf("ARC");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:30: error: expected ';' before '}' token
8 | printf("ABC")
| ^
| ;
9 | }
| ~
|
s172531239 | p03813 | C++ | #include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<string>
#include<stack>
#include<queue>
#include<vector>
#include<algorithm>
#include <iomanip>
typedef long long int ll;
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define REP(i,n) for (int i=0;i<(n);i++)
#define EREP(i,n) for (int i=1;i<=(n);i++)
#define ALL(a) (a).begin(),(a).end()
#define EVEL 1
#ifndef EVEL
#define DEB(X) cout << #X << ":" <<X<<" " ;
#define TF(f) f ? cout<<"true " : cout<<"false ";
#define END cout<<"\n";
#else
#define DEB(X) {X=X;}
#define TF(f) {f=f;}
#define END {}
#endif
const int MOD = 1000000007;
const int INF = 1000000;
#define NMAX 50
#define MAX 10
int N,M,A[100010],B;
string S;
ll X,ans=0;
bool f[100010];
int main(){
ios_base::sync_with_stdio(false);
cin>>N;
REP(i,N)cin>>A[i];
REP(i,N){
if(!f[A[i]]){f=true;ans++}
else {B++;}
}
cout<<ans-(B%2)<<endl;
}
//ABC057 Maximum Average Sets
| a.cc: In function 'int main()':
a.cc:46:21: error: incompatible types in assignment of 'bool' to 'bool [100010]'
46 | if(!f[A[i]]){f=true;ans++}
| ~^~~~~
a.cc:46:32: error: expected ';' before '}' token
46 | if(!f[A[i]]){f=true;ans++}
| ^
| ;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.