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 '<ios...
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++){ | ...
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 lo...
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: ...
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...
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 ...
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;} | ...
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/...
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)' (b...
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); |...
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; | ~~~~ ^ ~~~~~~~~~~~~~ | | ...
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...
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.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" ) << ...
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...
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: ...
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) ...
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 s...
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 s...
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...
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){ ...
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); ...
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){ ...
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)...
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){ ...
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)...
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 wit...
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) ...
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 befor...
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 in...
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();...
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; | ^~~~...
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();...
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; | ^~~~...
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 << 80...
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 << 80...
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); | ^ ...
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 ...
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 fr...
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) | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~ | | ...
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:6...
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++/...
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...
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...
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((in...
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)...
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