submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s033993283 | p03795 | C++ | #inlude<bits.stdc++.h>
using namespace std;
int main(void){
int N,x,y;
cin>>N;
x=N*800;
y=N%15*200;
cout<<x-y<<endl;
return 0;
}
| a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
1 | #inlude<bits.stdc++.h>
| ^~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | 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 | #inlude<bits.stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
9 | cout<<x-y<<endl;
| ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:16: error: 'endl' was not declared in this scope
9 | cout<<x-y<<endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | #inlude<bits.stdc++.h>
|
s291002460 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int s;
cin >> s;
cout << 800*N-(N/15)*200;
} | a.cc: In function 'int main()':
a.cc:9:15: error: 'N' was not declared in this scope
9 | cout << 800*N-(N/15)*200;
| ^
|
s156205341 | p03795 | C++ | #include<iostream>
using namespace std;
int main(){
int n,cnt=0;
cin>>n;
for(int i=1;i<n+1:;i++){
if(i%15==0)cnt++;
}
cout<<n*800-200*cnt<<endl;
} | a.cc: In function 'int main()':
a.cc:6:15: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
6 | for(int i=1;i<n+1:;i++){
| ^
a.cc:6:20: error: expected ';' before ':' token
6 | for(int i=1;i<n+1:;i++){
| ^
| ;
a.cc:6:25: error: expected ';' before ')' token
6 | for(int i=1;i<n+1:;i++){
| ^
| ;
|
s952585791 | p03795 | C++ | #include<iostream>
#include<cstdio>
#include<vector>
#include<queue>
#include<map>
#include<unordered_map>
#include<stack>
#include<string>
#include<algorithm>
#include<functional>
#include<cstring>
#include<utility>
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
/**** Type Define ****/
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<ll, P> Q;
/**** Const List ****/
const ll INF = 1LL << 60;
const ll mod = 1000000007;
const ll dx[4] = {1, 0, -1, 0};
const ll dy[4] = {0, -1, 0, 1};
/**** General Functions ****/
ll gcd(ll a, ll b) {
if (b == 0) return a;
return gcd(b, a % b);
}
ll extgcd(ll a, ll b, ll& x, ll& y) {
if (b == 0) {
x = 1, y = 0; return a;
}
ll q = a/b, g = extgcd(b, a - q*b, x, y);
ll z = x - q * y;
x = y;
y = z;
return g;
}
ll invmod (ll a, ll m) { // a^-1 mod m
ll x, y;
extgcd(a, m, x, y);
x %= m;
if (x < 0) x += m;
return x;
}
ll nCk(ll n, ll k, ll mod) {
ll ans = 1;
for (ll i = n, j = 1; j <= k; i--, j++) ans = (((ans * i) % mod) * invmod(j, mod)) % mod;
return ans;
}
ll lmin(ll a, ll b) { return a > b ? b : a; };
ll lmax(ll a, ll b) { return a > b ? a : b; };
ll lsum(ll a, ll b) { return a + b; };
/**** Zip ****/
template <typename T>
class Zip {
vector<T> d;
bool flag;
public:
Zip() {
flag = false;
}
void add(T x) {
d.push_back(x);
flag = true;
}
ll getNum(T x) { // T need to have operator < !!
if (flag) {
sort(d.begin(), d.end());
d.erase(unique(d.begin(), d.end()), d.end());
flag = false;
}
return lower_bound(d.begin(), d.end(), x) - d.begin();
}
ll size() {
if (flag) {
sort(d.begin(), d.end());
d.erase(unique(d.begin(), d.end()), d.end());
flag = false;
}
return (ll)d.size();
}
};
/**** Union Find ****/
class UnionFind {
vector<ll> par, rank; // par > 0: number, par < 0: -par
public:
void init(ll n) {
par.resize(n, 1); rank.resize(n, 0);
}
ll getSize(ll x) {
return par[find(x)];
}
ll find(ll x) {
if (par[x] > 0) return x;
return -(par[x] = -find(-par[x]));
}
void merge(ll x, ll y) {
x = find(x);
y = find(y);
if (x == y) return;
if (rank[x] < rank[y]) {
par[y] += par[x];
par[x] = -y;
} else {
par[x] += par[y];
par[y] = -x;
if (rank[x] == rank[y]) rank[x]++;
}
}
bool isSame(ll x, ll y) {
return find(x) == find(y);
}
};
/**** Segment Tree ****/
template <typename T>
class SegmentTree {
ll n;
vector<T> node;
function<T(T, T)> fun, fun2;
bool customChange;
T outValue, initValue;
public:
void init(ll num, function<T(T, T)> resultFunction, T init, T out, function<T(T, T)> changeFunction = NULL) {
// changeFunction: (input, beforevalue) => newvalue
fun = resultFunction;
fun2 = changeFunction;
customChange = changeFunction != NULL;
n = 1;
while (n < num) n *= 2;
node.resize(2 * n - 1, init);
outValue = out;
initValue = init;
}
void valueChange(ll num, T value) {
num += n-1;
if (customChange) node[num] = fun2(value, node[num]);
else node[num] = value;
while (num > 0) num = (num - 1) / 2, node[num] = fun(node[num * 2 + 1], node[num * 2 + 2]);
}
T rangeQuery(ll a, ll b, ll l = 0, ll r = -1, ll k = 0) { // [a, b)
if (r == -1) r = n;
if (a <= l && r <= b) return node[k];
if (b <= l || r <= a) return outValue;
ll mid = (l + r) / 2;
return fun(rangeQuery(a, b, l, mid, 2*k+1), rangeQuery(a, b, mid, r, 2*k+2));
}
};
/**** LIS ****/
ll lis(ll* a, ll n, ll* dp) {
fill(dp, dp + n, INF);//INFを代入
for (ll i = 0; i < n; i++) *lower_bound(dp, dp + n, a[i]) = a[i];
return (ll)(lower_bound(dp, dp + n, INF) - dp);
}
/**** main function ****/
ll a,b,c,x;
string ans={};
int main(){
cin>>x;
cout<<800*x-n/15*200<<endl;
}
| a.cc: In function 'int main()':
a.cc:182:21: error: 'n' was not declared in this scope; did you mean 'yn'?
182 | cout<<800*x-n/15*200<<endl;
| ^
| yn
|
s090984043 | p03795 | C++ | #include <iostream>
using namespace std;
int main() {
__int64 N, power = 1;
cin >> N;
for (int i = 1; i <= N; i++) {
power = (power * i) % 1000000007;
}
cout << power << endl;
} | a.cc: In function 'int main()':
a.cc:5:9: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
5 | __int64 N, power = 1;
| ^~~~~~~
| __int64_t
a.cc:6:16: error: 'N' was not declared in this scope
6 | cin >> N;
| ^
a.cc:8:17: error: 'power' was not declared in this scope
8 | power = (power * i) % 1000000007;
| ^~~~~
a.cc:10:17: error: 'power' was not declared in this scope
10 | cout << power << endl;
| ^~~~~
|
s834018561 | p03795 | C | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int sum = 0;
for(int i = 1;i <= n;i++){
sum = sum + 800;
if(i%15 == 0){
sum = sum - 200;
}
}
System.out.println(sum);
}
}
| main.c:1:1: error: unknown type name 'import'
1 | import java.util.*;
| ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1 | import java.util.*;
| ^
main.c:3:1: error: unknown type name 'public'
3 | public class Main{
| ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
3 | public class Main{
| ^~~~
|
s173635213 | p03795 | C++ | #include<iostream>
using namespace std;
int main(void)
{
int n = 0,tmp = 0;
cin >> n;
tmp = n / 15
cout << n * 800 - tmp * 200 << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'cout'
8 | tmp = n / 15
| ^
| ;
9 | cout << n * 800 - tmp * 200 << endl;
| ~~~~
|
s271059716 | p03795 | C++ | #include<iostream>
int main(void)
{
int n = 0,tmp = 0;
cin >> n;
tmp = n / 15
cout << n * 800 - tmp * 200 << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> n;
| ^~~
| 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:7:17: error: expected ';' before 'cout'
7 | tmp = n / 15
| ^
| ;
8 | cout << n * 800 - tmp * 200 << endl;
| ~~~~
|
s576819185 | p03795 | C++ | #incldue<bits/stdc++.h>
using namespace std;
int main(){int a,b;cin>>a>>b;cout<<a*800-(b/15)*200;} | a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
1 | #incldue<bits/stdc++.h>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:3:20: error: 'cin' was not declared in this scope
3 | int main(){int a,b;cin>>a>>b;cout<<a*800-(b/15)*200;}
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #incldue<bits/stdc++.h>
a.cc:3:30: error: 'cout' was not declared in this scope
3 | int main(){int a,b;cin>>a>>b;cout<<a*800-(b/15)*200;}
| ^~~~
a.cc:3:30: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
|
s079083937 | p03795 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
// 整数の入力
int N,x,y;
cin >> N;
x = 800 * N;
y = 200 * (int)(N / 15)
cout << x -y << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:28: error: expected ';' before 'cout'
13 | y = 200 * (int)(N / 15)
| ^
| ;
14 |
15 | cout << x -y << endl;
| ~~~~
|
s068269650 | p03795 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
// 整数の入力
int N,x,y;
cin >> N;
x = 800 * N;
y = 200 * (N / 15)
cout << x -y << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:23: error: expected ';' before 'cout'
13 | y = 200 * (N / 15)
| ^
| ;
14 |
15 | cout << x -y << endl;
| ~~~~
|
s877791178 | p03795 | C++ | n = int(input())
x = 800 * n
y = (int)(n / 15) * 200
print(x - y)
| a.cc:1:1: error: 'n' does not name a type
1 | n = int(input())
| ^
|
s006301735 | p03795 | C++ | #include <iostream>
using namespace std;
int main(){
int N,X;
cin >> N:
X=N/15;
cout << 800*N-200*X << endl;
} | a.cc: In function 'int main()':
a.cc:6:13: error: found ':' in nested-name-specifier, expected '::'
6 | cin >> N:
| ^
| ::
a.cc:6:12: error: 'N' is not a class, namespace, or enumeration
6 | cin >> N:
| ^
|
s292097918 | p03795 | 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.println(a * 800 - (a / 15) * 200);
} | Main.java:10: error: reached end of file while parsing
}
^
1 error
|
s688146283 | p03795 | C++ | #include <iostream>
using namespace std;
int main(){
int n;
cin>>n;
int ans=0;
ans=n*800
int nebiki=0;
nebiki=n%15;
cout<<ans-(nebiki*200)<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'int'
10 | ans=n*800
| ^
| ;
11 | int nebiki=0;
| ~~~
a.cc:12:5: error: 'nebiki' was not declared in this scope
12 | nebiki=n%15;
| ^~~~~~
|
s203642598 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a;
cin>>a;
int x=a/15;
cout<<a*800-x*200<endl;
} | a.cc: In function 'int main()':
a.cc:9:20: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout<<a*800-x*200<endl;
| ~~~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1317 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: couldn't deduce template parameter '_Bi_iter'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1485 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: couldn't deduce template parameter '_Bi_iter'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1660 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout<<a*800-x*200<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
9 | cout<<a*800-x*200<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout<<a*800-x*200<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: couldn't deduce template parameter '_CharT'
9 | cout<<a*800-x*200<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout<<a*800-x*200<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,
| ^~~~~~~~
|
s916820852 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;
int main() {
//cout.precision(10);
int M;
cin >> M;
cout << 800*x-(x/15)*200 << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:17: error: 'x' was not declared in this scope
14 | cout << 800*x-(x/15)*200 << endl;
| ^
|
s787794496 | p03795 | C++ | #include<iostream>
using namespace std;
int main(){
int n,a;
cin>>n;
a=n/15;
cout<<n*800-200a;
cout<<endl;
} | a.cc: In function 'int main()':
a.cc:7:13: error: unable to find numeric literal operator 'operator""a'
7 | cout<<n*800-200a;
| ^~~~
|
s628384913 | p03795 | C++ | #include<iostream>
using namespace std;
int main(){
int n,a;
cin<<n;
a=n/15;
cout<<n*800-200a;
cout<<endl;
} | a.cc: In function 'int main()':
a.cc:5:4: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
5 | cin<<n;
| ~~~^~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:5:4: note: candidate: 'operator<<(int, int)' (built-in)
5 | cin<<n;
| ~~~^~~
a.cc:5:4: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:5:1: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
5 | cin<<n;
| ^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:5:6: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]':
a.cc:5:6: required from here
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:810:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
a.cc:7:13: error: unable to find numeric literal operator 'operator""a'
7 | cout<<n*800-200a;
| ^~~~
|
s984658409 | p03795 | C++ | #include<iostream>
using namespace std;
int main(){
int n,a;
a=n/15;
cout<<n*800-200a;
cout<<endl;
} | a.cc: In function 'int main()':
a.cc:6:13: error: unable to find numeric literal operator 'operator""a'
6 | cout<<n*800-200a;
| ^~~~
|
s314383384 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
int n, x, y;
cin >> n;
x = n*800;
y = n/15;
cout << x-y << endl
} | a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before '}' token
9 | cout << x-y << endl
| ^
| ;
10 | }
| ~
|
s828207662 | p03795 | C | #include <stdio.h>
int main(){
int a;
sacnf("%d",&a);
printf("%d\n",(a*800)-((a/15)*200));
} | main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | sacnf("%d",&a);
| ^~~~~
| scanf
|
s237162381 | p03795 | C++ | #include <cstdio>
#include <iostream>
int n ,ans;
int main()
{
scanf(“%d”,&n);
ans = n*800;
int k = n / 15;
ans -= k * 200;
printf(“%d”,ans);
} | a.cc:7:7: error: extended character “ is not valid in an identifier
7 | scanf(“%d”,&n);
| ^
a.cc:7:9: error: extended character ” is not valid in an identifier
7 | scanf(“%d”,&n);
| ^
a.cc:11:8: error: extended character “ is not valid in an identifier
11 | printf(“%d”,ans);
| ^
a.cc:11:10: error: extended character ” is not valid in an identifier
11 | printf(“%d”,ans);
| ^
a.cc: In function 'int main()':
a.cc:7:7: error: '\U0000201c' was not declared in this scope
7 | scanf(“%d”,&n);
| ^
a.cc:7:9: error: 'd\U0000201d' was not declared in this scope
7 | scanf(“%d”,&n);
| ^~
|
s703644814 | p03795 | C++ | #include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
scanf("%d", &a);
if (a<=15)
{
int b;
b = * 800;
printf("%d", b);
}
if (a > 15)
{
int c;
c = a * 800 - 200 * (a / 15);
printf("%d", c);
}
system("pause");
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:21: error: invalid type argument of unary '*' (have 'int')
10 | b = * 800;
| ^~~~~
|
s395450869 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << 800N-(N/15)*200 << endl;
} | a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""N'
7 | cout << 800N-(N/15)*200 << endl;
| ^~~~
|
s672096661 | p03795 | C++ | #include <bits/stdc++.h>
#define rep(i,a,n) for(int (i) = (a);(i) < (n);(i)++)
typedef long long ll;
using namespace std;
int main(){
ll n,memo = 0;
cin >> n;
rep(i,1,n+1){
memo += i;
}
cout << memo % (pow(10,9)+7) << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:16:22: error: invalid operands of types 'll' {aka 'long long int'} and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
16 | cout << memo % (pow(10,9)+7) << endl;
| ~~~~ ^ ~~~~~~~~~~~~~
| | |
| | __gnu_cxx::__promote<double>::__type {aka double}
| ll {aka long long int}
|
s797167568 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
const int N;
scanf("%d",&N);
printf("%d",N*800-(N/15)*200);
return 0;
} | a.cc: In function 'int main()':
a.cc:4:13: error: uninitialized 'const N' [-fpermissive]
4 | const int N;
| ^
|
s510413205 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin >> a;
int x, y;
x = a * 800;
y = (a / 15) * 200;
cout << a - b << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:15: error: 'b' was not declared in this scope
11 | cout << a - b << endl;
| ^
|
s398070574 | p03795 | C | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin >> a;
int x, y;
x = a * 800;
y = (a / 15) * 200;
cout << a - b << endl;
return 0;
} | main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s871521505 | p03795 | C++ | #include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
int n;
cin >> n;
cout << n*800 - (n/15)*200 << endl; | a.cc: In function 'int main()':
a.cc:8:40: error: expected '}' at end of input
8 | cout << n*800 - (n/15)*200 << endl;
| ^
a.cc:5:11: note: to match this '{'
5 | int main(){
| ^
|
s726602187 | p03795 | C++ | #include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
int n;
cin >> n;
cout << n*800+(n/15)*200 << endl; | a.cc: In function 'int main()':
a.cc:8:38: error: expected '}' at end of input
8 | cout << n*800+(n/15)*200 << endl;
| ^
a.cc:5:11: note: to match this '{'
5 | int main(){
| ^
|
s632202312 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
cout << 800 * x - 200 * (x / 15) << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:17: error: 'x' was not declared in this scope
8 | cout << 800 * x - 200 * (x / 15) << endl;
| ^
|
s172046328 | p03795 | C++ | #include<iostream>
using namespace std;
int main()
{int n;
cin<<n;
cout<<n*800-n/15*200<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:5: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
5 | cin<<n;
| ~~~^~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:5:5: note: candidate: 'operator<<(int, int)' (built-in)
5 | cin<<n;
| ~~~^~~
a.cc:5:5: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:5:2: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
5 | cin<<n;
| ^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:5:7: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]':
a.cc:5:7: required from here
5 | cin<<n;
| ^
/usr/include/c++/14/ostream:810:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
|
s630094204 | p03795 | C++ | #include <iostream>
#include <cstdio>
using namespace std;
int main() {
int n;
scanf("%d",&n);
int x;
x=n*800;
int y=x/15;
y=y*200;
printf("%d",x-y); | a.cc: In function 'int main()':
a.cc:12:18: error: expected '}' at end of input
12 | printf("%d",x-y);
| ^
a.cc:5:12: note: to match this '{'
5 | int main() {
| ^
|
s951282402 | p03795 | C++ | #include <iostream>
#include <cstdio>
using namespace std;
int main() {
int n;
scanf("%d",&n);
int x;
x=n*800;
y=x/15;
y=y*200;
printf("%d",x-y); | a.cc: In function 'int main()':
a.cc:10:1: error: 'y' was not declared in this scope
10 | y=x/15;
| ^
a.cc:12:18: error: expected '}' at end of input
12 | printf("%d",x-y);
| ^
a.cc:5:12: note: to match this '{'
5 | int main() {
| ^
|
s728773959 | p03795 | Java | public class Restaurant {
public int calcPrice(int x) {
int res = 0;
res = 800 * x - 200 * (x / 15);
return res;
}
} | Main.java:1: error: class Restaurant is public, should be declared in a file named Restaurant.java
public class Restaurant {
^
1 error
|
s810773988 | p03795 | Java | package atcoder.abc.java;
public class Restaurant {
public int calcPrice(int x) {
int res = 0;
res = 800 * x - 200 * (x / 15);
return res;
}
}
| Main.java:3: error: class Restaurant is public, should be declared in a file named Restaurant.java
public class Restaurant {
^
1 error
|
s768005559 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int N, x, y;
int main(){
cin>>N;
x = 800*N;
y = N/15 * 200;
xout<< x -y<<endl;
} | a.cc: In function 'int main()':
a.cc:9:3: error: 'xout' was not declared in this scope
9 | xout<< x -y<<endl;
| ^~~~
|
s214558546 | p03795 | C++ | #include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
typedef long long lng;
#define FOR(i,a,b) for(int i=(a); i<=(b); ++i)
#define FORD(i,b,a) for(int i=(b); i>=(a); --i)
#define REP(i,n) FOR(i,0,n-1)
#define ALL(a) (a).begin(), (a).end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end()) //NOTE: <a> must be sorted in advance
lng power(lng b, lng n) {lng sol=1; while(n>0) {if(n&1) {sol=sol*b;} n>>=1; b*= b;} return sol;} //calculate b^n
const int MOD = 1000000007; //10^9+7
/*********** variables ************/
int N
/**********************************/
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
cin >> N;
int ans = N*800;
ans -= 200*(N/15);
}
| a.cc:22:1: error: expected initializer before 'int'
22 | int main() {
| ^~~
|
s863803168 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << 800 * N - N / 15 * 200 << endl;
}
} | a.cc:9:1: error: expected declaration before '}' token
9 | }
| ^
|
s101565540 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b;
c = b/15
cout << a * 800 - c * 200 << endl;
} | a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'cout'
7 | c = b/15
| ^
| ;
8 | cout << a * 800 - c * 200 << endl;
| ~~~~
|
s698366056 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int N;
cin N;
int x, y;
x = N * 800;
y = N / 15 * 200;
cout << x - y << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'N'
7 | cin N;
| ^~
| ;
|
s238201693 | p03795 | C++ | #include <stdio.h>
int main(void);{
int N;
scanf("%d",&N);
printf("%d",800*N-N/15*200);
return 0;
} | a.cc:3:16: error: expected unqualified-id before '{' token
3 | int main(void);{
| ^
|
s139505363 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n
cout<<n*800-n/15*200<<endl;
} | a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'cout'
6 | cin>>n
| ^
| ;
7 | cout<<n*800-n/15*200<<endl;
| ~~~~
|
s885680609 | p03795 | C++ | // G++ MACRO.CPP -STD=C++17
#include <bits/stdc++.h>
typedef long long ll;
const int INF = 1e9;
const int MOD = 1e9+7;
const ll LINF = 1e18;
using namespace std;
#define dump(x) cout << #x << " = " << (x) << endl;
#define YES(n) cout << ((n) ? "YES" : "NO" ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No" ) << endl
#define POSSIBLE(n) cout << ((n) ? "POSSIBLE" : "IMPOSSIBLE" ) << endl
#define Possible(n) cout << ((n) ? "Possible" : "Impossible" ) << endl
#define possible(n) cout << ((n) ? "possible" : "impossible" ) << endl
#define SANKOU(n,a,b) cout << ((n) ? (#a) : (#b) ) << endl
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) for(int i=0;i<(n);++i)
#define REPR(i,n) for(int i=n;i>=0;i--)
#define FOREACH(x,a) for(auto& (x) : (a) )
#define WFA(d,v) REP(k,v)REP(i,v)REP(j,v)d[i][j]=min(d[i][j],d[i][k]+d[k][j])
#define SCOUT(x) cout<<(x)<<" "
#define ENDL cout<<endl
#define VECCIN(x) for(auto&youso_: (x) )cin>>youso_
#define VECIN2(x,y) REP(i,x.size())cin>>x[i]>>y[i]
#define VECCOUT(x) if(1){for(auto tt=x.begin();tt!=x.end();tt++){if(tt!=x.begin())cout<<" ";cout<<(*tt);}cout<<endl;}
#define ALL(obj) (obj).begin(),(obj).end()
#define EXIST(n,x) (find(ALL(n),x)!=n.end())
#define UNIQUE(obj) sort(ALL( obj )); obj.erase(unique(ALL(obj)),obj.end())
#define EN(x) if(1){cout<<#x<<endl;return 0;}
#define COUT(x) cout<<(x)<<endl
void CINT(){}
template <class Head,class... Tail>
void CINT(Head&& head,Tail&&... tail){
cin>>head;
CINT(move(tail)...);
}
#define CIN(...) int __VA_ARGS__;CINT(__VA_ARGS__)
#define LCIN(...) ll __VA_ARGS__;CINT(__VA_ARGS__)
#define SCIN(...) string __VA_ARGS__;CINT(__VA_ARGS__)
template <class T = ll>
T IN(){T x;cin>>x;return (x);}
template <class Head>
void VT(Head head){}
template <class Head,class Seco,class... Tail>
void VT(Head&& head,Seco&& seco,Tail&&... tail){
seco.resize(head);
VT(head,move(tail)...);
}
void VT2(){}
template <class Head,class... Tail>
void VT2(Head&& head,Tail&&... tail){
VECCIN(head);
VT2(move(tail)...);
}
template <class Head>
void VT3(Head&& head){}
template <class Head,class Seco,class... Tail>
void VT3(Head&& head,Seco&& seco,Tail&&... tail){
seco[head]=IN();
VT3(head,move(tail)...);
}
#define VC1(n,...) V __VA_ARGS__;VT(n,__VA_ARGS__);VT2(__VA_ARGS__); //aaabbbccc
#define VC2(n,...) V __VA_ARGS__;VT(n,__VA_ARGS__);REP(i,n)VT3(i,__VA_ARGS__); //abcabcabc
// #include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision; // cpp_int
#define P pair<ll,ll>
#define V vector<ll>
#define M map<ll,ll>
#define S set<ll>
#define pb(a) push_back(a)
#define mp make_pair
int main(){
CIN(n);
COUT(800*n + (n/15) * 200)
return 0;
} | a.cc: In function 'int main()':
a.cc:93:3: error: expected ';' before 'return'
93 | return 0;
| ^~~~~~
|
s995231714 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int X;
int y;
x = 800*N;
y = (N/15)*200;
cout << x-y << endl;
} | a.cc: In function 'int main()':
a.cc:9:3: error: 'x' was not declared in this scope
9 | x = 800*N;
| ^
|
s528108528 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int X;
int y;
x = 800*N;
y = (N/15)*200;
cout << x-y << endl;
} | a.cc: In function 'int main()':
a.cc:9:3: error: 'x' was not declared in this scope
9 | x = 800*N;
| ^
|
s257632079 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
int X;
int y;
x = 800*N;
y = (N/15)*200;
cout << x-y << endl;
} | a.cc: In function 'int main()':
a.cc:9:3: error: 'x' was not declared in this scope
9 | x = 800*N;
| ^
|
s583065616 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
int X;
int y;
x = 800*N;
y = (N/15)*200;
cout << x-y << endl;
} | a.cc:1:1: error: '\U0000ff03include' does not name a type
1 | #include<bits/stdc++.h>
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> N;
| ^~~
a.cc:9:3: error: 'x' was not declared in this scope
9 | x = 800*N;
| ^
a.cc:11:3: error: 'cout' was not declared in this scope
11 | cout << x-y << endl;
| ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope
11 | cout << x-y << endl;
| ^~~~
|
s569995576 | p03795 | C++ | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int x;
int y;
x = N * 800;
N = N - N % 15;
N = N / 15;
y = N * 200;
cout << x - y << endl;
return 0;
} | a.cc:5:1: error: extended character is not valid in an identifier
5 | int N;
| ^
a.cc:5:1: error: extended character is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000\U00003000int' was not declared in this scope
5 | int N;
| ^~~~~~~
a.cc:6:12: error: 'N' was not declared in this scope
6 | cin >> N;
| ^
|
s422879025 | p03795 | C++ | #include<iostream>
#include<map>
using namespace std;
int main(){
int N=0,tmp=0;
int angel[100005]={};
map<int,int>
cin>>N;
cout<<800*N-200*(N/15)<<endl;
} | a.cc: In function 'int main()':
a.cc:8:8: error: expected initializer before '>>' token
8 | cin>>N;
| ^~
|
s016124728 | p03795 | C++ | #include<stdio.h>
#include<conio.h>
int main()
{
int x,y,m;
int N(N>0&&N<101);
scanf("%d",&N);
x=800*N;
if(N<=15)
y=200;
else if(N<=30)
y=400;
else if(N<=45)
y=600;
else if(N<=60)
y=800;
else if(N<=75)
y=1000;
else if(N<=90)
y=1200;
else
y=1200;
m=x-y;
printf("%d",m);
return 0;
}
| a.cc:2:9: fatal error: conio.h: No such file or directory
2 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s484456211 | p03795 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <map>
#include <cmath>
#include <queue>
#include <utility>
#include <functional>
#include <deque>
#include <cctype>
#include <stack>
#include <bitset>
using ll = long long;
typedef unsigned long long ull;
typedef std::pair<ll, ll>P;
ll gcd(ll a, ll b) {
if (b == 0) return a;
return gcd(b, a%b);
}
ll lcm(ll a, ll b) {
ll g = gcd(a, b);
return a / g * b;
}
const ll mod = 1000000007;
const ll INF = 1 << 30;
const ll INF2 = 9000000000000000000LL;
bool fl = true;
int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };
std::string abc = "abcdefghijklmnopqrstuvwxyz";
struct edge { ll to, cost; };
struct edge1 { ll from, to, cost; };
double pai = 3.141592653589793;
std::vector<P>v[100010];
int main() {
int n;
std::cin >> n;
std::cout << n * 800 - 200 * n % 15<< std::endl; | a.cc: In function 'int main()':
a.cc:43:57: error: expected '}' at end of input
43 | std::cout << n * 800 - 200 * n % 15<< std::endl;
| ^
a.cc:40:12: note: to match this '{'
40 | int main() {
| ^
|
s479882900 | p03795 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <map>
#include <cmath>
#include <queue>
#include <utility>
#include <functional>
#include <deque>
#include <cctype>
#include <stack>
#include <bitset>
using ll = long long;
typedef unsigned long long ull;
typedef std::pair<ll, ll>P;
ll gcd(ll a, ll b) {
if (b == 0) return a;
return gcd(b, a%b);
}
ll lcm(ll a, ll b) {
ll g = gcd(a, b);
return a / g * b;
}
const ll mod = 1000000007;
const ll INF = 1 << 30;
const ll INF2 = 9000000000000000000LL;
bool fl = true;
int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };
std::string abc = "abcdefghijklmnopqrstuvwxyz";
struct edge { ll to, cost; };
struct edge1 { ll from, to, cost; };
double pai = 3.141592653589793;
std::vector<P>v[100010];
int main() {
int n;
std::cout << n * 800 - 200 * n % 15<< std::endl; | a.cc: In function 'int main()':
a.cc:42:57: error: expected '}' at end of input
42 | std::cout << n * 800 - 200 * n % 15<< std::endl;
| ^
a.cc:40:12: note: to match this '{'
40 | int main() {
| ^
|
s182960155 | p03795 | C++ | #include <iostream>
#include <algorithm>
#include<string>
#include<sstream>
using namespace std;
int main()
{
int n,x,y;
cin>>n;
cout<<800*n-n/15*200<,endl;
system("pause");
return 0;
} | a.cc: In function 'int main()':
a.cc:10:22: error: expected primary-expression before ',' token
10 | cout<<800*n-n/15*200<,endl;
| ^
|
s206746519 | p03795 | C++ | include<iostream>
using namespace std;
int main()
{int a,b;
cin>>a;
b=a/15;
cout<<800*a-200*b;
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope
5 | cin>>a;
| ^~~
a.cc:7:2: error: 'cout' was not declared in this scope
7 | cout<<800*a-200*b;
| ^~~~
|
s124123694 | p03795 | C++ | #include<iostream>
#include<algorithm>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
int n;
cin >> n;
x = 800 * n;
y = 200 * (n / 15);
cout << x - y << "\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:13:5: error: 'x' was not declared in this scope
13 | x = 800 * n;
| ^
a.cc:14:5: error: 'y' was not declared in this scope
14 | y = 200 * (n / 15);
| ^
|
s069134626 | p03795 | Java | public class Main{
public static void main(String[] args){
int eatLunch = 0;
int price = 0;
Scanner sc = new Scanner(System.in);
while(true){
eatLunch = sc.nextInt();
if(eatLunch =< 100){
break;
}
}
price = eatLunch * 800;
if(eatLunch =< 15){
price = price - ((eatLunch / 15) * 200);
}
System.out.println(price);
}
} | Main.java:10: error: illegal start of type
if(eatLunch =< 100){
^
Main.java:10: error: ';' expected
if(eatLunch =< 100){
^
Main.java:17: error: illegal start of type
if(eatLunch =< 15){
^
Main.java:17: error: ';' expected
if(eatLunch =< 15){
^
4 errors
|
s664929764 | p03795 | Java | public class Main{
public static void main(String[] args){
int eatLunch = 0;
int price = 0;
Scanner sc = new Scanner(System.in);
while(true){
eatLunch = sc.nextInt();
if(eatLunch =< 100){
break;
}
price = eatLunch * 800;
if(eatLunch =< 15){
price = price - ((eatLunch / 15) * 200);
}
System.out.println(price);
}
} | Main.java:10: error: illegal start of type
if(eatLunch =< 100){
^
Main.java:10: error: ';' expected
if(eatLunch =< 100){
^
Main.java:16: error: illegal start of type
if(eatLunch =< 15){
^
Main.java:16: error: ';' expected
if(eatLunch =< 15){
^
Main.java:22: error: reached end of file while parsing
}
^
5 errors
|
s177158400 | p03795 | Java | public class Restraint{
public static void Main(String[] args){
int eatLunch = 0;
int price = 0;
Scanner sc = new Scanner(System.in);
while(true){
eatLunch = sc.nextInt();
if(eatLunch =< 100){
break;
}
price = eatLunch * 800;
if(eatLunch =< 15){
price = price - ((eatLunch / 15) * 200);
}
System.out.println(price);
}
} | Main.java:10: error: illegal start of type
if(eatLunch =< 100){
^
Main.java:10: error: ';' expected
if(eatLunch =< 100){
^
Main.java:16: error: illegal start of type
if(eatLunch =< 15){
^
Main.java:16: error: ';' expected
if(eatLunch =< 15){
^
Main.java:22: error: reached end of file while parsing
}
^
5 errors
|
s303870265 | p03795 | C++ | #include<iostream>
using namespace std;
int main(){
int n=0;
int m=0;
cin>>n>>m;
m=m-2*n;
m=m/4;
if(m<0)m=0;
cout<<n+m;
| a.cc: In function 'int main()':
a.cc:12:27: error: expected '}' at end of input
12 | cout<<n+m;
| ^
a.cc:5:11: note: to match this '{'
5 | int main(){
| ^
|
s964725208 | p03795 | C++ | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s = br.readLine();
int n = Integer.parseInt(s);
int x = n * 800;
int y = (n / 15) * 200;
System.out.println(x - y);
}
}
| a.cc:1:1: error: 'import' does not name a type
1 | import java.io.BufferedReader;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.io.InputStreamReader;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
4 | public class Main {
| ^~~~~~
|
s512779625 | p03795 | C++ | #include <stdio.h>
int main(void){
int N,P=1;
scanf("%d",&N);
for(i=0;i<=N;i++)
P*=i;
P=P%(1000000000+7);
printf("%d",P);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:7: error: 'i' was not declared in this scope
5 | for(i=0;i<=N;i++)
| ^
|
s868342673 | p03795 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
int N;
cin N;
cout << 800 * N - N / 15 * 200 << endl;
} | a.cc: In function 'int main()':
a.cc:8:4: error: expected ';' before 'N'
8 | cin N;
| ^~
| ;
|
s315981326 | p03795 | C++ | #include <iostream>
#include <algorithm>
#include <string>
#include <cstdio>
#include <cmath>
#include <stack>
#include <cstring>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <numeric>
#include <iomanip>
int main()
{
long long n;
std::cin >> n;
std::cout << n * 800 - (n / 15) * 200) << std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:22:46: error: expected ';' before ')' token
22 | std::cout << n * 800 - (n / 15) * 200) << std::endl;
| ^
| ;
|
s400871234 | p03795 | C++ | #include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
using namespace std;
int main(){
int n;
cin >> n;
int x = 800*n;
int y = 200*(n/15);
printf("%d\n, x-y);
return 0;
} | a.cc:14:16: warning: missing terminating " character
14 | printf("%d\n, x-y);
| ^
a.cc:14:16: error: missing terminating " character
14 | printf("%d\n, x-y);
| ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:9: error: expected primary-expression before 'return'
16 | return 0;
| ^~~~~~
|
s586190682 | p03795 | Java | import java.util.Scanner;
import java.util.Random;
import java.util.Arrays;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = nextInt();
int num = a/15;
System.out.println(800*a - num);
}
} | Main.java:9: error: cannot find symbol
int a = nextInt();
^
symbol: method nextInt()
location: class Main
1 error
|
s372616866 | p03795 | C++ | #include<iostream>
int main(){
int n;
int a,b;
cin>>n;
a=800*n;
b=200*(n/15);
std::cout<<a-b;
} | a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>n;
| ^~~
| 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
| ^~~
|
s486435545 | p03795 | C++ | #include<bits/stdc++.h>
#define fi first
#define se second
#define FO(x, n) for (int x = 0; x < n; ++x)
#define FOR(x, a, b) for (int x = a; x < b; ++x)
#define RFO(x, n) for (int x = n - 1; x >= 0; --x)
#define RFOR(x, a, b) for (int x = b - 1; x >= a; --x)
#define FOR_ITER(x, a) for(auto x = a.begin(); x != a.end(); ++x)
typedef unsigned char byte;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<double, double> pdd;
typedef pair<string, string> pss;
typedef pair<ll, ll> pll;
inline bool feq(const double& a, const double& b) { return fabs(a - b) < 1e-10; }
using namespace std;
int n, m;
int main(){
// int n, l;
// cin >> n >> k;
// vector<bool> dislike(10, false);
//
// FOR(i, 0, k) {
// int t;
// cin >> t;
// dislike[t] = true;
// }
cin >>n;
cout<<(800*n - 200*(n/15)) <<endl;
return 0;
}
| a.cc:14:9: error: 'pair' does not name a type
14 | typedef pair<int, int> pii;
| ^~~~
a.cc:15:9: error: 'pair' does not name a type
15 | typedef pair<double, double> pdd;
| ^~~~
a.cc:16:9: error: 'pair' does not name a type
16 | typedef pair<string, string> pss;
| ^~~~
a.cc:17:9: error: 'pair' does not name a type
17 | typedef pair<ll, ll> pll;
| ^~~~
|
s797468045 | p03795 | C++ | #include<bits/stdc++.h>
#define fi first
#define se second
#define FO(x, n) for (int x = 0; x < n; ++x)
#define FOR(x, a, b) for (int x = a; x < b; ++x)
#define RFO(x, n) for (int x = n - 1; x >= 0; --x)
#define RFOR(x, a, b) for (int x = b - 1; x >= a; --x)
#define FOR_ITER(x, a) for(auto x = a.begin(); x != a.end(); ++x)
typedef unsigned char byte;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<double, double> pdd;
typedef pair<string, string> pss;
typedef pair<ll, ll> pll;
inline bool feq(const double& a, const double& b) { return fabs(a - b) < 1e-10; }
using namespace std;
int n, m;
int main(){
// int n, l;
// cin >> n >> k;
// vector<bool> dislike(10, false);
//
// FOR(i, 0, k) {
// int t;
// cin >> t;
// dislike[t] = true;
// }
cin >>n;
cout<<(800*n - 200*(n/15)) <<endl;
return 0;
}
| a.cc:14:9: error: 'pair' does not name a type
14 | typedef pair<int, int> pii;
| ^~~~
a.cc:15:9: error: 'pair' does not name a type
15 | typedef pair<double, double> pdd;
| ^~~~
a.cc:16:9: error: 'pair' does not name a type
16 | typedef pair<string, string> pss;
| ^~~~
a.cc:17:9: error: 'pair' does not name a type
17 | typedef pair<ll, ll> pll;
| ^~~~
|
s882284584 | p03795 | C++ | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if(N<=14){
cout << 800 * N << endl;
if (15 <= N <= 29) {
cout << 800 * N - 200 << endl;
}
if (30 <= N <= 44) {
cout << 800 * N - 400 << endl;
}
if (45 <= N <= 59) {
cout << 800 * N - 600 << endl;
}
if (60 <= N <= 74) {
cout << 800 * N - 800 << endl;
}
if (75 <= N <= 89) {
cout << 800 * N - 1000 << endl;
}
if (90 <= N) { cout << 800 * N - 1200 << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:28:2: error: expected '}' at end of input
28 | }
| ^
a.cc:3:12: note: to match this '{'
3 | int main() {
| ^
|
s547808883 | p03795 | C++ | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if(N<=14){
cout << 800 * N << endl;
if (15 <= N <= 29) {
cout << 800 * N - 200 << endl;
}
if (30 <= N <= 44) {
cout << 800 * N - 400 << endl;
}
if (45 <= N <= 59) {
cout << 800 * N - 600 << endl;
}
if (60 <= N <= 74) {
cout << 800 * N - 800 << endl;
}
if (75 <= N <= 89) {
cout << 800 * N - 1000 << endl;
}
if (90 <= N <= 100) { cout << 800 * N - 1200 << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:28:2: error: expected '}' at end of input
28 | }
| ^
a.cc:3:12: note: to match this '{'
3 | int main() {
| ^
|
s521971808 | p03795 | C++ | #include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int x,y;
x = 800*N;
y = 200*(N%15;)
cout << x-y << endl;
}
| a.cc: In function 'int main()':
a.cc:8:16: error: expected ')' before ';' token
8 | y = 200*(N%15;)
| ~ ^
| )
a.cc:8:17: error: expected primary-expression before ')' token
8 | y = 200*(N%15;)
| ^
|
s354022124 | p03795 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <cmath>
#include <utility>
using namespace std;
#define fol(i,n) for (int i=0;i<n;i++)
int main(){
int a;
cin >>a;
cout << a*800-200*(a/15)
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:25: error: expected ';' before 'return'
14 | cout << a*800-200*(a/15)
| ^
| ;
15 | return 0;
| ~~~~~~
|
s082893259 | p03795 | C++ | #include<iostream>
using namespace std;
int main() {
int N;
N = 100;
int x,y,Y=0;
for(int i=1; i <= N/15; i++){
Y = Y+1;
}
x = 800*N;
y = 200*Y
cout << x-y << endl;
} | a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'cout'
11 | y = 200*Y
| ^
| ;
12 | cout << x-y << endl;
| ~~~~
|
s595430298 | p03795 | C++ | N = int(input())
print( N * 800 - (N // 15) * 200) | a.cc:1:1: error: 'N' does not name a type
1 | N = int(input())
| ^
|
s916874854 | p03795 | C | #include <stdio.h>
int main(void)
{
int N,x,y;
N>=1 && N<=100;
int scanf ("%d",&N);
x=800*N;
y=N/15;
printf ("%dyen\n",(x-(y*200)));
return 0;
} | main.c: In function 'main':
main.c:6:12: error: expected declaration specifiers or '...' before string constant
6 | int scanf ("%d",&N);
| ^~~~
main.c:6:17: error: expected declaration specifiers or '...' before '&' token
6 | int scanf ("%d",&N);
| ^
|
s672153601 | p03795 | C | #include <stdio.h>
int main(void)
{
int N,x,y;
N>=1 && N<=100;
int scanf ("%d",&N);
x=800*N;
y=N/15;
printf ("%dyen\n",(x-(y*200)));
return 0;
} | main.c: In function 'main':
main.c:6:12: error: expected declaration specifiers or '...' before string constant
6 | int scanf ("%d",&N);
| ^~~~
main.c:6:17: error: expected declaration specifiers or '...' before '&' token
6 | int scanf ("%d",&N);
| ^
|
s294075862 | p03795 | C++ | #include <stdio.h>
int main(void)
{
int N,x,y;
N>=1 && N<=100;
int scanf ("%d",&N);
x=800*N;
y=N/15;
printf ("%dyen\n",(x-(y*200)));
return 0;
} | a.cc: In function 'int main()':
a.cc:6:19: error: expression list treated as compound expression in initializer [-fpermissive]
6 | int scanf ("%d",&N);
| ^
a.cc:6:19: error: invalid conversion from 'int*' to 'int' [-fpermissive]
6 | int scanf ("%d",&N);
| ^
| |
| int*
|
s309627642 | p03795 | C++ | #include<iostream>
using namespase std;
int main(){
int n; cin>>n;
cout<<n*800-(n/15)*200<<endl;
} | a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:8: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | int n; cin>>n;
| ^~~
| 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:5:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | cout<<n*800-(n/15)*200<<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:5:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
5 | cout<<n*800-(n/15)*200<<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)
| ^~~~
|
s329714479 | p03795 | C++ | #include<iostream>
using namespacse std;
int main(){
int n; cin>>n;
cout<<n*800-(n/15)*200<<endl;
} | a.cc:2:7: error: expected nested-name-specifier before 'namespacse'
2 | using namespacse std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:8: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | int n; cin>>n;
| ^~~
| 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:5:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | cout<<n*800-(n/15)*200<<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:5:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
5 | cout<<n*800-(n/15)*200<<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)
| ^~~~
|
s269423846 | p03795 | Java | package abc055;
import java.util.Scanner;
public class A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
System.out.println(800*n-200*(n/15));
}
}
| Main.java:6: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s349753402 | p03795 | C++ |
#include <iostream>
#include<math.h>
int main() {
long long N;
std::cin >> N;
long long power = 1;
for(long long i = 1; i <= N; i++){
power = (power * N) % (pow(10, 9) + 7)
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:25: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
9 | power = (power * N) % (pow(10, 9) + 7)
| ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~
| | |
| long long int __gnu_cxx::__promote<double>::__type {aka double}
|
s446684597 | p03795 | C++ | #include <iostream>
int main() {
long long N;
std::cin >> N;
long long power = 1;
for(long long i = 1; i <= N; i++){
power = (power * N) % (pow(10, 9) + 7)
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:28: error: 'pow' was not declared in this scope; did you mean 'power'?
7 | power = (power * N) % (pow(10, 9) + 7)
| ^~~
| power
|
s317591343 | p03795 | Java | package abc055;
import java.util.Scanner;
public class A {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
System.out.println(800*n-200*(n/15));
}
}
| Main.java:6: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s812709407 | p03795 | Java | package abc055;
import java.util.Scanner;
public class A {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
System.out.println(800*n-200*(n/15));
}
}
| Main.java:6: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s242627911 | p03795 | C++ | #include <iostream>
Using namespace std;
int main()
{
int n;
cin >> n;
count<<n*800-(n/15)*200<<endl;
} | a.cc:2:1: error: 'Using' does not name a type
2 | Using namespace std;
| ^~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> n;
| ^~~
| 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: 'count' was not declared in this scope
8 | count<<n*800-(n/15)*200<<endl;
| ^~~~~
a.cc:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
8 | count<<n*800-(n/15)*200<<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)
| ^~~~
|
s374925030 | p03795 | C++ | #include <bits/stdc++.h>
int main() {
int N;
while(std::cin >> N) {
cout << 800 * N - 200 * (N / 15) << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | cout << 800 * N - 200 * (N / 15) << endl;
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:5:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
5 | cout << 800 * N - 200 * (N / 15) << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s502640889 | p03795 | C++ | include<iostream>
#include<string>
using namespace std;
int main(){
int a;
cin >>a ;
cout <<(a*800)-(a/15)*200 <<endl;
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from a.cc:2:
/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/char_traits.h:50:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40:
/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/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/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/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/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/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/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/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
2171 | template<std::size_t _Len>
| ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared
144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type
146 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared
150 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared
153 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared
156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared
159 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared
187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/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/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/include/c++/14/bits/char_traits.h: At global scope:
/usr/include/c++/14/bits/char_traits.h:198:31: error: 'size_t' in namespace 'std' does not name a type
198 | _GLIBCXX14_CONSTEXPR std::size_t
| |
s230571132 | p03795 | C++ | include<iostream>
#include<string>
using namespace std;
int main(){
int a;
cin >>a ;
cout <<(a*800)-(a/15)*200 <<endl;
return 0;
}
| a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from a.cc:2:
/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/char_traits.h:50:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40:
/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/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/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/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/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/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/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/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
2171 | template<std::size_t _Len>
| ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared
144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type
146 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared
150 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared
153 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared
156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared
159 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared
187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/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/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/include/c++/14/bits/char_traits.h: At global scope:
/usr/include/c++/14/bits/char_traits.h:198:31: error: 'size_t' in namespace 'std' does not name a type
198 | _GLIBCXX14_CONSTEXPR std::size_t
| |
s449812615 | p03795 | Java | package spring;
public class atcoder {
public static void main(String[] args){
int n=10,i,a=1;
for(i=1;i<n+1;i++){
a=a*i;
}
System.out.println(a);
}
}
| Main.java:3: error: class atcoder is public, should be declared in a file named atcoder.java
public class atcoder {
^
1 error
|
s271380546 | p03795 | Java | import java.util.Scanner;
public class TrainingCamp {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
int N = a.nextInt();
double power = 1;
for(int i = 1; i <= N; i++){
power = (power * i) % 100000000+7;
}
System.out.println(power);
}
} | Main.java:3: error: class TrainingCamp is public, should be declared in a file named TrainingCamp.java
public class TrainingCamp {
^
1 error
|
s773015657 | p03795 | Java | import java.util.Scanner;
public class A_Restaurant {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int x = N * 800;
int y = (N / 15) * 200;
int sum = x-y;
System.out.print("合計金額="+sum);
}
} | Main.java:2: error: class A_Restaurant is public, should be declared in a file named A_Restaurant.java
public class A_Restaurant {
^
1 error
|
s046365472 | p03795 | Java | import java.util.*;
public class Aaa{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int i;
int pow=1;
double ans=0;
for(i = 1; i <= N; i++){
pow = pow * i;
ans = pow % (Math.pow(10.0,9.0)+7.0);
}
System.out.println((int)ans);
}
}
| Main.java:2: error: class Aaa is public, should be declared in a file named Aaa.java
public class Aaa{
^
1 error
|
s993771764 | p03795 | Java | import java.util.*;
public class Aaa{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int i;
double pow=1;
double ans=0;
for(i = 1; i <= N; i++){
pow = pow * i;
ans = (double)pow % (Math.pow(10.0,9.0)+7.0);
}
System.out.println((int)ans);
}
}
| Main.java:2: error: class Aaa is public, should be declared in a file named Aaa.java
public class Aaa{
^
1 error
|
s872626752 | p03795 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int i;
int pow=1;
for(i = 1; i <= N; i++){
pow = pow * i;
double ans = (double)pow % (Math.pow(10.0,9.0)+7.0);
}
System.out.println((int)ans);
}
} | Main.java:12: error: cannot find symbol
System.out.println((int)ans);
^
symbol: variable ans
location: class Main
1 error
|
s214689184 | p03795 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int i;
for(i = 1; i < N; i++){
int pow = pow * i;
double ans = (double)pow % (Math.pow(10.0,9.0)+7.0);
}
System.out.println((int)ans);
}
}
| Main.java:12: error: cannot find symbol
System.out.println((int)ans);
^
symbol: variable ans
location: class Main
1 error
|
s853238332 | p03795 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int i;
for(i = 1; i < N; i++){
int pow = pow * i;
int ans = pow % (Math.pow(10.0,9.0)+7.0);
}
System.out.println((int)ans);
}
}
| Main.java:10: error: incompatible types: possible lossy conversion from double to int
int ans = pow % (Math.pow(10.0,9.0)+7.0);
^
Main.java:12: error: cannot find symbol
System.out.println((int)ans);
^
symbol: variable ans
location: class Main
2 errors
|
s273103779 | p03795 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int i;
for(i = 1; i < N; i++){
int pow = pow * i;
int ans = pow % (Math.pow(10.0,9.0)+7.0);
}
System.out.println(ans);
}
}
| Main.java:12: error: incompatible types: possible lossy conversion from double to int
int ans = pow % (Math.pow(10.0,9.0)+7.0);
^
Main.java:14: error: cannot find symbol
System.out.println(ans);
^
symbol: variable ans
location: class Main
2 errors
|
s701381435 | p03795 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int i;
for(i = 1; i < N; i++){
int pow = pow * i;
double ans = pow % (Math.pow(10.0,9.0)+7.0);
}
System.out.println(ans);
}
}
| Main.java:12: error: cannot find symbol
System.out.println(ans);
^
symbol: variable ans
location: class Main
1 error
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.