submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s306560636 | p03793 | C++ | #include <iostream>
#include <vector>
#include <string.h>
#include <limits.h>
using namespace std;
int judge(char* str, int start, int end, int length){
for(int count = 0; count < length; count++){
int head = INT_MAX;
for(int i = start; i < end; i++){
char t_i = str[i];
char t_i1 = str[i+1];
... | a.cc: In function 'int main(int, char**)':
a.cc:53:30: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
53 | int size_ = judge(s.c_str(), l-1, r-1, count);
| ~~~~~~~^~
| |
| const char*
a.cc:8:... |
s088725949 | p03793 | C++ | include <iostream>
#include <vector>
#include <string.h>
#include <limits.h>
using namespace std;
int judge(char* str, int length){
for(int count = 0; count < length; count++){
int head = INT_MAX;
for(int i = 0; i < strlen(str); i++){
char t_i = str[i];
char t_i1 = str[i+1];
cout << t_i <<... | a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:62,
from /usr/include/c++/14/vector:62,
from a.cc:2:
/usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu... |
s135595072 | p03793 | C++ | include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;
int moji(string s,long long int a,long long int b);
int main(){
string s;
long long int n;
long long int q[500000][2];
long long int i;
int how;
cin>>s;
cin>>n;
for(i=0;i<n;i++){
... | a.cc:1:1: error: 'include' does not name a type
1 | include<stdio.h>
| ^~~~~~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
fr... |
s854600276 | p03793 | C++ | include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;
int moji(string s,long long int a,long long int b);
int main(){
string s;
long long int n;
long long int q[500000][2];
long long int i;
int how;
cin>>s;
cin>>n;
for(i=0;i<n;i++){
... | a.cc:1:1: error: 'include' does not name a type
1 | include<stdio.h>
| ^~~~~~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
fr... |
s656101878 | p03793 | C++ | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define inf (int)1000000007
#define mod (int)1000000007
#define rep(i, n) for(int i = 0; i < (n); i++)
#define trep(i, n) for(int i = 0; i <= (n); i++)
#define rrep(i, n) for(int i = (n) - 1; i >= 0; i--)
#define rtrep(i, n) for(int i = (n); i >= 0;... | a.cc: In function 'void solve2(long long int)':
a.cc:102:27: error: 's' was not declared in this scope
102 | solve2(i, s);
| ^
a.cc:104:12: error: 'o' was not declared in this scope
104 | ns[o] = false;
| ^
a.cc: In function 'int main()':
a.cc... |
s416109548 | p03793 | C++ | #include <bits/stdc++.h>
using namespace std;
#define mp(x, y) make_pair((x), (y))
typedef long long ll;
int n;
char s[500005];
int dp[500005][27];
int next[500005][21];
int nn[500005][26];
int main()
{
scanf("%s\n", s);
n=strlen(s);
for(int i=0; i<n; i++) s[i]-='a';
for(int i=0; i<n; i++) for(int j=0; j<27; j+... | a.cc: In function 'int main()':
a.cc:21:56: error: reference to 'next' is ambiguous
21 | for(int i=0; i<n; i++) for(int j=0; j<21; j++) next[i][j]=-1;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:66,
from /u... |
s826005886 | p03793 | C++ | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <map>
using namespace std;
#define MOD @
#define ADD(X,Y) ((X) = ((X) + (Y)%MOD) % MOD)
typedef long long i64; typedef vector<int... | a.cc:87:9: error: expected unqualified-id before 'for'
87 | for (int i = 0; i < N; ++i) if (dp[i][26] <= N) {
| ^~~
a.cc:87:25: error: 'i' does not name a type
87 | for (int i = 0; i < N; ++i) if (dp[i][26] <= N) {
| ^
a.cc:87:32: error: expected unquali... |
s655537863 | p03793 | C++ | #include <iostream>
#include <cstdio>
#include <cstring>
#define MAXN 500005
using namespace std;
string s;
int n;
int pos[MAXN][26], vanish[MAXN];
int main() {
cin >> s;
n = s.size();
memset(pos, -1, sizeof pos);
memset(vanish, -1, sizeof vanish);
for (int i = 0; i < n; i++) {
s[i] -= 'a';
}
pos[n - 1][s[... | a.cc: In function 'int main()':
a.cc:39:22: error: 'Q' was not declared in this scope
39 | scanf("%d", &Q);
| ^
a.cc:41:33: error: 'u' was not declared in this scope
41 | scanf("%d %d", &u, &v);
| ^
a.cc:41:37: error: 'v' was... |
s640227924 | p03793 | C++ | #include <string>
#include <vector>
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<stack>
#include<queue>
#include<cmath>
#include<algorithm>
#include<functional>
#include<list>
#include<deque>
#include<bitset>
#include<set>
#include<map>
#include<unordered_map>
#include<unordered_set>
#include<cstring>... | a.cc: In function 'int main()':
a.cc:77:14: error: 'jque' was not declared in this scope; did you mean 'que'?
77 | while(qs[jque].size()){
| ^~~~
| que
|
s638399064 | p03793 | C++ | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define inf 1000000005
#define all(a) (a).begin(), (a).end()
#define ms(a,x) memset(a, x, sizeof(a))
#define mod 1000000007
#define sz(a) ((ll)(a).size())
template<class T> int getbit(T s, int i) ... | a.cc: In function 'void solve()':
a.cc:81:13: error: redeclaration of 'int run'
81 | int run = l;
| ^~~
a.cc:78:9: note: 'int run' previously declared here
78 | Rep(run, q){
| ^~~
a.cc:17:26: note: in definition of macro 'Rep'
17 | #define Rep(i,n) for(int i = 0; i <... |
s578163373 | p03793 | Java | import java.util.ArrayList;
import java.util.Scanner;
public class Main2 {
private static String input = "";
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
input = scanner.nextLine();
int countOfQuerries = Integer.parseInt(scanner.nextLine());
... | Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
^
1 error
|
s309069654 | p03794 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;
#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#define ZER... | a.cc: In function 'void dfs(int, int, int, int, int)':
a.cc:44:96: error: 'mo' was not declared in this scope; did you mean 'md'?
44 | FORR(e,E[cur]) if(e!=pre) (dp[cur][505+x] *= (dp[e][505+x+1]+dp[e][505+x-1]))%=mo;
| ... |
s715733395 | p03794 | C++ | // ba mei zi !
#include<bits/stdc++.h>
#define HEAP priority_queue
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define per(i, n) for(int i = (n) - 1; i >= 0 ; --i)
#define forn(i, l, r) for(int i = (l); i <= (r); ++i)
#define nrof(i, r, l) for(int i = (r); i >= (l); --i)
#define FOR(a, b) for(auto (a): (b))
#defin... | a.cc: In function 'void ZI()':
a.cc:260:45: error: expected primary-expression before ',' token
260 | else if(diameter_length & 1) for(;;), Odd::solve();
| ^
|
s703190372 | p03794 | C++ | // ba mei zi !
#include<bits/stdc++.h>
#define HEAP priority_queue
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define per(i, n) for(int i = (n) - 1; i >= 0 ; --i)
#define forn(i, l, r) for(int i = (l); i <= (r); ++i)
#define nrof(i, r, l) for(int i = (r); i >= (l); --i)
#define FOR(a, b) for(auto (a): (b))
#defin... | a.cc: In function 'void ZI()':
a.cc:260:45: error: expected primary-expression before ',' token
260 | else if(diameter_length & 1) for(;;), Odd::solve();
| ^
|
s229878756 | p03794 | C++ | #include <bits/stdc++.h>
using namespace std;
int n;
int ver[1001] , nxt[2001] , to[2001] , tot;
void addedge(int from , int t)
{nxt[++tot] = ver[from];to[tot] = t;ver[from] = tot;}
const int mod = 1000000007;
int siz[1001];
map<pair<int,int> , int> f[1001];
int mid;
void dfs(int o)
{
siz[o] = 1;
map<pair<int,i... | a.cc: In function 'void dfs(int)':
a.cc:32:67: error: expected ';' before 'res'
32 | make_pair<int,int> res = make_pair(max(x.first.first , y.first.first) , max(x.first.second , y.first.second + 1));
| ... |
s938632160 | p03794 | C++ | #include <bits/stdc++.h>
using namespace std;
int n;
int ver[1001] , nxt[2001] , to[2001] , tot;
void addedge(int from , int t)
{nxt[++tot] = ver[from];to[tot] = t;ver[from] = tot;}
const int mod = 1000000007;
int siz[1001];
map<pair<int,int> , int> f[1001];
int mid;
void dfs(int o)
{
siz[o] = 1;
map<pair<int,i... | a.cc: In function 'void dfs(int)':
a.cc:32:67: error: expected ';' before 'res'
32 | make_pair<int,int> res = make_pair(max(x.first.first , y.first.first) , max(x.first.second , y.first.second + 1));
| ... |
s470228077 | p03795 | C++ | #include <iostream>
int main () {
int n, rest, divRes;
std::in >> n;
rest = n % 15;
divRes = (n - rest) / 15
std::out << n * 800 - divRes * 200 << std::endl;
} | a.cc: In function 'int main()':
a.cc:6:14: error: 'in' is not a member of 'std'; did you mean 'min'?
6 | std::in >> n;
| ^~
| min
a.cc:9:33: error: expected ';' before 'std'
9 | divRes = (n - rest) / 15
| ^
| ... |
s187751110 | p03795 | C | #include<stdio.h>
int main(){
int n;
scanf("%d",&n);
int sum=800*n-200*(n/15);
printf("%d\n",sum);
return
} | main.c: In function 'main':
main.c:10:1: error: expected expression before '}' token
10 | }
| ^
|
s027067069 | p03795 | C | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
#define txt freopen("ip.txt", "r", stdin); freopen("op.txt", "w", stdout)
#define a3 INT_MAX
#define i3 INT_MIN
#define a6 INT64_MAX
#define i6 INT64_MIN
#define F first
#define S second
#define PB ... | main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
1 | #include<bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s673926886 | p03795 | C++ | #include <iostream>
#include <algorithm>
#include <cmath>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
cout << n * x + n / 15;
} | a.cc: In function 'int main()':
a.cc:9:21: error: 'x' was not declared in this scope
9 | cout << n * x + n / 15;
| ^
|
s195494230 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<n;++i)
#define exrep(i, a, b) for(ll i = a; i < b; i++)
#define out(x) cout << x << endl
#define EPS (... | a.cc:53:2: error: stray '#' in program
53 | }#include <bits/stdc++.h>
| ^
a.cc:105:2: error: stray '#' in program
105 | }#include <bits/stdc++.h>
| ^
a.cc:53:3: error: 'include' does not name a type
53 | }#include <bits/stdc++.h>
| ^~~~~~~
a.cc:83:4: error: redefinition of 'll MOD'
83 |... |
s559125180 | p03795 | C++ | include<iostream>
using namespace std;
int main()
{
int n;cin>>n;
cout<<800*n - (n/15)*200<<endl;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
6 | int n;cin>>n;
| ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
7 | cout<<800*n - (n/15)*200<<endl;
... |
s520089746 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin << n;
int ans;
ans = 800*n - n/15*200;
cout << ans;
} | a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
6 | cin << n;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:6:7: note: candidate: 'operat... |
s554803833 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, from, to) for (int i = from; i < (to); ++i)
#define mp(x,y) make_pair(x,y)
#define all(x) (x).begin(),(x).end()
#define pb push_back
using ll = long long;
using vin=vector<int>;
using vll=vector<ll>;
using vst=vector<string>;
using P = ... | a.cc: In function 'int main()':
a.cc:28:21: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
28 | cout<<x-y<endl;
| ~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/regex:68,
from /usr/inclu... |
s434196923 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int x;
cin >> x;
cout << x*800-x/15*200
} | a.cc: In function 'int main()':
a.cc:6:25: error: expected ';' before '}' token
6 | cout << x*800-x/15*200
| ^
| ;
7 | }
| ~
|
s888264506 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int x;
cin x;
cout << x*800-x/15*200
} | a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'x'
5 | cin x;
| ^~
| ;
a.cc:6:25: error: expected ';' before '}' token
6 | cout << x*800-x/15*200
| ^
| ;
7 | }
| ~
|
s685625621 | p03795 | C++ | # # Make IO faster
# import sys
# input = sys.stdin.readline
# # get single (or) multiple str
# X = input()
# # get single int
# N = int(input())
# # get multiple int (e.g., 2)
# X, Y = map(int, input().split())
# # get multiple int (e.g., 2) for N lines
# XY = [list(map(int, input().split())) for _ in range(N)]
# f... | a.cc:1:3: error: invalid preprocessing directive ##
1 | # # Make IO faster
| ^
a.cc:2:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
2 | # import sys
| ^~~~~~
a.cc:2:10: error: #import expects "FILENAME" or <FILENAME>
2 | # import sys
| ^~~
a.cc:3:3: error: i... |
s952266443 | p03795 | C | #include<stdio.h>
int main(void){
int N = 0;
int x = 0,y = 0;
scanf("%d",&N);
x = N * 800;
y = 200*"N / 15";
printf("%d",x-y);
return 0;
}
| main.c: In function 'main':
main.c:7:12: error: invalid operands to binary * (have 'int' and 'char *')
7 | y = 200*"N / 15";
| ^
| |
| char *
|
s732440865 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int n, bayar;
int main () {
cin >> n;
bayar=800*n-200*(n/15)
cout << bayar << endl;
} | a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'cout'
8 | bayar=800*n-200*(n/15)
| ^
| ;
9 | cout << bayar << endl;
| ~~~~
|
s293930133 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int x, y, n, bayar;
int main () {
cin >> n;
x=800;
y=200;
bayar=(x*n)-y
cout << bayar << endl;
} | a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'cout'
10 | bayar=(x*n)-y
| ^
| ;
11 | cout << bayar << endl;
| ~~~~
|
s527285763 | 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 x = 800 * n;
int y = (n - (n % 15)) / 15;
System.out.printlnn(x - y);
}
} | Main.java:11: error: cannot find symbol
System.out.printlnn(x - y);
^
symbol: method printlnn(int)
location: variable out of type PrintStream
1 error
|
s288317789 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A;
cin >> A;
B = A / 15;
cout << 800 * A - 200 * B << endl;
}
| a.cc: In function 'int main()':
a.cc:7:2: error: 'B' was not declared in this scope
7 | B = A / 15;
| ^
|
s728297983 | p03795 | C++ | #d
efine LOCAL
#include <bits/stdc++.h>
#define rep(i, n) for(int i=0; i<(n); ++i)
#define rrep(i, n) for(int i=(n-1); i>=0; --i)
#define rep2(i, s, n) for(int i=s; i<(n); ++i)
#define ALL(v) (v).begin(), (v).end()
#define memr(dp, val) memset(dp, val, sizeof(dp))
using namespace std;
typedef long long ll;
static const... | a.cc:1:2: error: invalid preprocessing directive #d
1 | #d
| ^
a.cc:2:1: error: 'efine' does not name a type
2 | efine LOCAL
| ^~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:62,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-li... |
s676943564 | p03795 | C++ | /**
* auther: moririn_cocoa
*/
// #pragma GCC target("avx") // CPU 処理並列化
// #pragma GCC optimize("O3") // CPU 処理並列化
// #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす
// #define BEGIN_STACK_EXTEND(size) void * stack_extend_memory_ = malloc(size);void * stack_extend_origin_memory_;char * stack_extend_dummy_me... | a.cc: In function 'int main(int, char**)':
a.cc:84:2: error: expected '}' at end of input
84 | }
| ^
a.cc:43:34: note: to match this '{'
43 | int main(int argc, char* argv[]) {
| ^
|
s115669913 | p03795 | C++ | /**
* auther: moririn_cocoa
*/
// #pragma GCC target("avx") // CPU 処理並列化
// #pragma GCC optimize("O3") // CPU 処理並列化
// #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす
// #define BEGIN_STACK_EXTEND(size) void * stack_extend_memory_ = malloc(size);void * stack_extend_origin_memory_;char * stack_extend_dummy_me... | a.cc: In function 'int main()':
a.cc:84:2: error: expected '}' at end of input
84 | }
| ^
a.cc:43:16: note: to match this '{'
43 | int main(void) {
| ^
|
s539034148 | p03795 | C++ | /**
* auther: moririn_cocoa
*/
// #pragma GCC target("avx") // CPU 処理並列化
// #pragma GCC optimize("O3") // CPU 処理並列化
// #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす
// #define BEGIN_STACK_EXTEND(size) void * stack_extend_memory_ = malloc(size);void * stack_extend_origin_memory_;char * stack_extend_dummy_me... | a.cc: In function 'int main(int, char**)':
a.cc:84:2: error: expected '}' at end of input
84 | }
| ^
a.cc:43:34: note: to match this '{'
43 | int main(int argc, char* argv[]) {
| ^
|
s794941288 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin>>N;
int sum =800*N-200(N/15);
cout<<sum<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:21: error: expression cannot be used as a function
7 | int sum =800*N-200(N/15);
| ~~~^~~~~~
|
s722520660 | p03795 | Java | import java.util.Scanner;
public class Main {
public static void main ( String[] args {
Scanner sc = new Scanner ( System.in );
int N = sc.nextInt();
x = 800 * N;
y = 200 * (N / 15);
System.out.println(x-y);
}
} | Main.java:4: error: ',', ')', or '[' expected
public static void main ( String[] args {
^
1 error
|
s956847205 | p03795 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int sc.nextInt(),x=0,y=0;
for(int i=1;i<n;i++){
x+=800;
if(i%15==0){
y+=200;
}
}
System.out.println(x-y);
}
}
| Main.java:7: error: ';' expected
int sc.nextInt(),x=0,y=0;
^
Main.java:7: error: ';' expected
int sc.nextInt(),x=0,y=0;
^
Main.java:7: error: ';' expected
int sc.nextInt(),x=0,y=0;
^
3 errors
|
s926431472 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, x, y;
cin >> N;
x = N*800
y = N/15*200
cout << x-y << endl;
}
| a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'y'
8 | x = N*800
| ^
| ;
9 | y = N/15*200
| ~
|
s659771303 | p03795 | C | #include<stdio.h>
int main(void)
{
int N;
int x=800*N;
int y=N/15;
int z=0;
printf("何食分食べましたか?");
scanf("%d",&N);
if(N<1&&N>100){
printf("1~100で入力しください。");
}
else(y<1){
printf("z=x¥n",z);
}
else(y>=1&&2<y){
printf("z=x-200",z);
}
else(y>=2&&3<y){
printf("z=x-400",z);
}
e... | main.c: In function 'main':
main.c:14:12: error: expected ';' before '{' token
14 | else(y<1){
| ^
| ;
|
s914307625 | p03795 | C | #include<stdio.h>
int main(){
int N, x, y;
scanf("%d",&N);
x = 800*N;
y = N/15*200;
printf("%d",&(x-y));
return 0;
} | main.c: In function 'main':
main.c:11:17: error: lvalue required as unary '&' operand
11 | printf("%d",&(x-y));
| ^
|
s262417044 | p03795 | C | #include<stdio.h>
int main(){
int N, x, y, A;
scanf("%d",N);
A = 800*N-N/15*200;
printf("%d",A);
return0;
} | main.c: In function 'main':
main.c:11:5: error: 'return0' undeclared (first use in this function)
11 | return0;
| ^~~~~~~
main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
|
s059299274 | p03795 | C | include<stdio.h>
int main(){
int N, x, y, A;
scanf("%d",N);
A = 800*N-N/15*200;
printf("%d",A);
return0;
} | main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s103271309 | p03795 | Java |
package javaapplication127;
import java.util.*;
public class JavaApplication127 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int cost = n*800;
int ref = (n/15)*200;
int y = cost-ref;
System.out.p... | Main.java:5: error: class JavaApplication127 is public, should be declared in a file named JavaApplication127.java
public class JavaApplication127 {
^
1 error
|
s812178039 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
int a=N/15;
cout << N*800-a*200 <, endl;
}
| a.cc: In function 'int main()':
a.cc:10:24: error: expected primary-expression before ',' token
10 | cout << N*800-a*200 <, endl;
| ^
|
s977932610 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i, n) for(int i = 0; i < n; i++)
#define sort(v) sort((v).begin(), (v).end())
using vi = vector<int>;
const int MOD = 1e9+7;
bool IsPrime(int num){
if (num < 2) return false;
else if (num == 2) return true;
else if (num %... | a.cc: In function 'int main()':
a.cc:21:12: error: expected ';' before 'N'
21 | cin N;
| ^~
| ;
|
s833028275 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i, n) for(int i = 0; i < n; i++)
#define sort(v) sort((v).begin(), (v).end())
using vi = vector<int>;
const int MOD = 1e9+7;
bool IsPrime(int num){
if (num < 2) return false;
else if (num == 2) return true;
else if (num % ... | a.cc: In function 'int main()':
a.cc:21:12: error: expected ';' before 'N'
21 | cin N;
| ^~
| ;
a.cc:24:23: error: expected ';' before 'cout'
24 | y = 200*(N/15)
| ^
| ;
25 | cout << x-y << endl;
... |
s716198259 | p03795 | Java | import java.util.*;
public class Main {
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:7: error: ')' or ',' expected
System.out.println(800 * n - 200 * (n / 15);
^
1 error
|
s719965720 | p03795 | C++ | #include <cstdio>
#include <cstring>
#include <cmath>
#include <utility>
#include <iostream>
#include <functional>
#include <bitset>
#include <algorithm>
#include <vector>
#include <forward_list>
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <stack>
#include <numeric>
#define ll long long int... | a.cc: In function 'int main()':
a.cc:31:5: error: 'cour' was not declared in this scope
31 | cour << x - y << endl;
| ^~~~
|
s990176656 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
long long int a,b,c,x,y;
long long int result
cin>>a>>b>>c>>x>>y;
cout<<x-y>>endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'cin'
8 | cin>>a>>b>>c>>x>>y;
| ^~~
a.cc:11:14: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and '<unresolved overloaded function type>')
1... |
s676211533 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin>>N;
int y=200*(N/15);
int x=N*800;
cout<<x-y>>endl;
} | a.cc: In function 'int main()':
a.cc:10:14: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
10 | cout<<x-y>>endl;
| ~~~~~~~~~^~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
f... |
s311235401 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
cin>>N;
int y=200*(N/15);
int x=N*800;
cout<<x-y>>endl;
} | a.cc: In function 'int main()':
a.cc:6:10: error: 'N' was not declared in this scope
6 | cin>>N;
| ^
a.cc:9:14: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout<<x-y>>endl;
| ~~~~~~~~~^~~~~~
In f... |
s715715061 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
cin>>N;
int y=200*(N/15);
int x=N*800;
cout<<x-y>>endl;
} | a.cc: In function 'int main()':
a.cc:6:10: error: 'N' was not declared in this scope
6 | cin>>N;
| ^
a.cc:9:14: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout<<x-y>>endl;
| ~~~~~~~~~^~~~~~
In f... |
s156020511 | p03795 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(){
cin>>N;
int y=200*(N/15);
int x=N*800;
cout<<x-y>>endl;
} | a.cc: In function 'int main()':
a.cc:5:10: error: 'N' was not declared in this scope
5 | cin>>N;
| ^
a.cc:8:14: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
8 | cout<<x-y>>endl;
| ~~~~~~~~~^~~~~~
In f... |
s828038846 | p03795 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(){
cin>>N;
int y=200*(N/15);
int x=N*800;
cout<<x-y>>endl;
} | a.cc: In function 'int main()':
a.cc:6:10: error: 'N' was not declared in this scope
6 | cin>>N;
| ^
a.cc:9:14: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout<<x-y>>endl;
| ~~~~~~~~~^~~~~~
In f... |
s974731124 | p03795 | Java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
System.out.println(N*800-N/15*200);
}
} | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s568593879 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >>N;
int x,y;
x = 800*N;
y = (N/15)*200
cout << x-y << endl;
}
| a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before 'cout'
9 | y = (N/15)*200
| ^
| ;
10 | cout << x-y << endl;
| ~~~~
|
s850945609 | p03795 | C++ | #include <bits/stdc++.h>
int main() {
int N;
cin >> N;
int a = N / 15;
cout << 800 * N - 200 * a << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> N;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std:... |
s728003980 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std
int main()
{
int n;
cin >> n;
cout << n*800 - (n/15)*200;
return 0;
}
| a.cc:3:20: error: expected ';' before 'int'
3 | using namespace std
| ^
| ;
4 |
5 | int main()
| ~~~
|
s548595810 | p03795 | C | #include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
cout<<n*800-(n/15)*200<<endl;
}
#include<stdio.h>
int main(void){
int n;
scanf("%d",&n);
int ans=n*800-(n/15)*200;
printf("%d",ans);
return 0;
} | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s896241398 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int n,
cin >> n;
cout << 800 * n - ( n / 15 ) * 200 << endl;
} | a.cc: In function 'int main()':
a.cc:7:7: error: expected initializer before '>>' token
7 | cin >> n;
| ^~
|
s852847724 | p03795 | Java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner stdIn.new Scanner(System.in);
int n=stdIn.nextInt();
int y=(n/15)*200;
int x=n*800;
System.out.println(x-y);
}
}
| Main.java:4: error: ';' expected
Scanner stdIn.new Scanner(System.in);
^
1 error
|
s442433038 | p03795 | C++ | #include<iostream>
using namespace std;
int main()
{
int n, int s;
cin >> n;
s = n * 800 - n * 200 / 15;
cout << s;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:10: error: expected unqualified-id before 'int'
5 | int n, int s;
| ^~~
a.cc:7:3: error: 's' was not declared in this scope
7 | s = n * 800 - n * 200 / 15;
| ^
|
s007519317 | p03795 | C++ | import sys
sys.setrecursionlimit(10**6)
from math import floor,ceil,sqrt,factorial,log
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect... | a.cc:12:13: warning: multi-character character constant [-Wmultichar]
12 | inf = float('inf')
| ^~~~~
a.cc:13:15: warning: multi-character character constant [-Wmultichar]
13 | ninf = -float('inf')
| ^~~~~
a.cc:15:2: error: invalid preprocessing directive #\U00006574\U0000657... |
s369111365 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
int ans = n*800 - (n/15)*200;
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:7:13: error: expected initializer before '\U0000ff1d'
7 | int ans = n*800 - (n/15)*200;
| ^~
a.cc:8:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
8 | cout << ans << endl;
| ^~~
| abs
|
s762377175 | p03795 | C++ | #include<iostream>
#include<math>
using namespace std;
int main()
{
int a;
cin >> a ;
cout << ((800*a)-((a*200)/15)) << endl ;
return 0;
} | a.cc:2:9: fatal error: math: No such file or directory
2 | #include<math>
| ^~~~~~
compilation terminated.
|
s731398590 | p03795 | C++ | #include<bits\stdc++.h>
#include<iostream>
using namespace std;
#define f(i,a,b) for(int i=(int)(a);i<=(int)(b);i++)
#define char_f(i,a) for(int i=(int)(a);(char)s[i]!='\0';i++)
#define rf(i,a,b) for(int i=(int)(b);i>=(int)(a);i--)
#define llf(i,a,b) for(long long int i=(long long int)(a);i<=(long long int)(b);i++)
#... | a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s516229840 | p03795 | C++ | //#include<bits\stdc++.h>
#include<iostream>
using namespace std;
#define f(i,a,b) for(int i=(int)(a);i<=(int)(b);i++)
#define char_f(i,a) for(int i=(int)(a);(char)s[i]!='\0';i++)
#define rf(i,a,b) for(int i=(int)(b);i>=(int)(a);i--)
#define llf(i,a,b) for(long long int i=(long long int)(a);i<=(long long int)(b);i++)... | a.cc:72:11: error: 'acos' was not declared in this scope
72 | double PI=acos(-1);
| ^~~~
|
s018986145 | p03795 | C++ | #include<bits\stdc++.h>
using namespace std;
#define f(i,a,b) for(int i=(int)(a);i<=(int)(b);i++)
#define char_f(i,a) for(int i=(int)(a);(char)s[i]!='\0';i++)
#define rf(i,a,b) for(int i=(int)(b);i>=(int)(a);i--)
#define llf(i,a,b) for(long long int i=(long long int)(a);i<=(long long int)(b);i++)
#define llrf(i,a,b) ... | a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s690827003 | p03795 | C++ | n = int(input())
print(800*n - 200*(n//15)) | a.cc:1:1: error: 'n' does not name a type
1 | n = int(input())
| ^
|
s105993956 | p03795 | Java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int y = 200 * (N / 15);
int x = 800 * N ;
int receivedPrice = x - y;
System.out.println(receivedPrice);
}
}
| Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s074038329 | p03795 | Java | public class Restaurant {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int y = 200 * (N / 15);
int x = 800 * N ;
int receivedPrice = x - y;
System.out.println(receivedPrice);
}
}
| Main.java:1: error: class Restaurant is public, should be declared in a file named Restaurant.java
public class Restaurant {
^
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Restaurant
Main.java:3: error: cannot find symbol
Scanner ... |
s099079045 | p03795 | C++ | #include <bits/stdc++.h>
#define FOR(i, a, n) for(int (i) = (int)(a); (i) < (int)(n); ++(i))
#define FORe(i, a, n) for(int (i) = (int)(a); (i) <= (int)(n); ++(i))
#define rFOR(i, a, n) for(int (i) = (int)(n)-1; (i) >= (int)(a); --(i))
#define REP(i, n) FOR((i), 0, (n))
#define REPe(i, n) FORe((i), 0, (n))
#define rREP(... | a.cc: In function 'int main()':
a.cc:17:9: error: expected initializer before '+=' token
17 | int y += n/15*200;
| ^~
a.cc:18:13: error: 'y' was not declared in this scope
18 | cout << x-y << endl;
| ^
|
s198222456 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int N;
cin >> N;
int x=N*800
cin >> x;
int y=N/15*20
cin >> y;
cout << x-y << endl;
| a.cc:5:3: error: 'cin' does not name a type
5 | cin >> N;
| ^~~
a.cc:7:3: error: expected ',' or ';' before 'cin'
7 | cin >> x;
| ^~~
a.cc:9:3: error: expected ',' or ';' before 'cin'
9 | cin >> y;
| ^~~
a.cc:11:3: error: 'cout' does not name a type
11 | cout << x-y << end... |
s183356217 | p03795 | Java | public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = Integer.parseInt(in.nextLine());
int mealPrice = 800;
int discount = 200;
int discountPoint = 15;
int x = n * mealPrice;
int y = (n / discountPoint) * discount;
System.out.println(x - y);
}
| Main.java:12: error: reached end of file while parsing
}
^
1 error
|
s526414138 | p03795 | Java | public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = Integer.parseInt(in.nextLine());
int mealPrice = 800;
int discount = 200;
int discountPoint = 15;
int x = n * mealPrice;
int y = (n / discountPoint) * discount;
System.out.println(x - y);
} | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
|
s168552482 | p03795 | C++ | #include<iostream>
#include<stdio.h>
#include<vector>
#include<algorithm>
#include<set>
#include<string>
#include<map>
#include<string.h>
#include<complex>
#include<math.h>
#include<queue>
#include <functional>
#include<time.h>
#include <stack>
#include<iomanip>
using namespace std;
#define rep(i,a,n) for(int i=(a);i<(... | a.cc: In function 'int main()':
a.cc:212:2: error: 'nt' was not declared in this scope; did you mean 'ni'?
212 | nt a;
| ^~
| ni
a.cc:213:8: error: 'a' was not declared in this scope
213 | cin>>a;
| ^
|
s099410884 | p03795 | C++ | #include <iostream>
using namespace std;
int main(void){
int a;
cin >> a;
int b==a/15
cout << "800*a-200*b" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:11:10: error: expected initializer before '==' token
11 | int b==a/15
| ^~
|
s690359790 | p03795 | C++ | #include<iostream>
using namespace std;
int main ()
{
int x,z,a,b;
cin>>x;
z=x*800;
if (x>15){
a=x/15;
b=z-(a*200);
cout<<b;
else
cout<<z;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:3: error: expected '}' before 'else'
13 | else
| ^~~~
a.cc:9:12: note: to match this '{'
9 | if (x>15){
| ^
|
s323626164 | p03795 | Java | import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
System.out.println(800 * n - (n/15 *200));
... | Main.java:10: error: cannot find symbol
n = sc.nextInt();
^
symbol: variable n
location: class Main
Main.java:12: error: cannot find symbol
System.out.println(800 * n - (n/15 *200));
^
symbol: variable n
location: class Main
Main.java:12: error: canno... |
s331073070 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string A;
cin >> A;
cout << A*800-A%15*200 << endl;
}
}
f | a.cc: In function 'int main()':
a.cc:9:18: error: no match for 'operator*' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
9 | cout << A*800-A%15*200 << endl;
| ~^~~~
| | |
| | int
| ... |
s710272224 | p03795 | C++ | #include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<string>
using namespace std;
inline int read(){
int s=0,w=1,ch=getchar();
while(ch<'0'||ch>'9')if(ch=='-')w=-1,ch=getchar();
while(ch>='0'&&ch<='9')s=s*10+ch-'0',ch=getchar();
return s*w;
}
inline void ... | a.cc: In function 'int main()':
a.cc:41:9: error: expected ',' or ';' before 'write'
41 | write(reads*800-reads/15*200);
| ^~~~~
|
s976614519 | p03795 | Java | #include <string>
#include <vector>
#include <stdlib.h>
#include <iostream>
int main(int argc, char** argv) {
int n;
std::cin >> n;
int spent = n * 800;
int tmpn = n;
int discountFactor = 0;
while (tmpn > 15){
tmpn /= 15;
discountFactor++;
}
std::cout << spent - 200*disc... | Main.java:1: error: illegal character: '#'
#include <string>
^
Main.java:2: error: illegal character: '#'
#include <vector>
^
Main.java:3: error: illegal character: '#'
#include <stdlib.h>
^
Main.java:4: error: illegal character: '#'
#include <iostream>
^
Main.java:8: error: class, interface, enum, or record expected
... |
s889641856 | p03795 | Java | #include <stdio.h>
#include <string>
#include <vector>
#include <stdlib.h>
#include <iostream>
int main(int argc, char** argv) {
int n;
std::cin >> n;
int spent = n * 800;
int tmpn = n;
int discountFactor = 0;
while (tmpn > 15){
tmpn /= 15;
discountFactor++;
}
std::cout ... | Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
^
Main.java:2: error: illegal character: '#'
#include <string>
^
Main.java:3: error: illegal character: '#'
#include <vector>
^
Main.java:4: error: illegal character... |
s383867373 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
n*=800;
if(n>=15)n-=200;
cout<<n;
retrun 0;
} | a.cc: In function 'int main()':
a.cc:9:4: error: 'retrun' was not declared in this scope
9 | retrun 0;
| ^~~~~~
|
s242667106 | p03795 | C++ | #include<bits/stdc++.h>
sing namespace std;
int n,x,y;
int main()
{
cin>>n;
x=n*800;
y=(n/15)*200;
cout<<x-y<<endl;
return 0;
} | a.cc:2:1: error: 'sing' does not name a type
2 | sing namespace std;
| ^~~~
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 /usr/include/x86_64-linux-gnu/c++/14/bits/s... |
s881391760 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a;
cin << a;
int b = a/15;
cout << a*800-200*b << endl;
} | a.cc: In function 'int main()':
a.cc:5:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
5 | cin << a;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:5:7: note: candidate: 'operat... |
s837685780 | p03795 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_bas::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int n;
cin >> n;
cout << n * 800 - int(n/15) * 200 << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'ios_bas' has not been declared
6 | ios_bas::sync_with_stdio(0); cin.tie(0); cout.tie(0);
| ^~~~~~~
|
s035816021 | p03795 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC055A
{
class Program
{
static void Main(string[] args)
{
int a,x,y;
x = 0;
a = int.Parse(Console.ReadLine());
x = 800 * a;
y = a / 15 * 200;
Console.WriteLine(x - y);... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections.Generic;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.L... |
s051397470 | p03795 | C++ | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <cfloat>
#include <complex>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include... | a.cc:32:5: error: expected primary-expression before 'if'
32 | if(n < 15){
| ^~
a.cc:32:5: error: expected '}' before 'if'
a.cc:30:6: note: to match this '{'
30 | int y{
| ^
a.cc:34:6: error: expected unqualified-id before 'else'
34 | }else if(15 <= n <30){
| ^~~~
a.cc:3... |
s611073793 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
/**** Type Define ****/
typedef long long ll;
int main(){
int N;
cin>>N;
cout<<N*800-(N/15)*200>>endl;
} | a.cc: In function 'int main()':
a.cc:9:24: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout<<N*800-(N/15)*200>>endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,... |
s790152792 | p03795 | C++ | #include <iostream>
#include <string>
int main() {
int a,b,c;
std::cin>>a;
cout << (a*800)-(a/15)*200;
} | a.cc: In function 'int main()':
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout << (a*800)-(a/15)*200;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ... |
s706381048 | p03795 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int t,n,d=0,n1,i=0;
cin>>n;
d=n/15;
sum=(n*800)-(d*200);
cout<<sum;
} | a.cc: In function 'int main()':
a.cc:11:5: error: 'sum' was not declared in this scope
11 | sum=(n*800)-(d*200);
| ^~~
|
s258750722 | p03795 | C | #include <stdio.h>
#include <stdlib.h>
int main()
{
int n,x,y,k;
scanf("%d",&n);
x=n/800;
y=x/15;
k=800*n-y*200;
printf("%d',k);
return 0;
}
| main.c: In function 'main':
main.c:10:8: warning: missing terminating " character
10 | printf("%d',k);
| ^
main.c:10:8: error: missing terminating " character
10 | printf("%d',k);
| ^~~~~~~~
main.c:11:1: error: expected expression before 'return'
11 | return 0;
| ^~~~~~
main.c:1... |
s689268782 | p03795 | C++ | include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << (n * 800-(n/15)*200) << endl;
} | a.cc:1:1: error: 'include' does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin >> n;
| ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
7 | cout << (n * 800-(n/15)*200) << e... |
s203207555 | p03795 | C++ | #include<iostream>
using namespace std;
int main(){
int n,cin>>n;
cout<<n*800-(n/15)*200<<endl;
} | a.cc: In function 'int main()':
a.cc:4:18: error: expected initializer before '>>' token
4 | int n,cin>>n;
| ^~
|
s131353457 | p03795 | C++ | #include<bits/stdc++.h>
using namesace std;
int main(){
int n;cin>>n;cout<<(n*800-n/15*200)<<endl;
} | a.cc:2:7: error: expected nested-name-specifier before 'namesace'
2 | using namesace std;
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | int n;cin>>n;cout<<(n*800-n/15*200)<<endl;
| ^~~
| st... |
s173324568 | p03795 | C | #include<stdio.h>
int main (void) {
int eatCount;
int count = 15;
int yen = 800;
int reyen = 200;
do {
printf(eatCount:); scanf("%d", &eatCount);
} while (eatCount < 1 && eatCount > 100);
printf("%d", (eatCount * yen) - (eatCount / count * reyen) );
return 0;
} | main.c: In function 'main':
main.c:10:18: error: expected ')' before ':' token
10 | printf(eatCount:); scanf("%d", &eatCount);
| ~ ^
| )
main.c:10:10: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
10 | printf(eatC... |
s504105049 | p03795 | C | #inclede<stdio.h>
int main (void) {
int eatCount;
int count = 15;
int yen = 800;
int reyen = 200;
do {
printf(eatCount:); scanf("%d", &eatCount);
} while (eatCount < 1 && eatCount > 100);
printf("%d", (eatCount * yen) - (eatCount / count * reyen) );
return 0;
} | main.c:1:2: error: invalid preprocessing directive #inclede; did you mean #include?
1 | #inclede<stdio.h>
| ^~~~~~~
| include
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
10 | printf(eatCount:); scanf("%d", &eatCount);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.