submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s104565903
p00496
C++
#include <cstdio> #include <algorithm> using namespace std; long long dp[3001][3001]={}; long long x[3001][2]; long long n,t,s; int main(){ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;scanf("%lld %lld %lld",&n,&t,&s); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for(int i=1;i<=n;i++){ &#160;&#160;&#160;&#160;&#1...
a.cc:8:2: error: stray '#' in program 8 | &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;scanf("%lld %lld %lld",&n,&t,&s); | ^ a.cc:8:8: error: stray '#' in program 8 | &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;scanf("%lld %lld %lld",&n,&t,&s); | ^ a.cc:8:14: error: stray '#' in progr...
s125189940
p00496
C++
#include <string> #include <vector> #include<iostream> #include<algorithm> #include<cstdio> #include<cstdlib> #include<sstream> #include<functional> #include<map> #include<set> #include<cmath> using namespace std; int main(){ int N,T,S; cin >> N; cin >> T; cin >> S; int AB[N+1][2]; ...
a.cc: In function 'int main()': a.cc:53:59: error: invalid types 'int[int]' for array subscript 53 | else dp[i+1][j]=max(dp[i][j],dp[i][j-AB[i][1]]+AB[i[0]); | ^ a.cc:53:62: error: expected ']' before ')' token 53 | else dp[i+1][j]=max(...
s009876174
p00496
C++
#include <cstdio> #include <vector> #include <algorithm> using namespace std; static int dp[3010][3010]; const int inf = (int)1e9; int solve(int n, int t, int s, vector<int> &a, vector<int> &b) { if(t < 0) return -inf; if(n < 0) return 0; if(dp[n][t] != -1) return dp[n][t]; int ans = 0; int temp; temp = solve(n - 1,...
a.cc: In function 'int solve(int, int, int, std::vector<int>&, std::vector<int>&)': a.cc:22:29: error: 'i' was not declared in this scope 22 | bool cross = s < t && t - b[i] < s; | ^
s137168567
p00497
Java
import java.io.InputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.InputMismatchException; import java.util.NoSuchElementException; import java.math.BigInteger; public class Main{ static PrintWriter out...
Main.java:26: error: '[' expected seg[j].add(new int{b,b+j-a}); ^ 1 error
s162862421
p00497
C++
å#include <cstdio> #define S 5010 using namespace std; int l[S][S]={0}; int main(){ int N,M,a,b,x,i,j; scanf("%d %d",&N,&M); for(i=0;i<M;i++){ scanf("%d %d %d",&a,&b,&x); l[a][b]++; l[a][b+1]--; l[a+x+1][b]--; l[a+x+2][b+1]++; l[a+x+2][b+x+2]--; l[a+x...
a.cc:1:2: error: stray '#' in program 1 | å#include <cstdio> | ^ a.cc:1:1: error: '\U000000e5' does not name a type 1 | å#include <cstdio> | ^ a.cc: In function 'int main()': a.cc:8:5: error: 'scanf' was not declared in this scope 8 | scanf("%d %d",&N,&M); | ^~~~~ a.cc:41:5: error...
s288192371
p00497
C++
å#include <cstdio> #define S 5010 using namespace std; int l[S][S]={0}; int main(){ int N,M,a,b,x,i,j; scanf("%d %d",&N,&M); for(i=0;i<M;i++){ scanf("%d %d %d",&a,&b,&x); l[a][b]++; l[a][b+1]--; l[a+x+1][b]--; l[a+x+2][b+1]++; l[a+x+2][b+x+2]--; l[a+x...
a.cc:1:2: error: stray '#' in program 1 | å#include <cstdio> | ^ a.cc:1:1: error: '\U000000e5' does not name a type 1 | å#include <cstdio> | ^ a.cc: In function 'int main()': a.cc:8:5: error: 'scanf' was not declared in this scope 8 | scanf("%d %d",&N,&M); | ^~~~~ a.cc:41:5: error...
s663031957
p00497
C++
#include<iostream> #include<cstdio> using namespace std; int n,m,ans=0; vector<int> tri[5007]; int main(void){ scanf("%d%d",&n,&m); for(int i=0;i<=n+3;i++){ for(int j=0;j<i;j++)tri[i].push_back(0); } for(int i=0;i<m;i++){ int x,y,size; scanf("%d%d%d",&y,&x,&size); size++; tri[x][y]+=1; tri[x+1][y]-=...
a.cc:7:1: error: 'vector' does not name a type 7 | vector<int> tri[5007]; | ^~~~~~ a.cc: In function 'int main()': a.cc:13:37: error: 'tri' was not declared in this scope 13 | for(int j=0;j<i;j++)tri[i].push_back(0); | ^~~ a.cc:19:17: error: 'tri' w...
s935079846
p00497
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef tuple<int, int> duo; const int dx[] = {0, 0, 1, -1, 1, 1, -1, -1}; const int dy[] = {1, -1, 0, 0, 1, -1, 1, -1}; const int Mod = 1000000000 + 0; //{{{ templates #define TT_ template<typename T>inline #define TTF_ templ...
a.cc: In function 'int main()': a.cc:46:24: error: no matching function for call to 'max(short int&, int)' 46 | nails[i][j] = max(nails[i][j], max(nails[i - 1][j], nails[i - 1][j - 1]) - 1); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/i...
s331588979
p00497
C++
#include<iostream> #include<map> #define REP(i,x) for (int i = 0; i < (x); i++) #define TRI(i,j) (nails[(((i)*((i)-1)/2)+(j))]); using namespace std; typedef pair<int,int> P; const int NMAX = 5008; const int NAILMAX = NMAX * NMAX / 2; int nails[NAILMAX]; int N, M; void put(int a, int b, int x) { TRI(a,b) ++; TR...
a.cc: In function 'void put(int, int, int)': a.cc:16:14: error: expected primary-expression before ';' token 16 | TRI(a,b) ++; | ^ a.cc:17:16: error: expected primary-expression before ';' token 17 | TRI(a,b+1) --; | ^ a.cc:18:18: error: expected primary-expression befo...
s543643148
p00497
C++
#include <iostream> #include <cstdio> #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,a) FOR(i,0,a) using namespace std; short maps[5001][5001]; int main() { int N,M,x,y,size; cin >> N >> M; REP(i,M){ scanf("%d%d%d",&x,&y,&size); maps[x][y]=max(size+1,maps[x][y]); } int sum=0; REP(i,N+1) REP(j,i+1...
a.cc: In function 'int main()': a.cc:12:31: error: no matching function for call to 'max(int, short int&)' 12 | maps[x][y]=max(size+1,maps[x][y]); | ~~~^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/b...
s288845684
p00497
C++
#include <iostream> #include <cstdio> #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,a) FOR(i,0,a) using namespace std; short maps[5001][5001]; int main() { short N,M,x,y,size; cin >> N >> M; REP(i,M){ scanf("%d%d%d",&x,&y,&size); maps[x][y]=max(size+1,maps[x][y]); } short sum=0; REP(i,N+1) REP(j...
a.cc: In function 'int main()': a.cc:12:31: error: no matching function for call to 'max(int, short int&)' 12 | maps[x][y]=max(size+1,maps[x][y]); | ~~~^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/b...
s396284022
p00497
C++
#include <cstdio> #include <cstring> #include <cmath> #include <iostream> #include <algorithm> #include <stack> #include <queue> #include <vector> #include <set> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) #define mp(a,b) make_pair(a,b) #define pb(a) push_back(a) #define dbg(x) cout<<#x"="<<x<<endl t...
a.cc: In function 'int main()': a.cc:62:32: error: expected primary-expression before '?' token 62 | current += nails[i+j][i];??? | ^ a.cc:62:33: error: expected primary-expression before '?' token 62 | current += nails[i+j][i];??? | ...
s516226377
p00497
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n; int m; cin >> n >> m; int y,x,offset; short data[5002][5002] = {0}; while(m--){ scanf("%d %d %d",&y,&x,&offset); data[y][x] = offset + 1; } int sum = 0; for(int i = 1;i <= n;i++){ for(int j = 1;j <= i;j++){ data[i][j] =...
a.cc: In function 'int main()': a.cc:16:23: error: no matching function for call to 'max(<brace-enclosed initializer list>)' 16 | data[i][j] = max({data[i][j],data[i - 1][j - 1] - 1,data[i - 1][j] - 1}); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included fro...
s837614711
p00497
C++
#include <vector> #include <algorithm> #include <set> #include <map> #include <queue> #include <stack> #include <iostream> #include <cstdio> #include <cmath> #include <cstring> using namespace std; typedef long long ll; typedef pair<ll,ll> P; typedef double db; #define fr first #define sc second #define pb push_back #...
a.cc: In function 'int main()': a.cc:31:14: error: 'W' was not declared in this scope 31 | ll H=W=N; | ^
s519871603
p00497
C++
#include <iostream> #include <algorithm> using namespace std; short dp[5000][5000]; int main(){ int N,M; cin >> N >> M; for(int i = 0 ; i < M ; i++){ int x,y,c; cin >> y >> x >> c; dp[y-1][x-1] = c+1; } for(int i = 0 ; i < N ; i++){ for(int j = 0 ; j < N ; j++){ dp[i+1][j] = max(dp[i+1][j],dp[i][j]-1...
a.cc: In function 'int main()': a.cc:16:41: error: no matching function for call to 'max(short int&, int)' 16 | dp[i+1][j] = max(dp[i+1][j],dp[i][j]-1); | ~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, ...
s593869034
p00497
C++
#include <cstdio> #include <iostream> #include <vector> #include <list> #include <cmath> #include <fstream> #include <algorithm> #include <string> #include <queue> #include <set> #include <map> #include <complex> #include <iterator> #include <cstdlib> #include <cstring> #include <sstream> using namespace std; const d...
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s771232448
p00497
C++
#include <cstdio> #include <iostream> #include <vector> #include <list> #include <cmath> #include <fstream> #include <algorithm> #include <string> #include <queue> #include <set> #include <map> #include <complex> #include <iterator> #include <cstdlib> #include <cstring> #include <sstream> using namespace std; const d...
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s581322935
p00497
C++
#include<cstdio> #include<vector> #include<algorithm> using namespace std; int n,m; const int Max = 5008; short data[Max][Max]; void debug(){ #if 0 for(int j=1;j<=n + 1;j++){ for(int i=1;i<=n + 1;i++){ printf("%+d ",data[i][j]); } puts(""); } puts(""); #endif } int main(){ exit(1); scanf("%d %d",&n...
a.cc: In function 'int main()': a.cc:32:17: error: reference to 'data' is ambiguous 32 | data[a][b] += 1; | ^~~~ In file included from /usr/include/c++/14/vector:69, from a.cc:2: /usr/include/c++/14/bits/range_access.h:344:5: note: candidates are: 'template<clas...
s046114561
p00497
C++
#include<stdio.h> int main(){ int bool[5000][5000]={}; int n,m,a,b,c,x,y,z,t=0; scanf("%d %d",&n,&m); for(a=0;a<m;a++){ scanf("%d %d %d",&x,&y,&z); for(b=0;b<z+1;b++){ for(c=0;c<z+1;c++){ if(b>=c){nail[x+b-1][y+c-1]=1;} } } } for(a=0;a<n;a++){ for(b=0;b<n;b++){ if(nail[a][b]==1){t++;} } } ...
a.cc: In function 'int main()': a.cc:3:18: error: expected identifier before numeric constant 3 | int bool[5000][5000]={}; | ^~~~ a.cc:3:18: error: expected ']' before numeric constant 3 | int bool[5000][5000]={}; | ^~~~ | ] a....
s464364386
p00497
C++
#include <cstdio> int main() { int n, m; static int nail[5000][5000] = {0}; scanf("%d%d", &n, &m); for(int i = 0; i < m; ++i) { int a, b, x; scanf("%d%d%d", &a, &b, &x); a -= 1, b -= 1; nail[a][b] = x; } int ans = 0; for(int a = 0; a < n; ++a) { for(int b = 0; b < n; ++b) { int l = a > 0 && b > 0 ? nail[a - 1][b - 1] ...
a.cc: In function 'int main()': a.cc:19:30: error: 'max' was not declared in this scope 19 | nail[a][b] = max(nail[a][b], max(l - 1, r - 1)); | ^~~ a.cc:19:14: error: 'max' was not declared in this scope 19 | nail[a][b] = max(nail[a][b], max(l - 1, r - 1)); | ...
s076234879
p00497
C++
#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <string> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <functional> #include <iostream> using namespace std; typedef pair<int,int> p; typedef pair<int,p> P; typedef pair<p,p> p2; #define pu push #define...
a.cc: In function 'int main()': a.cc:31:50: error: no matching function for call to 'max(short int&, int)' 31 | field[i+1][j]=max(field[i+1][j],field[i][j]-1); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++...
s352256822
p00497
C++
#include<iostream> #include<algorithm> #include<cstdlib> using namespace std; int main(void){ int n,m,a,b,x; static int nails[5001][5001]; memset(nails,0,sizeof(nails)); cin >> n >> m; for(int i=0;i<m;i++){ cin >> a >> b >> x; nails[a][b]=x+1; } for(int i=1;i<=n;i++){ for(int j=1;j<=i;j++...
a.cc: In function 'int main()': a.cc:12:3: error: 'memset' was not declared in this scope 12 | memset(nails,0,sizeof(nails)); | ^~~~~~ a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include<cstdlib> +++ |+#include <cstring> ...
s236834730
p00497
C++
#include<iostream> #include<algorithm> using namespace std; short nails[5001][5001]; int main(void){ int n,m,a,b,x; cin >> n >> m; for(int i=0;i<m;i++){ cin >> a >> b >> x; nails[a][b]=x+1; } for(int i=1;i<=n;i++){ for(int j=1;j<=i;j++){ nails[i][j]=(short)max((short)nails[i][j],(sho...
a.cc: In function 'int main()': a.cc:21:29: error: no matching function for call to 'max(short int, int)' 21 | nails[i][j]=(short)max((short)nails[i][j],(short)max((short)nails[i-1][j-1],(short)nails[i-1][j])-(short)1); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
s503527794
p00497
C++
#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <complex> #include <string> #include <sstream> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <functional> #include <iostream> #include <map> #include <set> using namespace std; typedef pair<int,int> P; ...
a.cc:32:21: error: expected ')' before ';' token 32 | void cal(int p,int q;) | ~ ^ | ) a.cc:32:22: error: expected unqualified-id before ')' token 32 | void cal(int p,int q;) | ^
s170670897
p00497
C++
#include <iostream> #include <algorithm> #include <map> #include <set> using namespace std; #define loop(i,a,b) for(int i=(a); i<int(b); i++) #define rep(i,b) loop(i,0,b) int dp[2][5010] = {}; int main(){ int n, m; cin >> n >> m; typedef pair<int, int> P; map<P, int> ps; rep(i, m){ int x, ...
a.cc: In function 'int main()': a.cc:30:9: error: 'memset' was not declared in this scope 30 | memset(cur, 0, sizeof(cur)); | ^~~~~~ a.cc:5:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 4 | #include <set> +++ |+#include <cstrin...
s050619194
p00498
C++
#include <cstdio> #include <cstdlib> #include <iostream> #include <string> #include <cmath> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <map> #include <set> typedef long long ll; using namespace std; struct TOWN{ vector<pair<int,int> > road; int df,ans; bool kaku; ...
a.cc: In constructor 'TOWN::TOWN()': a.cc:24:9: error: 'INT_MAX' was not declared in this scope 24 | :df(INT_MAX),kaku(false) | ^~~~~~~ a.cc:12:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 11 | #include <set> +++ |+#include <climi...
s195157496
p00498
C++
#include<iostream> #include<vector> #include<functional> #include<queue> using namespace std; long long N, M, K, Q, a, b, c, dist[151515], alldist[151515], Union[151515]; vector<pair<long long, long long>>vec[151515], X[151515], X_up[151515], X_down[151515]; vector<tuple<long long, long long, long long>>tup; vector<lon...
a.cc: In function 'int main()': a.cc:158:9: error: 'sort' was not declared in this scope; did you mean 'short'? 158 | sort(tup.begin(), tup.end(), greater<tuple<long long, long long, long long>>()); | ^~~~ | short
s645363865
p00498
C++
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i,x) for(int i=0;i<x;++i) #define rrep(i,x) for(int i=x-1;i>=0;--i) #define rep1(i,x) for(int i=1;i<=x;++i) #define PB push_back #define PPB pop_back #define fst first #define scd second using vi = vector<int>; using vvi = vector<vi>; u...
a.cc: In function 'void build_tree()': a.cc:169:59: error: no matching function for call to 'std::pair<long long int, std::pair<long long int, long long int> >::pair(<brace-enclosed initializer list>)' 169 | E.PB(EdgeInfo{pii(d[i], d[e.to]), pii(i, e.to)}); | ...
s284206262
p00498
C++
#include<bits/stdc++.h> using namespace std; int N,M,K,a,b,c,d[200000],dist[200000]; vector<pair<int,int> >x[120000]; priority_queue<pair<int,int>,vector<pair<int,int> >,greater<pair<int,int> > >Q; int main(){ cin>>N>>M>>K; for(int i=0;i<M;i++){ cin>>a>>b>>c;x[a].push_back(make_pair(b,c));x[b].push_back(make_pair(a...
a.cc: In function 'int main()': a.cc:26:32: error: request for member 'push' in 'Q', which is of non-class type 'int' 26 | dist[a]=d[a];Q.push(make_pair(-1*dist[a],a)); | ^~~~ a.cc:27:26: error: request for member 'empty' in 'Q', which is of non-class type 'int' ...
s235049359
p00498
C++
epth[x]; for(int l = 0; l < 20; l++)
a.cc:1:1: error: 'epth' does not name a type 1 | epth[x]; | ^~~~ a.cc:2:25: error: expected unqualified-id before 'for' 2 | for(int l = 0; l < 20; l++) | ^~~ a.cc:2:40: error: 'l' does not name a type 2 | for(int l = 0; l < ...
s500259192
p00498
C++
#include <stdio.h> #include <string.h> #include <iostream> #include<string> #include<algorithm> #include<vector> #include<unordered_map> #include<unordered_set> #include<queue> #include<string.h> #include<functional> #define int long long #define P pair<int,int> using namespace std; int mincost[100000]; vector<P>rinse...
a.cc: In function 'int main()': a.cc:93:28: error: 'INT_MAX' was not declared in this scope 93 | n[i] = { 0,INT_MAX,i }; | ^~~~~~~ a.cc:12:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 11 | #include<fun...
s952040994
p00498
C++
#include<iostream> #include<vector> #include<queue> #include<algorithm> using namespace std; #define INF (1 << 29)#include<iostream> #include<vector> #include<queue> #include<algorithm> using namespace std; #define INF (1 << 29) typedef pair<long long , long long > EDGE; typedef pair<long long , EDGE> COST; vector<EDG...
a.cc:11:9: warning: "INF" redefined 11 | #define INF (1 << 29) | ^~~ a.cc:6:9: note: this is the location of the previous definition 6 | #define INF (1 << 29)#include<iostream> | ^~~ a.cc:168:14: error: redefinition of 'std::vector<std::pair<long long int, long long int> > edge [10010...
s454566406
p00498
C++
//Bokan ga bokka--nn!! //Daily Lunch Special Tanoshii !! #include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <string> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <functional> #include <iostream> #include <map> #include <set> #include <cassert> using na...
a.cc: In function 'void dfs(int, int, int)': a.cc:69:54: error: invalid types 'int[int]' for array subscript 69 | if(parent[0][v][0]!=-1) parent[0][v][1]=min(d[p],d[v]); | ^ a.cc:69:59: error: invalid types 'int[int]' for array subscript 69 | ...
s140127022
p00499
Java
import java.io.InputStream; import java.io.InputStreamReader; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.Deque; import java.util.HashMap; import java.util.InputMismatchException; ...
Main.java:38: error: cannot find symbol for(int i=0;i<=(e-s)/2;i++) if(str.charAt(s+i)!=str.charAt(e-i)) return false; ^ symbol: variable str location: class Main Main.java:38: error: cannot find symbol for(int i=0;i<=(e-s)/2;i++) if(str.charAt(s+i)!=str.charAt(e-i)) return false; ...
s881054983
p00499
Java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int r; if(a/c+1>=b/d+1) r = l-(a/c+1); else r = l-(b/d+1); System.out.println(r); }
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
s218684564
p00499
Java
package aoj0576; import java.util.Scanner; public class Homework { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.next...
Main.java:5: error: class Homework is public, should be declared in a file named Homework.java public class Homework { ^ 1 error
s753685085
p00499
Java
public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int k_cnt = 0, s_cnt = 0, answer; while(a > 0) { a = a - ...
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
s773240344
p00499
Java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int L = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int D = sc.nextInt(); int Japa , Math; if(A % C == 0){ Japa = A / C; }else{ Japa = A / C + 1; } if(B...
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
s940822525
p00499
Java
public class Homework { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int k_cnt = 0, s_cnt = 0, answer; ...
Main.java:1: error: class Homework is public, should be declared in a file named Homework.java public class Homework { ^ Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Homework Main.java:5: error: cannot find symbol Scanner sc = new...
s119312381
p00499
Java
import java.util.Scanner; public class Homework { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int k_cnt...
Main.java:3: error: class Homework is public, should be declared in a file named Homework.java public class Homework { ^ 1 error
s062745659
p00499
Java
import java.util.Scanner; public class Homework { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int k_cnt...
Main.java:3: error: class Homework is public, should be declared in a file named Homework.java public class Homework { ^ 1 error
s095231007
p00499
Java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int r; if(a/c+1>=b/d+1) r = l-(a/c+1); else r = l-(b/d+1); System.out.println(r); } }
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
s816071812
p00499
Java
import java.util.Scanner; public class homework { private int page; private int max; private boolean flg = true; public homework(int a,int b){ page = a; max = b; } public void study(){ this.page -= this.max; if(this.page <= 0){ this.page = 0; this.flg = false; } } public static vo...
Main.java:2: error: class homework is public, should be declared in a file named homework.java public class homework { ^ 1 error
s657574646
p00499
Java
public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner cs = new Scanner(System.in); int L = cs.nextInt(); int A = cs.nextInt(); int B = cs.nextInt(); int C = cs.nextInt(); int D = cs.nextInt(); int ans, japan, math; japan = A / C; if(A % C !=0){ jap...
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
s549671732
p00499
Java
import java.util.Scanner; public class main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner cs = new Scanner(System.in); int L = cs.nextInt(); int A = cs.nextInt(); int B = cs.nextInt(); int C = cs.nextInt(); int D = cs.nextInt(); int ans, japan...
Main.java:3: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s469001031
p00499
Java
public class main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner cs = new Scanner(System.in); int L = cs.nextInt(); int A = cs.nextInt(); int B = cs.nextInt(); int C = cs.nextInt(); int D = cs.nextInt(); int ans, japan, math; japan = A / C; ...
Main.java:3: error: class main is public, should be declared in a file named main.java public class main { ^ Main.java:6: error: cannot find symbol Scanner cs = new Scanner(System.in); ^ symbol: class Scanner location: class main Main.java:6: error: cannot find symbol Scanner cs = new Scanner(System....
s245522667
p00499
Java
public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner cs = new Scanner(System.in); int L = cs.nextInt(); int A = cs.nextInt(); int B = cs.nextInt(); int C = cs.nextInt(); int D = cs.nextInt(); int ans, japan, math; japan = A / C; ...
Main.java:4: error: cannot find symbol Scanner cs = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner cs = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s065155100
p00499
Java
public class MAIN { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner cs = new Scanner(System.in); int L = cs.nextInt(); int A = cs.nextInt(); int B = cs.nextInt(); int C = cs.nextInt(); int D = cs.nextInt(); int ans, japan, math; japan = A / C; ...
Main.java:1: error: class MAIN is public, should be declared in a file named MAIN.java public class MAIN { ^ Main.java:4: error: cannot find symbol Scanner cs = new Scanner(System.in); ^ symbol: class Scanner location: class MAIN Main.java:4: error: cannot find symbol Scanner cs = new Scanner(System....
s089416287
p00499
Java
public class main{ public class homework { private int page; private int max; private boolean flg = true; public homework(int a,int b){ page = a; max = b; } public void study(){ this.page -= this.max; if(this.page < 0){ this.page = 0; this.flg = false; } } public static void main(...
Main.java:1: error: class main is public, should be declared in a file named main.java public class main{ ^ Main.java:18: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class main.homework Main.java:18: error: cannot find symbol Scanner sc = new Sc...
s204921757
p00499
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int L = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int D = sc.nextInt(); int x; int y; int z; x = A % C; y = B % D; if(x == 0)x = x;...
Main.java:22: error: reached end of file while parsing System.out.println(z); ^ 1 error
s246727496
p00499
Java
public class main { private int page; private int max; boolean flg = true; public main(int a,int b){ page = a; max = b; } public void study(){ this.page -= this.max; if(this.page < 0){ this.page = 0; this.flg = false; } } public static void main(String[] args){ Scanner sc = new Scanner(System...
Main.java:1: error: class main is public, should be declared in a file named main.java public class main { ^ Main.java:17: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class main Main.java:17: error: cannot find symbol Scanner sc = new Scanner(Syste...
s261406812
p00499
Java
public class main { private int page; private int max; boolean flg = true; public main(int a,int b){ page = a; max = b; } public void study(){ this.page -= this.max; if(this.page <=0){ this.page = 0; this.flg = false; } } public static void main(String[] args){ Scanner sc = new Scanner(System...
Main.java:1: error: class main is public, should be declared in a file named main.java public class main { ^ Main.java:17: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class main Main.java:17: error: cannot find symbol Scanner sc = new Scanner(Syste...
s650418889
p00499
Java
import java.util.Scanner; public class main { private int page; private int max; boolean flg = true; public main(int a,int b){ page = a; max = b; } public void study(){ this.page -= this.max; if(this.page <=0){ this.page = 0; this.flg = false; } } public static void main(String[] args){ Scann...
Main.java:2: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s152409641
p00499
Java
public class Main { private int page; private int max; boolean flg = true; public main(int a,int b){ page = a; max = b; } public void study(){ this.page -= this.max; if(this.page <=0){ this.page = 0; this.flg = false; } } public static void main(String[] args){ Scanner sc = new Scanner(System...
Main.java:5: error: invalid method declaration; return type required public main(int a,int b){ ^ 1 error
s119591291
p00499
Java
public class Main { private int page; private int max; boolean flg = true; public Main(int a,int b){ page = a; max = b; } public void study(){ this.page -= this.max; if(this.page <=0){ this.page = 0; this.flg = false; } } public static void Main(String[] args){ Scanner sc = new Scanner(System...
Main.java:17: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:17: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s041909371
p00499
Java
import java.util.Scanner; public class main { private int page; private int max; boolean flg = true; public main(int a,int b){ page = a; max = b; } public void study(){ this.page -= this.max; if(this.page <=0){ this.page = 0; this.flg = false; } } public static void main(String[] args){ Scann...
Main.java:2: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s084040469
p00499
Java
public class Main { private int page; private int max; boolean flg = true; public Main(int a,int b){ page = a; max = b; } public void study(){ this.page -= this.max; if(this.page <=0){ this.page = 0; this.flg = false; } } public static void main(String[] args){ Scanner sc = new Scanner(System...
Main.java:17: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:17: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s042885816
p00499
Java
public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int L = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int D = sc.nextInt(); int y = 0; int i = 0; for(i = 0;i<=L;i++){ A = A - C; B = B - D; y++; if(A<=0&&B...
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
s249701980
p00499
Java
public class Main { public static void main(String[]args){ Scanner sc = new Scanner(System.in); int L = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int D = sc.nextInt(); int y = 0; int i = 0; for(i = 0;i<=L;i++){ A = A - C; B = B - D; y++; if(A<=0&&...
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
s602745901
p00499
Java
public class Main { private int page; private int max; boolean flg = true; public Main(int a,int b){ page = a; max = b; } public void study(){ this.page -= this.max; if(this.page <=0){ this.page = 0; this.flg = false; } } public static void main(String[] args){ Scanner sc = new Scanner(System...
Main.java:17: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:17: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s522453595
p00499
Java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int l; int a, b, c, d; int dayJ = 0, dayM = 0; l = scan.nextInt(); a = scan.nextInt(); b = scan.nextInt(); c = scan.nextInt(); d = scan.nextInt(); if(a%c == 0)dayJ = a / ...
Main.java:26: error: reached end of file while parsing } ^ 1 error
s591508336
p00499
Java
import java.io.BufferedReader; import java.io.InputStreamReader; public class AOJ_0576 { public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int i; int[] in = new int[5]; for(i=0; i<in.length; i++){ in[i] = Integer.valueOf...
Main.java:4: error: class AOJ_0576 is public, should be declared in a file named AOJ_0576.java public class AOJ_0576 { ^ 1 error
s847031986
p00499
Java
class Main { public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int i; int[] in = new int[5]; for(i=0; i<in.length; i++){ in[i] = Integer.valueOf(r.readLine()); } // START // for(i=0; in[1]>0 || in[2]>0; in[1]-=in...
Main.java:3: error: cannot find symbol BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:3: error: cannot find symbol BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); ^ sym...
s510586041
p00499
C
#include <stdio.h> int main(void) { int L, A, B, C, D; int i; int count1; scanf("%d", %L); scanf("%d", %A); scanf("%d", %B); scanf("%d", %C); scanf("%d", %D); for (i = 0; A < C && B < D; i++){ A -= C; B -= D; count++; } printf("%d\n", L - count); // your code goes here return 0; }
main.c: In function 'main': main.c:8:21: error: expected expression before '%' token 8 | scanf("%d", %L); scanf("%d", %A); scanf("%d", %B); scanf("%d", %C); scanf("%d", %D); | ^ main.c:8:38: error: expected expression before '%' token 8 | scanf("%d", %L); scanf("%d", %A...
s117607077
p00499
C
#include <stdio.h> int main(void) { int L, A, B, C, D; int i; int count1; scanf("%d", L); scanf("%d", A); scanf("%d", B); scanf("%d", C); scanf("%d", D); for (i = 0; A < C && B < D; i++){ A -= C; B -= D; count++; } printf("%d\n", L - count); // your code goes here return 0; }
main.c: In function 'main': main.c:12:17: error: 'count' undeclared (first use in this function); did you mean 'count1'? 12 | count++; | ^~~~~ | count1 main.c:12:17: note: each undeclared identifier is reported only once for each function it appears in
s785996577
p00499
C
#include <stdio.h> int main(void) { int L, A, B, C, D; int i; int count1; scanf("%d", &L); scanf("%d", &A); scanf("%d", &B); scanf("%d", &C); scanf("%d", &D); for (i = 0; A < C && B < D; i++){ A -= C; B -= D; count++; } printf("%d\n", L - count); // your code goes here return 0; }
main.c: In function 'main': main.c:12:17: error: 'count' undeclared (first use in this function); did you mean 'count1'? 12 | count++; | ^~~~~ | count1 main.c:12:17: note: each undeclared identifier is reported only once for each function it appears in
s696292183
p00499
C
#include <stdio.h> int main(void) { int L, A, B, C, D; int i; scanf("%d", &L); scanf("%d", &A); scanf("%d", &B); scanf("%d", &C); scanf("%d", &D); for (i = 0; A > C && B > D; i++){ A -= C; B -= D; } if (A == C || B == D){ } else { count++; } printf("%d\n", L - i); // your code goes here return ...
main.c: In function 'main': main.c:16:17: error: 'count' undeclared (first use in this function) 16 | count++; | ^~~~~ main.c:16:17: note: each undeclared identifier is reported only once for each function it appears in
s599855591
p00499
C
#include <stdio.h> float main(void) { float l,a,b,c,d,e,f,v,w,x,y,z; l,a,b,c,d,e,f,v,w,x,y,z=0; scanf("%f",&l); scanf("%f",&a); scanf("%f",&b); scanf("%f",&c); scanf("%f",&d); if(a%c=0){v=l-a/c}; if(b%d=0){w=l-b/d}; if(a%c!=0){x=l-1-a/c}; if(b%d!=0){y=l-1-b/d}; if(v<w){w=z}; if(w<v){v=z}; ...
main.c: In function 'main': main.c:15:13: error: invalid operands to binary % (have 'float' and 'float') 15 | if(a%c=0){v=l-a/c}; | ^ main.c:15:26: error: expected ';' before '}' token 15 | if(a%c=0){v=l-a/c}; | ^ | ; ...
s304332137
p00499
C
#include <stdio.h> float main(void) { float l,a,b,c,d,e,f,v,w,x,y,z; l,a,b,c,d,e,f,v,w,x,y,z=0; scanf("%f",&l); scanf("%f",&a); scanf("%f",&b); scanf("%f",&c); scanf("%f",&d); if(a%c=0){v=l-a/c}; if(b%d=0){w=l-b/d}; if(a%c!=0){x=l-1-a/c}; if(b%d!=0){y=l-1-b/d}; if(v<w){w=z}; if(w<v){v=z}; i...
main.c: In function 'main': main.c:14:13: error: invalid operands to binary % (have 'float' and 'float') 14 | if(a%c=0){v=l-a/c}; | ^ main.c:14:26: error: expected ';' before '}' token 14 | if(a%c=0){v=l-a/c}; | ^ | ; ...
s535758137
p00499
C
#include <stdio.h> int main(void) { int l,a,b,c,d,e,f,g,h,i,j,k,z; scanf("%d",&l); scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); e=a/c; f=a%c; if(f=0){g=e}; if(f>0){g=e-f+1}; h=b/d; i=b%d; if(i=0){k=j}; if(i>0){k=h-i+1}; if(g<k){z=l-k}; if(g>k){z=l-g}; if(g=k){z=l-g}; prin...
main.c: In function 'main': main.c:15:20: error: expected ';' before '}' token 15 | if(f=0){g=e}; | ^ | ; main.c:16:24: error: expected ';' before '}' token 16 | if(f>0){g=e-f+1}; | ^ | ; ma...
s078426010
p00499
C
#include <stdio.h> int main(void) { int l,a,b,c,d,e,f,g,h,i,j,k,z; scanf("%d",&l); scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); e=a/c; f=a%c; if(f=0){g=e} if(f>0){g=e-f+1} h=b/d; i=b%d; if(i=0){k=j} if(i>0){k=h-i+1} if(g<k){z=l-k} if(g>k){z=l-g} if(g=k){z=l-g} printf("%d"...
main.c: In function 'main': main.c:15:20: error: expected ';' before '}' token 15 | if(f=0){g=e} | ^ | ; main.c:16:24: error: expected ';' before '}' token 16 | if(f>0){g=e-f+1} | ^ | ; main...
s710637542
p00499
C
#include <stdio.h> int main(void) { int l,a,b,c,d,e,f,g,h,i,j,k,z; scanf("%d",&l); scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); e=a/c; f=a%c; if(f=0){g=e} if(f>0){g=e-f+1} h=b/d; i=b%d; if(i=0){k=j} if(i>0){k=h-i+1} if(g<k){z=l-k} if(g>k){z=l-g} if(g=k){z=l-g} printf("%d"...
main.c: In function 'main': main.c:15:20: error: expected ';' before '}' token 15 | if(f=0){g=e} | ^ | ; main.c:16:24: error: expected ';' before '}' token 16 | if(f>0){g=e-f+1} | ^ | ; main...
s987358903
p00499
C
#include <stdio.h> int main(void) { int l,a,b,c,d,e,f,g,h,i,j,k,z; scanf("%d",&l); scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); e=a/c; f=a%c if(f=0){g=e;} if(f>0){g=e-f+1;} h=b/d; i=b%d; if(i=0){k=j;} if(i>0){k=h-i+1;} if(g<k){z=l-k;} if(g>k){z=l-g;} if(g=k){z=l-g;} print...
main.c: In function 'main': main.c:14:14: error: expected ';' before 'if' 14 | f=a%c | ^ | ; 15 | if(f=0){g=e;} | ~~
s291215738
p00499
C
#include <stdio.h> int main(void) { int l, a, b, c, d, japanese, math, homework,play; scanf("%d %d %d %d %d",&l,&a,&b,&c,&d); if(a % c = 0) japanese = a / c; else japanese = a / c + 1; if(b % d = 0) math = b / d; else math = b / d + 1; if(japanese <= math) homework = math; else homework =japanese; ...
main.c: In function 'main': main.c:5:18: error: lvalue required as left operand of assignment 5 | if(a % c = 0) | ^ main.c:9:18: error: lvalue required as left operand of assignment 9 | if(b % d = 0) | ^
s037887365
p00499
C
#include <stdio.h> int main(void) { int l, a, b, c, d, japanese, math, homework,play; scanf("%d %d %d %d %d",&l,&a,&b,&c,&d); if(a % c = 0) japanese = a / c; else japanese = a / c + 1; if(b % d = 0) math = b / d; else math = b / d + 1; if(japanese <= math) homework = math; else homework =japanese; ...
main.c: In function 'main': main.c:5:18: error: lvalue required as left operand of assignment 5 | if(a % c = 0) | ^ main.c:9:18: error: lvalue required as left operand of assignment 9 | if(b % d = 0) | ^
s672244782
p00499
C
#include <stdio.h> int main(void) { int l, a, b, c, d, japanese, math, homework,play; scanf("%d %d %d %d %d",&l,&a,&b,&c,&d); if(a % c = 0) japanese = a / c; else japanese = a / c + 1; if(b % d = 0) math = b / d; else math = b / d + 1; if(japanese <= math) homework = math; else homework =japan...
main.c: In function 'main': main.c:5:18: error: lvalue required as left operand of assignment 5 | if(a % c = 0) | ^ main.c:10:18: error: lvalue required as left operand of assignment 10 | if(b % d = 0) | ^
s805988523
p00499
C
#include <stdio.h> int main(void) { int l, a, b, c, d, japanese, math, homework,play; scanf("%d %d %d %d %d",&l,&a,&b,&c,&d); if(a % c = 0) japanese = a / c; else japanese = a / c + 1; if(b % d = 0) math = b / d; else math = b / d + 1; if(japanese <= math) homework = math; else homework =japan...
main.c: In function 'main': main.c:5:18: error: lvalue required as left operand of assignment 5 | if(a % c = 0) | ^ main.c:10:18: error: lvalue required as left operand of assignment 10 | if(b % d = 0) | ^
s274971274
p00499
C
#include <stdio.h> int main(void) { int l, a, b, c, d, japanese, math, homework, play; scanf("%d %d %d %d %d",&l,&a,&b,&c,&d); if(a % c = 0) japanese = a / c; else japanese = a / c + 1; if(b % d = 0) math = b / d; else math = b / d + 1; if(japanese <= math) homework = math; else homework =japa...
main.c: In function 'main': main.c:5:18: error: lvalue required as left operand of assignment 5 | if(a % c = 0) | ^ main.c:10:18: error: lvalue required as left operand of assignment 10 | if(b % d = 0) | ^
s959620967
p00499
C
#include <stdio.h> int main() { int l,a,b,c,d,result,aa,bb; scanf("%d %d %d %d %d", &l, &a, &b, &c, %d); aa = a / c; if( a % c != 0 ) aa++; bb = b / d; if( b % d != 0 ) bb++; if( aa > bb ) aa = bb; printf("%d\n", l - aa); return 0; }
main.c: In function 'main': main.c:5:49: error: expected expression before '%' token 5 | scanf("%d %d %d %d %d", &l, &a, &b, &c, %d); | ^
s452445894
p00499
C
#include <stdio.h> int main() { int l,a,b,c,d,aa,bb,result = 1; scanf("%d %d %d %d %d", &l, &a, &b, &c, %d); aa = a / c; if( a % c != 0 ) aa++; bb = b / d; if( b % d != 0 ) bb++; if( aa > bb ) aa = bb; if( l - aa > 1 ) result = l - aa; printf("%d\n", result); return 0; }
main.c: In function 'main': main.c:5:49: error: expected expression before '%' token 5 | scanf("%d %d %d %d %d", &l, &a, &b, &c, %d); | ^
s058173358
p00499
C
#include<stdio.h> #include<math.h> int main() { int a, b, c, d, l, n, x, z; scanf("%d\n%d\n%d\n%d\n%d", &l, &a, &b, &c, &d); n = ceil(a / c); x = ceil(b / d); if(n >= x); z = l - n; }else{ z = l - x; } printf("%d\n", z); return 0; }
main.c:10:4: error: expected identifier or '(' before 'else' 10 | }else{ | ^~~~ main.c:13:10: error: expected declaration specifiers or '...' before string constant 13 | printf("%d\n", z); | ^~~~~~ main.c:13:18: error: unknown type name 'z' 13 | printf("%d\n", z); | ...
s071622421
p00499
C
#include<stdio.h> #include<math.h> int main() { int a, b, c, d, l, n, x, z; scanf("%d %d %d %d %d", &l, &a, &b, &c, &d); n = double ceil(a / c); x = double ceil(b / d); if(n >= x) { z = l - n; }else{ z = l - x; } printf("%d\n", z); return 0; }
main.c: In function 'main': main.c:6:7: error: expected expression before 'double' 6 | n = double ceil(a / c); | ^~~~~~ main.c:7:7: error: expected expression before 'double' 7 | x = double ceil(b / d); | ^~~~~~
s873830666
p00499
C
#include <stdio.h> int main() { int A,A,B,C,D,x,y; scanf("%d",&L); scanf("%d",&A); scanf("%d",&B); scanf("%d",&C); scanf("%d",&D); x = L - A/C; y = L - B/D; if(x>y) { printf("%d\n",x); }else { printf("%d\n",y); } return 0; }
main.c: In function 'main': main.c:3:7: error: redeclaration of 'A' with no linkage 3 | int A,A,B,C,D,x,y; | ^ main.c:3:5: note: previous declaration of 'A' with type 'int' 3 | int A,A,B,C,D,x,y; | ^ main.c:4:17: error: 'L' undeclared (first use in this function) 4 | scanf("%d",&L)...
s853678289
p00499
C
#include <stdio.h> int main() { int L,A,B,C,D; scanf("%d",&L); scanf("%d",&A); scanf("%d",&B); scanf("%d",&C); scanf("%d",&D); prinf("%d\n",L-A/C); return 0; }
main.c: In function 'main': main.c:9:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration] 9 | prinf("%d\n",L-A/C); | ^~~~~ | printf
s475690168
p00499
C
#include<stdio.h> int main() { int a, b, c, d, japan=0, math=0, i, off; scanf("%d", &l); scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); for(i=0; i<b; i+D){ japan=math+1; } if(japan<=math){ off=L-math; }else{ off=l-japan...
main.c: In function 'main': main.c:4:19: error: 'l' undeclared (first use in this function) 4 | scanf("%d", &l); | ^ main.c:4:19: note: each undeclared identifier is reported only once for each function it appears in main.c:9:22: error: 'D' undeclared (first use in this function) 9 ...
s514581401
p00499
C
#include<stdio.h> int main(){ int l,a,b,c,d,jap,mat; scanf("%d\n%d\n%d\n%d\n%d",%l,&a,&b,&c,&d); jap = a/c; if(a%c!=0)jap++; mat = b/d; if(b%d!=0)mat++; if(jap>=mat)l=l-jap;else l=l-mat; printf("%d\n",l); return 0; }
main.c: In function 'main': main.c:4:28: error: expected expression before '%' token 4 | scanf("%d\n%d\n%d\n%d\n%d",%l,&a,&b,&c,&d); | ^
s282741178
p00499
C
#include<stdio.h> int main(){ int l,a,b,c,d,jap,mat; scanf("%d\n%d\n%d\n%d\n%d",%l,&a,&b,&c,&d); jap = a/c; if((a%c)!=0)jap++; mat = b/d; if((b%d)!=0)mat++; if(jap>=mat)l=l-jap;else l=l-mat; printf("%d\n",l); return 0; }
main.c: In function 'main': main.c:4:28: error: expected expression before '%' token 4 | scanf("%d\n%d\n%d\n%d\n%d",%l,&a,&b,&c,&d); | ^
s176652798
p00499
C
#include<stdio.h> int main(){ int l,a,b,c,d,jap,mat,m,n; scanf("%d\n%d\n%d\n%d\n%d",%l,&a,&b,&c,&d); jap = a/c; m = a%c; if(m!=0)jap++; mat = b/d; n = b%d; if(n!=0)mat++; if(jap>=mat)l=l-jap;else l=l-mat; printf("%d\n",l); return 0; }
main.c: In function 'main': main.c:4:28: error: expected expression before '%' token 4 | scanf("%d\n%d\n%d\n%d\n%d",%l,&a,&b,&c,&d); | ^
s555977105
p00499
C
#include<stdio.h> int main(){ int l,a,b,c,d,i; scanf("%d%d%d%d%d",&l,&a,&b,&c,&d); while(l--,a-=c,b-=d,a>0||b>0);printf("%d\n",l);exit;}
main.c: In function 'main': main.c:8:52: error: 'exit' undeclared (first use in this function) 8 | while(l--,a-=c,b-=d,a>0||b>0);printf("%d\n",l);exit;} | ^~~~ main.c:2:1: note: 'exit' is defined in header '<stdlib.h>'; this is probably fixable by adding ...
s544127517
p00499
C
#include <iostream> using namespace std; int main(){ int a,b,c,d,l,sum=0,e,f; cin >> l >> a >> b >> c >> d ; while(1){ if(a<c){ f=1; } if(f==1){ break; } c+=c; sum++; } while(1){ if(b<d){ e=1; } if(e==1){ break; } d+=d; sum++; } printf("%d\n",l-sum); return 0;...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s336657807
p00499
C
#include<stdio.h> int main(void) { int A, B, C, D, L=0,a,b; scanf("%d", &L); scanf("%d %d", &A, &B); scanf("%d %d", &C, &D); A = A / C; a = A%C; if (a != 0) { A = A+1; } B = B / D; b = B%D; if (b != 0) { B = B; } if (A > B) { L = L - A;...
main.c:29:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant 29 | retrun 0; | ^
s088583218
p00499
C
#include<stdio.h> int main(void) { int A, B, C, D, L=0,a,b; scanf("%d", &L); scanf("%d %d", &A, &B); scanf("%d %d", &C, &D); A = A / C; a = A%C; if (a != 0) { A = A+1; } B = B / D; b = B%D; if (b != 0) { B = B; } if (A > B) { L = L - A;...
main.c:29:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant 29 | retrun 0; | ^ main.c:31:4: error: expected identifier or '(' before ']' token 31 | ] | ^
s713287789
p00499
C
#include<stdio.h> int main(void){ int l,a,b,c,d; scanf("%d",&l); scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); if((a-1)/c>(b-1)/d) printf("%d",l-(a-1)/c); else printf("%d",l-(b-1)/d) return 0; }
main.c: In function 'main': main.c:14:29: error: expected ';' before 'return' 14 | else printf("%d",l-(b-1)/d) | ^ | ; 15 | 16 | return 0; | ~~~~~~
s397032115
p00499
C
#include<stdio.h> int main(void) { int l, a, b, c, d,flag1=0,flag2=0; scanf("%d",&l),scanf("%d", &a),scanf("%d", &b),scanf("%d", &c),scanf"%d", &d); while (1) { if (a - c >= 0)a -= c; else flag1 = 1; if (b - d >= 0) b -= d; else flag2 = 1; if (flag1 && flag2) { if (a || b)l--; break; } l--; } ...
main.c: In function 'main': main.c:5:77: error: expected ';' before string constant 5 | scanf("%d",&l),scanf("%d", &a),scanf("%d", &b),scanf("%d", &c),scanf"%d", &d); | ^~~~ | ...
s055797012
p00499
C
#include <stdio.h> #define max(a, b) {((a)>(b)) ? (a) : (b)} int main() { int a, b, c, d, l; scanf("%d %d %d %d %d", &l, &a, &b, &c, &d); printf("%d\n", l - max(a/c+1, b/d+1)); return 0; }
main.c: In function 'main': main.c:3:19: error: expected expression before '{' token 3 | #define max(a, b) {((a)>(b)) ? (a) : (b)} | ^ main.c:10:22: note: in expansion of macro 'max' 10 | printf("%d\n", l - max(a/c+1, b/d+1)); | ^~~
s711004847
p00499
C
#include <stdio.h> #define max(a, b) ((a)>(b) ? a : b) #define foo(a, b) ((a)/(b) + ((a)%(b) ? 1 : 0)) int main() { int a, b, c, d, l; scanf("%d %d %d %d %d", &l, &a, &b, &c, &d); printf("%d\n", l - max(foo(a, c), foo(b, d)); return 0; }
main.c: In function 'main': main.c:11:47: error: expected ')' before ';' token 11 | printf("%d\n", l - max(foo(a, c), foo(b, d)); | ~ ^ main.c:12:12: error: expected ';' before '}' token 12 | return 0; | ^ | ; 13 | } ...
s541257435
p00499
C
#include <stdio.h> int max(int a,int b) { int max; max = (a>b) ? a : b); return max; } int main(void) { int l,a,b,c,d,f; scanf("%d",&l); scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); f = max((a/c),(b/d)); if ((max == a/c && a%c!=0) || (max == b/d && b%d!=0) printf("%d",l-f-1); ...
main.c: In function 'max': main.c:5:22: error: expected ';' before ')' token 5 | max = (a>b) ? a : b); | ^ | ; main.c:5:22: error: expected statement before ')' token main.c: In function 'main': main.c:18:10: warning: comparison between pointer and integer ...
s057474764
p00499
C
#include <stdio.h> int max(int a,int b) { int max; max = (a>b) ? a : b; return max; } int main(void) { int l,a,b,c,d; int cnt1,cnt2; scanf("%d",&l); scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); while(a>0){ a -= c; cnt1 ++; } while(b>0){ b -= d; cnt2 ++; } print...
main.c: In function 'main': main.c:26:33: error: expected ')' before ';' token 26 | printf("%d\n",l-max(cnt1,cnt2); | ~ ^ | ) main.c:27:10: error: expected ';' before '}' token 27 | return 0; | ^ | ; 28 | ...
s148943873
p00499
C
#include <stdio.h> main(){ int hi,koku,suu,kokud,suud; int n=0,m=0; scanf("%d",&hi); scanf("%d",&koku); scanf("%d",&suu); scanf("%d",&kokud); scanf("%d",&suud); printf("\n"); while(koku>0){ koku-=kokud; n++; return 0; } while(suu>0){ suu-=suud; m++; return 0; } if(n>m){ hi-=n; printf("%d",hi) return 0; } else i...
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int] 3 | main(){ | ^~~~ main.c: In function 'main': main.c:30:16: error: expected ';' before 'return' 30 | printf("%d",hi) | ^ | ; 31 | return 0; | ~~~~~~ main.c:36:12: error: request f...
s703285594
p00499
C
#include <stdio.h> main(){ int hi,koku,suu,kokud,suud; int n=0,m=0; scanf("%d",&hi); scanf("%d",&koku); scanf("%d",&suu); scanf("%d",&kokud); scanf("%d",&suud); printf("\n"); while(koku>0){ koku-=kokud; n++; return 0; } while(suu>0){ suu-=suud; m++; return 0; } if(n>m){ hi-=n; printf("%d",hi); return 0; } ...
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int] 3 | main(){ | ^~~~ main.c: In function 'main': main.c:35:12: error: request for member 'hi' in something not a structure or union 35 | printf("%d".hi); | ^