submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s511910524
p00278
C++
#include <bits/stdc++.h> using namespace std; #define for_(i,a,b) for(int i=a;i<b;++i) #define allof(a) a.begin(),a.end() typedef pair< int, int > pii; int N, Q; vector< int > s, id; set< int > read; int count(int r) { if ((int)read.size() == 0) return N; set< int >::iterator it = read.end(); int res = 0, cur ...
a.cc:11:12: error: 'std::set<int> read' redeclared as different kind of entity 11 | set< int > read; | ^~~~ In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24, from /usr/include/signal.h:328, from /usr/include/c++/14/csignal:42, ...
s955930691
p00278
C++
#include <bits/stdc++.h> using namespace std; #define for_(i,a,b) for(int i=a;i<b;++i) #define allof(a) a.begin(),a.end() typedef pair< int, int > pii; int N, Q; vector< int > s, id; set< int > reader; int count(int r) { if ((int)read.size() == 0) return N; set< int >::iterator it = reader.end(); int res = 0, ...
a.cc: In function 'int count(int)': a.cc:14:23: error: request for member 'size' in 'read', which is of non-class type 'ssize_t(int, void*, size_t)' {aka 'long int(int, void*, long unsigned int)'} 14 | if ((int)read.size() == 0) return N; | ^~~~ a.cc:24:29: error: request for memb...
s181336663
p00278
C++
#include<bits/stdc++.h> using namespace std; int N, Q, s[1000000]; vector< int > Student; multiset< int > Leader; bool Check(int value, int x) { vector< int >::iterator last = Student.begin(); int Lost = 0; for(multiset< int >::iterator it = Leader.begin(); it != Leader.end() && last != Student.end(); ++it) { ...
a.cc: In function 'bool Check(int, int)': a.cc:16:14: error: no matching function for call to 'max(int, __gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type)' 16 | Lost += max(0, Student.end() - last); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algori...
s876619542
p00278
C++
#include <cstdio> #include <vector> #include <algorithm> using namespace std; int s[1000000]; int student[1000000]; int N; vector<int> L; bool check(int x,int r) { int start=0; int sum=0; for(int i=0;i<L.size();i++) { int pos=max(lower_bound(s,s+N,L[i]-r)-s,start); int k=upper_bound(s,s+N,L[i])-s; sum+=(k-pos)...
a.cc: In function 'bool check(int, int)': a.cc:13:28: error: no matching function for call to 'max(long int, int&)' 13 | int pos=max(lower_bound(s,s+N,L[i]-r)-s,start); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/vector:62, ...
s038514546
p00278
C++
# define _CRT_SECUREj_NO_WARNINGS 1 # define _USE_MATH_DEFINES # include <iostream> # include <numeric> # include <string> # include <bitset> # include <vector> # include <algorithm> # include <cstdlib> # include <cstdio> # include <cstring> # include <cstdlib> # include <iomanip> # include <queue> # include <sstream> ...
a.cc:46:16: error: 'long long int index [1000000]' redeclared as different kind of entity 46 | int index[MAX_N]; | ^ In file included from /usr/include/string.h:462, from /usr/include/c++/14/cstring:43, from a.cc:11: /usr/include/strings.h:50:20: note: previous ...
s896325444
p00278
C++
/* ----------------------------------------------------------------------------- ????????????????????? 2013 ?????? ??????8 0283: Study Session ???????????????(??£??????) g++ pckpre1308.cpp -O2 ----------------------------------------------------------------------------- */ #include <stdio.h> #include <iostream> #in...
a.cc:54:2: error: expected unqualified-id before '/' token 54 | */ | ^ a.cc: In function 'int main()': a.cc:186:33: error: 'add' was not declared in this scope 186 | add(param); | ^~~
s425538994
p00278
C++
#include <stdio.h> #include <cmath> #include <algorithm> #include <cfloat> #include <stack> #include <queue> #include <vector> #include <string> #include <iostream> #include <set> #include <map> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define MOD 1000000007 #define EPS 0...
a.cc: In function 'int main()': a.cc:68:14: error: no matching function for call to 'Data::Data()' 68 | Data data; | ^~~~ a.cc:27:9: note: candidate: 'Data::Data(int, int, int)' 27 | Data(int arg_diff,int arg_index,int arg_leader_number){ | ^~~~ a.cc:27:9: note: ...
s044405564
p00278
C++
#include <stdio.h> #include <cmath> #include <algorithm> #include <cfloat> #include <stack> #include <queue> #include <vector> #include <string> #include <iostream> #include <set> #include <map> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define MOD 1000000007 #define EPS 0...
a.cc: In function 'int main()': a.cc:68:14: error: no matching function for call to 'Data::Data()' 68 | Data data; | ^~~~ a.cc:27:9: note: candidate: 'Data::Data(int, int, int)' 27 | Data(int arg_diff,int arg_index,int arg_leader_number){ | ^~~~ a.cc:27:9: note: ...
s498115524
p00278
C++
#include<iostream> #include<cstdio> #include<algorithm> #include<vector> #include<map> #include<set> using namespace std; #define REP(i, b, e) for ( int i = b; i < e; i++) #define rep(i, n) REP(i, 0, n) static const int MAX_N = 1000000; static const int MAX_P = 2000000000; int N, M, Q, S[MAX_N]; map<int, int> PM; //...
a.cc:84:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 84 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:120:7: error: 'assert' was not declared in this scope 120 | assert( isR[x] ); isR[x] = false; | ^~~~~~ a.cc:7:1: note: 'assert' is defined in heade...
s963468797
p00278
C++
#include <iostream> #include <vector> #include <set> using namespace std; typedef long long LL; template <class T> struct BIT/*{{{*/ { vector<T> tree; const int size; BIT(int s) : tree(s), size(s) {} // i 番目までの要素の累積和 T read(int i) const { T sum = 0; while (i > 0) { sum += tree[i]; i -...
a.cc: In function 'bool solve()': a.cc:79:5: error: 'sort' was not declared in this scope; did you mean 'short'? 79 | sort(begin(score_list), end(score_list)); | ^~~~ | short a.cc:80:22: error: 'unique' was not declared in this scope 80 | score_list.erase(unique(begin(score_list), end(...
s849968416
p00278
C++
#include <iostream> #include <vector> #include <set> #include <iterator> using namespace std; typedef long long LL; template <class T> struct BIT/*{{{*/ { vector<T> tree; const int size; BIT(int s) : tree(s), size(s) {} // i 番目までの要素の累積和 T read(int i) const { T sum = 0; while (i > 0) { sum +...
a.cc: In function 'bool solve()': a.cc:80:5: error: 'sort' was not declared in this scope; did you mean 'short'? 80 | sort(begin(score_list), end(score_list)); | ^~~~ | short a.cc:81:22: error: 'unique' was not declared in this scope 81 | score_list.erase(unique(begin(score_list), end(...
s602803565
p00278
C++
#include <iostream> #include <cstdio> #include <iomanip> #include <vector> #include <map> #include <set> #include <queue> #include <bitset> #include <stack> #include <utility> #include <numeric> #include <algorithm> #include <functional> #include <cctype> #include <complex> #include <string> #include <sstream> #include...
a.cc: In member function 'void Main::run()': a.cc:121:58: error: no matching function for call to 'max(__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type, int&)' 121 | int d=max(lower_bound(ALL(sv),sv[ls[i]]-m)-sv.begin(),pd); | ...
s540911952
p00279
C++
#include <cmath> #include <cstdio> #include <vector> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; const double EPS=1e-8; const double INF=1e77; struct point{ double x,y; point():x(0),y(0){} point(double x,double y):x(x),y(y){} point operator-(const point &a)const{ return point(x-a.x,y-a.y); } b...
a.cc: In function 'void dfs(int)': a.cc:52:25: error: 'memcpy' was not declared in this scope 52 | memcpy(Q_ans,Q,sizeof Q); | ^~~~~~ a.cc:4:1: note: 'memcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #inclu...
s913038377
p00279
C++
#include <cstdio> #include <vector> #include <cstring> #include <cmath> #include <algorithm> #define INF 1e8 using namespace std; typedef long long ll; struct P{ ll x,y,id; double dir; P(){} P(ll xx,ll yy,ll pp){ x=xx; y=yy; id=pp; dir=atan2((double)yy,(double)xx); if(dir<0)dir=M_PI*2.0+dir; } P operato...
a.cc:38:1: error: '::main' must return 'int' 38 | ll main(void){ | ^~ a.cc: In function 'int main()': a.cc:109:34: error: 'prllf' was not declared in this scope 109 | if(res[que]==INF)prllf("NA\n"); | ^~~~~ a.cc:112:33: error: 'prllf' was not declared in...
s097468811
p00279
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; struct point{ ll x,y; point operator - (const point &p)const{ return (point){x-p.x,y-p.y}; } bool operator < (const point &p)const{ return (y==p.y?x<p.x:y<p.y); } }; ll cross(point a,point b){ return a.x*b.y-b.x*a.y; } ll n; poi...
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type std::__fill_a1(_F...
s640154884
p00279
C++
error
a.cc:1:1: error: 'error' does not name a type 1 | error | ^~~~~
s793218608
p00280
C++
#include<iostream> using namespace std; int j,y; void dfs(int a,int b,string game){ if(a==j && b==y){ cout<< game<< endl; return; } else if(a>j || b>y) return; else if((a<3 && b==5) || (a==5 && b<3)) return; dfs(a+1,b,game+'A'); dfs(a,b+1,game+'B'); } main(){ cin>> j>> y; dfs(0,0,
a.cc:17:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 17 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:19:11: error: expected primary-expression at end of input 19 | dfs(0,0, | ^ a.cc:19:11: error: expected '}' at end of input a.cc:17:7: note: to ma...
s303102919
p00280
C++
#include<bits/stdc++.h> using namespace std; string keiro[100000]; void tansaku(int J,int Y,string now); int j,y; main(){ cin>>j>>y; tansaku(0,0,""); } void tansaku(int J,int Y,string now){ if(J==j&&Y==y){ cout<<now<<endl; return; } if(J>j || Y>y) return; if(b<5||(b==5&&a==4)){ tansaku(J+...
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main(){ | ^~~~ a.cc: In function 'void tansaku(int, int, std::string)': a.cc:18:6: error: 'b' was not declared in this scope 18 | if(b<5||(b==5&&a==4)){ | ^ a.cc:18:18: error: 'a' was not declared in this...
s597699001
p00280
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; string score; string ans[127]; string win; int a,b; int cou; void saiki(int ac,int bc ,int d) { if(d == a+b && (score[a+b-1] == win[0] || win[0] == 'd') ) { cou++; for(int i=0;i<a+b;i++) ans[cou-1] += score[i]; } ...
a.cc: In function 'int main()': a.cc:65:34: error: a function-definition is not allowed here before '{' token 65 | void saiki(int ac,int bc ,int d) { | ^ a.cc:86:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 86 | int main(){ ...
s556681338
p00280
C++
#include <string> #include <iostream> #include <algorithm> using namespace std; int a, b; int main() { scanf("%d%d", &a, &b); if(a + b != 10) { for(int i = 0; i < (1 << (a + b)); i++) { if(__popcnt(i) == a) { for(int j = 0; j < a + b; j++) { if(i & (1 << j)) printf("A"); else printf("B"); } ...
a.cc: In function 'int main()': a.cc:10:28: error: '__popcnt' was not declared in this scope 10 | if(__popcnt(i) == a) { | ^~~~~~~~ a.cc:22:28: error: '__popcnt' was not declared in this scope 22 | if(__popcnt(i) == 4) { | ...
s636985189
p00280
C++
#include "bits/stdc++.h" #include<unordered_map> #include<unordered_set> #pragma warning(disable:4996) using namespace std; using ld = long double; template<class T> using Table = vector<vector<T>>; const ld eps=1e-9; greater < string()>; //// < "D:\D_Download\Visual Studio 2015\Projects\programing_contest_c++\Debug\a...
a.cc:11:1: error: declaration does not declare anything [-fpermissive] 11 | greater < string()>; | ^~~~~~~~~~~~~~~~~~~
s777007545
p00281
C++
#include <iostream> #include <algorithm> #include <vector> #include <queue> #include <map> #include <set> #include <cstdio> #include <cmath> #include <cstring> #include <string> #include <time.h> #include <cctype> #include <deque> #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define FFOR(i,a,b) for(int i=(a);i<=(b);i+...
a.cc: In function 'int main()': a.cc:48:17: error: reference to 'data' is ambiguous 48 | data[t].PB(pr(s, e)); | ^~~~ In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/1...
s084406817
p00281
C++
#include<iostream> #include<cstdio> #include<vector> #include<algorithm> #include<unordered_map> using namespace std; int a[10000][10000]; int main() { memset(a, 0, sizeof(a)); }
a.cc: In function 'int main()': a.cc:10:9: error: 'memset' was not declared in this scope 10 | memset(a, 0, sizeof(a)); | ^~~~~~ a.cc:6:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 5 | #include<unordered_map> +++ |+#include <c...
s259722833
p00281
C++
#include<bits/stdc++.h> using namespace std; int main(){ int n,ml,bu; cin>>n>>m; vector<int>a,b,c; int x,y,z; while(cin>>x>>y>>z,x){ a.push_back(x-1); b.push_back(y-1); c.push_back(z); } cin >> l; vector<int>d(m); for(int i=0;i<l;i++){ vector<int>co(n); for(int j=0;j<m;j++){ ...
a.cc: In function 'int main()': a.cc:5:11: error: 'm' was not declared in this scope; did you mean 'ml'? 5 | cin>>n>>m; | ^ | ml a.cc:13:10: error: 'l' was not declared in this scope 13 | cin >> l; | ^
s535169579
p00281
C++
/* ?????¢????????¨?????? 586 + 79 = 665(KiB) ??????????????????????????? */ /* ????´°??????????????§ */ #include <iostream> #include <vector> #include <cstdio> struct JobRecord { int staff; int job; int count; }; int main(void) { using namespace std; int num_of_staffs, num_of_jobs; cin >> num_of_staffs >> num_...
a.cc: In function 'int main()': a.cc:74:95: error: 'j' was not declared in this scope 74 | printf(salary != v_salary[num_of_staffs - 1] ? "%d ":"%d\n", v_salary[j]); | ^
s670946567
p00282
Java
import java.util.Scanner; import java.math.BigInteger; public class Jinkoki { public static void main(String args[]){ Scanner sc = new Scanner(System.in); String units[] = {"Man","Oku","Cho","Kei","Gai","Jo","Jou","Ko","Kan", "Sei","Sai","Gok","Ggs","Asg","Nyt","Fks","Mts...
Main.java:4: error: class Jinkoki is public, should be declared in a file named Jinkoki.java public class Jinkoki { ^ 1 error
s695607235
p00282
Java
package Jinkoki; import java.util.Scanner; import java.math.BigInteger; public class Jinkoki { public static void main(String args[]){ Scanner sc = new Scanner(System.in); String units[] = {"Man","Oku","Cho","Kei","Gai","Jo","Jou","Ko","Kan", "Sei","Sai","Gok","Ggs","Asg...
Main.java:6: error: class Jinkoki is public, should be declared in a file named Jinkoki.java public class Jinkoki { ^ 1 error
s205662504
p00282
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { String [] unit = {"","Man","Oku","Cho","Kei","Gai","Jo","Jou","Ko","Kan","Sei","Sai","Gok","Ggs","Asg","Nyt","Fks","Mts"}; Scanner sc = new Scanner(System.in); while(sc.hasNextInt()){ in...
Main.java:11: error: cannot find symbol Math.BigInteger b = valueOf(Math.pow(m,n)); ^ symbol: class BigInteger location: class Math Main.java:11: error: cannot find symbol Math.BigInteger b = valueOf(Math.pow(m,n)); ^ symbol: method valueOf(d...
s812568929
p00282
C
a[];main(n,m,i,*p){for(;scanf("%d%d",&m,&n)*n;puts(a))for(*a=1;~n--;)for(i=18;i;*p=~n?p[1]+=*p*m/1e4,*p*m%10000:*p&&!printf("%d%.3s",*p,51-i*3+"MtsFksNytAsgGgsGokSaiSeiKanKo\0JouJo\0GaiKeiChoOkuMan"))p=a+--i;}
main.c:1:1: warning: data definition has no type or storage class 1 | a[];main(n,m,i,*p){for(;scanf("%d%d",&m,&n)*n;puts(a))for(*a=1;~n--;)for(i=18;i;*p=~n?p[1]+=*p*m/1e4,*p*m%10000:*p&&!printf("%d%.3s",*p,51-i*3+"MtsFksNytAsgGgsGokSaiSeiKanKo\0JouJo\0GaiKeiChoOkuMan"))p=a+--i;} | ^ main.c:1:1: error: type de...
s737050772
p00282
C++
#include <bits/stdc++.h> using namespace std; string s[]={ "","Man","Oku","Cho","Kei","Gai","Jo","Jou","Ko","Kan","Sei","Sai","Gok","Ggs","Asg","Nyt","Fks","Mts" }; main(){ int n,m; while(cin>>m>>n,m){ int a[18]={}; a[0] for(int i=0;i<n;i++) for(int j=17;j>=0;j--){ a[j]*=m; a[j+1]+...
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:8:9: error: expected ';' before 'for' 8 | a[0] | ^ | ; 9 | for(int i=0;i<n;i++) | ~~~ a.cc:9:17: error: 'i' was ...
s602969151
p00283
C++
#include <iostream> #include <algorithm> #define INF (2 << 28) using namespace std; int d, n, dp[111][111]; int a[111], e[111], r[111]; int rec(int exp, int hp){ if(hp <= 0) return 0; int ret = INF; for(int i = 0; i < n; i++){ if(r[i] <= exp) ret = min(ret, rec(exp + e[i], hp...
a.cc: In function 'int main()': a.cc:26:9: error: 'memset' was not declared in this scope 26 | memset(dp, -1, sizeof(dp)); | ^~~~~~ a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include <algorithm> +++ |+#include <c...
s562604335
p00283
C++
import java.util.*; import static java.util.Arrays.*; import static java.util.Collections.*; import static java.lang.Math.*; public class Main { int INF = 1 << 28; int d, n; int[] a, e, r; void run() { Scanner sc = new Scanner(System.in); for (;;) { d = sc.nextInt(); n = s...
a.cc:2:1: error: 'import' does not name a type 2 | import java.util.*; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:4:1: error: 'import' does not name a type 4 | import static java.util.Arrays.*; | ^~~~~~ a.cc:4:1: note: C++20 'import' only available with '-fmodule...
s807357064
p00283
C++
#include <iostream> #include <algorithm> #define INF 100000000 using namespace std; int n; int a[101],e[101],r[101]; int dp[kai][ex]; int ans ; void saiki(int d,int ex,int kai) { if(d <= 0 && ans > kai) ans = kai; if(d > 0) { for(int i=0;i<n;i++) { if(r[i] <= ex) { saiki(d-a[i],ex+e[i],kai+1); ...
a.cc:8:8: error: 'kai' was not declared in this scope 8 | int dp[kai][ex]; | ^~~ a.cc:8:13: error: 'ex' was not declared in this scope; did you mean 'e'? 8 | int dp[kai][ex]; | ^~ | e
s209413879
p00283
C++
#include <iostream> #include <algorithm> using namespace std; int D, N, w, a[111], e[111], r[111], dp[111][111][222]; int rec(int f1, int f2, int d) { if (f1 >= D) return d; if (dp[f1][f2][d]) return dp[f1][f2][d] - 1; int ret = 999999999; for (int i = 0; i < N; i++) { if (!a[i] && (!e[i] || f2 == w)) continue; ...
a.cc: In function 'int main()': a.cc:19:32: error: invalid conversion from 'int*' to 'int' [-fpermissive] 19 | w = max_element(r, r + N); | ~~~~~~~~~~~^~~~~~~~~~ | | | int*
s002407430
p00283
C++
#include<iostream> #include<string> #include<vector> #include<set> #include<list> #include<vector> #include<algorithm> #include<cstdio> #include<unordered_map> using namespace std; struct c { int d, e, f; }; c k[100]; int a, b; int memo[101][101]; int saiki(int n, int m) {//????????????n??§????¨???????m if (memo[n][...
a.cc: In function 'int main()': a.cc:31:17: error: 'memset' was not declared in this scope 31 | memset(memo, -1, sizeof(memo)); | ^~~~~~ a.cc:10:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 9 | #include<unordered...
s882949647
p00283
C++
#include<iostream> #include<string> #include<vector> #include<set> #include<list> #include<vector> #include<algorithm> #include<cstdio> #include<unordered_map> using namespace std; struct c { int d, e, f; }; c k[100]; int a, b; int memo[101][101]; int saiki(int n, int m) {//????????????n??§????¨???????m int MIN = 1 ...
a.cc: In function 'int main()': a.cc:37:17: error: 'memset' was not declared in this scope 37 | memset(memo, -1, sizeof(memo)); | ^~~~~~ a.cc:10:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 9 | #include<unordered...
s800448939
p00283
C++
#include<bits/stdc++.h> #define mk make_pair #define f first #define s second using namespace std; int d,n,dp[10000][100010]; vector<pair<pair<int,int>,int> >v; int dfs(int p,int x){ int res=0,k=1; if(p<=0)return 0; if(dp[p][x])return dp[p][x]; for(int i=0;i<v.size();i++) if(v[i].s<=x){ if(k)k--,res=d...
/tmp/cc0ax1X8.o: in function `dfs(int, int)': a.cc:(.text+0x9b): relocation truncated to fit: R_X86_64_PC32 against symbol `v' defined in .bss section in /tmp/cc0ax1X8.o a.cc:(.text+0xcd): relocation truncated to fit: R_X86_64_PC32 against symbol `v' defined in .bss section in /tmp/cc0ax1X8.o a.cc:(.text+0xed): relocat...
s269454285
p00283
C++
#include<bits/stdc++.h> #define mk make_pair #define f first #define s second using namespace std; int d,n,dp[110][1000]; vector<pair<pair<int,int>,int> >v; int dfs(int p,int x,int q){ int res=0,k=1; if(x>=1000&&p==q)return 10000000; if(p<=0)return 0; if(dp[p][x])return dp[p][x]; for(int i=0;i<v.size();i++) ...
a.cc: In function 'int main()': a.cc:31:24: error: expected '}' at end of input 31 | else cout<<p<<endl; | ^ a.cc:21:21: note: to match this '{' 21 | while(cin>>d>>n,d){ | ^ a.cc:31:24: error: expected '}' at end of input 31 | else cout<<p<<endl;...
s627024529
p00283
C++
#include<bits/stdc++.h> #define mk make_pair #define f first #define s second using namespace std; int d,n,s; vector<pair<pair<int,int>,int> >v; void dfs(int p,int x,int t){ if(t>=s)return; if(p<0){s=t;return;} if(x>10000)return; for(int i=0;i<v.size();i++) if(v[i].s<=x)dfs(p-v[i].f.f,x+v[i].f.s,t+1); } int...
a.cc: In function 'int main()': a.cc:17:12: error: 'dp' was not declared in this scope; did you mean 'dup'? 17 | memset(dp,0,sizeof(dp)); | ^~ | dup
s228437105
p00283
C++
#include<bits/stdc++.h> #define mk make_pair #define f first #define s second using namespace std; int d,n,s; vector<pair<pair<int,int>,int> >v; void dfs(int p,int x,int t){ if(t>=s)return; if(p<0){s=t;return;} if(x>10000)return; for(int i=v.size()-1;i>=0;i--) if(v[i].s<=x)dfs(p-v[i].f.f,x+v[i].f.s,t+1); } ...
a.cc: In function 'int main()': a.cc:17:12: error: 'dp' was not declared in this scope; did you mean 'dup'? 17 | memset(dp,0,sizeof(dp)); | ^~ | dup
s940459315
p00283
C++
#include<bits/stdc++.h> #define mk make_pair #define f first #define s second using namespace std; int d,n,dp[110][100000]; vector<pair<pair<int,int>,int> >v; int dfs(int p,int x,int t){ int res=0,k=1; if(t>=100)return 10000000; if(p<=0)return 0; if(dp[p][x])return dp[p][x]; for(int i=0;i<v.size();i++) if...
a.cc: In function 'int main()': a.cc:29:46: error: 'in' was not declared in this scope; did you mean 'yn'? 29 | sort(v.begin(),v.end(),greater<pair<pair<in,int>,int> >()); | ^~ | yn a.cc:29:52: error: template a...
s726631707
p00283
C++
#include<bits/stdc++.h> #define mk make_pair #define f first #define s second using namespace std; int d,n,dp[110]; vector<pair<pair<int,int>,int> >v; int dfs(int p,int x,int t){ int res=0; if(t>=100)return 10000000; if(p<=0)return 0; if(dp[p])return dp[p]; for(int i=0;i<v.size();i++) if(v[i].s<=x){ ...
a.cc: In function 'int dfs(int, int, int)': a.cc:15:10: error: 'k' was not declared in this scope 15 | if(k)k--,res=dfs(p-v[i].f.f,x+v[i].f.s,t+1)+1; | ^
s617941184
p00283
C++
require 'set' def bfs(start_node, extra = nil) return 0 if start_node.is_goal?(extra) reached = Set[start_node] dist = 1 queue = [start_node] until queue.empty? next_queue = [] until queue.empty? node = queue.shift node.each_next_node(extra) do |next_node| ...
a.cc:1:9: warning: multi-character character constant [-Wmultichar] 1 | require 'set' | ^~~~~ a.cc:43:16: error: too many decimal points in number 43 | weapons = (1..n).map { gets.split.map(&:to_i) } | ^~~~ a.cc:46:6: error: too many decimal points in number 46 | (0....
s575075284
p00284
Java
??import java.util.*; class Main { public static void main(String... args) { final Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); for (int i = 0; i < N; i++) { final int a = sc.nextInt(); final int b = sc.nextInt(); System.out.println(In...
Main.java:1: error: class, interface, enum, or record expected ??import java.util.*; ^ 1 error
s720663470
p00284
Java
??import java.util.*; public class Main { public static void main(String... args) { final Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); for (int i = 0; i < N; i++) { final int a = sc.nextInt(); final int b = sc.nextInt(); System.out.pri...
Main.java:1: error: class, interface, enum, or record expected ??import java.util.*; ^ 1 error
s582187083
p00284
Java
public static void main(String[] args) { // TODO ????????????????????????????????????????????? // ?¨??????\??????????????????????????????Scanner???????????§?????????????????? Scanner sc = new Scanner(System.in); // int ???????????????????????? int n = sc.nextInt(); for(int i=0...
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
s231061346
p00284
C
main(){ int n,m; scanf("%d%d",&n,&m); if(n*m<0)printf("%d\n",__builtin_popcnt(-n)+__builtin_popcnt(m)); else printf("%d\n",__builtin_popcnt(m-n)); exit(0); }
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){ | ^~~~ main.c: In function 'main': main.c:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | scanf("%d%d",&n,&m); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declarati...
s393394859
p00284
C
main(){ int t,n,m; for(scanf("%d",&t);t--;){ scanf("%d%d",&n,&m); if(n*m<0)printf("%d\n",__builtin_popcount(-n)+__builtin_popcount(m)); else{if(m<0)m=-m;if(n<0)n=-n;printf("%d\n",__builtin_popcount(m^n)); } exit(0); }
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){ | ^~~~ main.c: In function 'main': main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | for(scanf("%d",&t);t--;){ | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a ...
s365948615
p00284
C
main(){ int t,n,m,l; for(scanf("%d",&t);t--;){ scanf("%d%d",&n,&m); if(n*m<0)printf("%d\n",__builtin_popcount(-n)+__builtin_popcount(m)); else{l=if(m<0)m=-m;if(n<0)n=-n;printf("%d\n",__builtin_popcount(n-(n^m))+__builtin_popcount(m-(n^m)));} } exit(0); }
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){ | ^~~~ main.c: In function 'main': main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | for(scanf("%d",&t);t--;){ | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a ...
s598803406
p00284
C++
#include<bits/stdc++.h> using namespace std; int s, d; bool check(int train,int n){ if(!train) return true; int shift = pow(2,train); if(n + shift > d) return false; rep(i,32){ if(abs(n) & (1<<i)){ if(i && (1<<i) % shift == 0) return true; else return false; } } return true; } int cnt(in...
a.cc: In function 'bool check(int, int)': a.cc:8:7: error: 'i' was not declared in this scope 8 | rep(i,32){ | ^ a.cc:8:3: error: 'rep' was not declared in this scope 8 | rep(i,32){ | ^~~
s542787729
p00284
C++
int s, d; bool check(int train,int n){ if(!train) return true; int shift = pow(2,train); if(n + shift > d) return false; for(int i = 0; i < 32; i++){ if(abs(n) & (1<<i)){ if(i && (1<<i) % shift == 0) return true; else return false; } } return true; } int cnt(int no){ int i = 0; while...
a.cc: In function 'bool check(int, int)': a.cc:4:15: error: 'pow' was not declared in this scope 4 | int shift = pow(2,train); | ^~~ a.cc:7:8: error: 'abs' was not declared in this scope 7 | if(abs(n) & (1<<i)){ | ^~~ a.cc: In function 'int solve(int, int)': a.cc:22:12: er...
s394488627
p00284
C++
#include <iostream> #include <string> #include <algorithm> #include <cmath> #include <vector> #include <cstdio> #include <Windows.h> #include "MT.h" using namespace std; #define int long long int solve(int s, int d) { int ret = abs(s)%2 + abs(d)%2; if (s == d) return 0; s += abs(s)%2; d -= abs(d)%2...
a.cc:7:10: fatal error: Windows.h: No such file or directory 7 | #include <Windows.h> | ^~~~~~~~~~~ compilation terminated.
s482946714
p00284
C++
#include <stdio.h> #include<iostream> #include<math.h> using namespace std; int choise(int s, int d); int main(void) { cin.tie(0); ios::sync_with_stdio(false); int N,M,a; int s; int d; cin >> N; for (int i=0; i < N; i++) { cin >> s; cin >> d; count = 0; choise(s,d); } } int choise(int s,i...
a.cc: In function 'int main()': a.cc:26:9: error: 'count' was not declared in this scope 26 | count = 0; | ^~~~~ a.cc: In function 'int choise(int, int)': a.cc:58:15: warning: control reaches end of non-void function [-Wreturn-type] 58 | choise(s + ans, d); | ~~~~~~^~~~...
s867191025
p00284
C++
#include<bits/stdc++.h> #define int long long #define MOD 1000000007 #define INF 0x3f3f3f3f #define INFL 0x3f3f3f3f3f3f3f3f #define EPS (1e-10) #define rep(i,n)for(int i=0;i<n;i++) using namespace std; typedef long long ll; typedef pair<int, int>P; int dfs(int s, int g) { if (s == g)return 0; int n = 1; while ((g /...
a.cc: In function 'long long int dfs(long long int, long long int)': a.cc:15:61: error: expected primary-expression before '/' token 15 | while ((g / n + (g < 0 && g%n != 0))*n - (s / n)*n) / n > 0)n <<= 1; n >>= 1; | ^
s715757056
p00284
C++
#include<bits/stdc++.h> #define int long long using namespace std; int main(){ int a; cin>>a; for(int b=0;b<a;b++){ int c,d;cin>>c>>d; int i=0; for(;c!=d;i++){ for(int j=1;;j<<=1){ if(j>d-c){c+=j/2;break;} } } cout<<i<<endl; } }
cc1plus: error: '::main' must return 'int'
s656485964
p00284
C++
#include <iostream> #include <intrin.h> #include <assert.h> using namespace std; int main() { int N; cin >> N; for (int i = 0; i < N; ++i) { int s, d; cin >> s >> d; if (s <= 0 && d >= 0) { cout << __popcnt(-s) + __popcnt(d) << endl; } else if (s < 0 && d < 0) { cout << __popcnt((-s) ^ (-d)) <<...
a.cc:2:10: fatal error: intrin.h: No such file or directory 2 | #include <intrin.h> | ^~~~~~~~~~ compilation terminated.
s220603895
p00285
C++
#include<bits/stdc++.h> using namespace std; int m, w; int bm[22], bw[22]; int memo[22][1<<13]; int e(int i, int j){ int p = abs(bm[i] - bw[j]); return p * (p-30) * (p-30); } int solve(int cntm, int bitw){ if(~memo[cntm][bitw]) return memo[cntm][bitw]; if(cntm == m) return 0; int ret = 0; for(int i...
a.cc: In function 'int solve(int, int)': a.cc:25:24: error: 'cnt' was not declared in this scope; did you mean 'cntm'? 25 | ret = max(ret, solve(cnt+1, bitw)); | ^~~ | cntm
s099372378
p00285
C++
#include <iostream> #include <algorithm> using namespace std; int n, m, a[12], b[12], dp[1 << 12]; int main() { cin >> n >> m; for (int i = 0; i < n; i++) cin >> a[i]; for (int i = 0; i < m; i++) cin >> b[i]; if (n < m) swap(n, m), swap(a, b); for (int i = 1; i < (1 << n); i++) { int r = __builtin_popcount(i); ...
a.cc: In function 'int main()': a.cc:20:41: error: invalid operands of types 'int*' and 'int' to binary 'operator<<' 20 | cout << *max_element(dp, dp + 1 << n) << endl; | ~~~~~~ ^~ ~ | | | | ...
s261165749
p00286
C++
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; typedef vector<int> vec; vec Add(vec,vec); vec Power(vec,int); vec Formula(); vec Ar(); vec v[27]; string s; int n,p; int main(){ int k,h,a; char c; cin>>n>>k; while(k--){ cin>>c>>h; for(int i=0;i<n;i++) ...
a.cc:93:5: error: redefinition of 'vec v [27]' 93 | vec v[27]; | ^ a.cc:12:5: note: 'vec v [27]' previously declared here 12 | vec v[27]; | ^ a.cc:94:8: error: redefinition of 'std::string s' 94 | string s; | ^ a.cc:13:8: note: 'std::string s' previously declared here 13 | s...
s301014497
p00287
C++
#include <bits/stdc++.h> using namespace std; #define pb push_back #define lb lower_bound #define all(v) (v).begin(), (v).end() #define at(a, b) get<b>(a) typedef pair<int, int> PR; typedef tuple<int, int, int> TP; const int INF = 1 << 28; const int dx[] = {-1, 0, 1, 0}; const int dy[] = {0, -1, 0, 1}; struct UnionFin...
a.cc: In function 'int main()': a.cc:231:25: error: expected primary-expression before ')' token 231 | ){ | ^ a.cc:248:25: error: expected primary-expression before ')' token 248 | ){ | ^ a.cc: In member func...
s982232900
p00287
C++
#include <stdio.h> #include <vector> #include <iostream> #include <string> #include <algorithm> #include <deque> #include <tuple> using namespace std; #define FOR(i,n) for(int i = 0; i < (n); i++) #define sz(c) ((int)c.size()) typedef pair<int, int> Pii; void compress(vector<int>& v) { sort(v.begin(), v.end()); ...
a.cc: In function 'int solve(Pii, Pii)': a.cc:27:9: error: 'memset' was not declared in this scope 27 | memset(cost, 0x1f, sizeof(cost)); | ^~~~~~ a.cc:7:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 6 | #include <deque> +++ |+...
s455666219
p00287
C++
#include<bits/stdc++.h> using namespace std; typedef pair<long long,long long>P; long long w,h,m; long long dotti=0; vector<long long> xv,yv; int masu[501][501]={0}; long long X1[105],X2[105],Y1[105],Y2[105]; long long dx[4]={0,1,0,-1}; long long dy[4]={1,0,-1,0}; long long check[501][501]={0}; vector<long long> node[5...
a.cc:15:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 15 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:83:12: error: 'sx' was not declared in this scope; did you mean 'dx'? 83 | cin>>sx>>sy>>gx>>gy; | ^~ | dx a.cc:83:16: error:...
s171685775
p00287
C++
#include<bits/stdc++.h> using namespace std; typedef pair<long long,long long>P; long long w,h,m; long long dotti=0; vector<long long> xv,yv; int masu[501][501]={0}; long long X1[105],X2[105],Y1[105],Y2[105]; long long dx[4]={0,1,0,-1}; long long dy[4]={1,0,-1,0}; long long check[501][501]={0}; vector<long long> node[5...
a.cc:15:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 15 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:101:14: error: no matching function for call to 'max(int, __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >::difference_type)' 101 | sx...
s028237723
p00287
C++
#include<bits/stdc++.h> #define f first #define s second #define mk make_pair #define P pair<int,int> using namespace std; int w,h,m,sx,sy,gx,gy; vector<pair<P,P> >v; vector<int>ax,ay; map<int,int>mx,my; map<P,int>qx,qy; int a[401][401],ppp; int dx[]={0,0,1,-1}; int dy[]={1,-1,0,0}; int ddx[]={2,0,0,-2}; int ddy[]={0,2...
a.cc:18:15: error: expected initializer before numeric constant 18 | bool used[605]605]; | ^~~ a.cc: In function 'void graphmaker(int, int)': a.cc:60:3: error: 'used' was not declared in this scope 60 | used[y][x]=1; | ^~~~ a.cc: In function 'int main()': a.cc:100:12: error: 'used' w...
s658021261
p00287
C++
#include<bits/stdc++.h> #define f first #define s second #define mk make_pair #define P pair<int,int> using namespace std; int w,h,m,sx,sy,gx,gy; vector<pair<P,P> >v; vector<int>ax,ay; map<int,int>mx,my; map<P,int>qx,qy; int a[1001][1001],ppp; int dx[]={0,0,1,-1}; int dy[]={1,-1,0,0}; int ddx[]={2,0,0,-2}; int ddy[]={0...
a.cc: In function 'void Grip()': a.cc:25:23: error: 'I' was not declared in this scope 25 | qx[mk(pre,pp)]=ax[I]-1; | ^ a.cc:33:23: error: 'I' was not declared in this scope 33 | qy[mk(pre,pp)]=ay[I]-1; | ^ a.cc: In function 'int main()': a.cc:126:23...
s600733248
p00287
C++
#include<bits/stdc++.h> #define f first #define s second #define mk make_pair #define P pair<int,int> using namespace std; int w,h,m,sx,sy,gx,gy; vector<pair<P,P> >v; vector<int>ax,ay; map<int,int>mx,my; map<P,int>qx,qy; int a[1001][1001],ppp; int dx[]={0,0,1,-1}; int dy[]={1,-1,0,0}; int ddx[]={2,0,0,-2}; int ddy[]={0...
a.cc: In function 'int main()': a.cc:126:23: error: 'gxx' was not declared in this scope; did you mean 'gx'? 126 | else if(a[gy][gx+1]<0)gxx++; | ^~~ | gx
s082195237
p00288
C++
#include <stdio.h> #include <vector> #include <iostream> #include <string> #include <algorithm> #include <deque> #include <tuple> #include <cstring> #include <functional> #include <queue> using namespace std; #define FOR(i,n) for(int i = 0; i < (n); i++) #define sz(c) ((int)c.size()) typedef pair<int, int> Pii; usi...
a.cc: In function 'int main()': a.cc:165:9: error: expected primary-expression before '}' token 165 | } | ^
s662204142
p00288
C++
#include<bits/stdc++.h> using namespace std; typedef pair<int,int> P; struct edge { int to,cap,cost,rev; }; int N,M,B; int ax[100],ay[100]; int bx[5],by[5]; int c[5],d[5]; int g[100][5]; int h[200],dist[200]; vector<edge> G[200]; int prevv[200],preve[200]; int INF = 1e8; void init_edge(){ for(int i=0;i<200;i++)G[i]...
a.cc: In function 'int main()': a.cc:128:9: error: redeclaration of 'int X' 128 | int X=INF; | ^ a.cc:120:9: note: 'int X' previously declared here 120 | int X=INF; | ^
s018301341
p00289
C++
#define EQ(a,b) (fabs((a)-(b)) < EPS) #define MAX_N 100000 #define MAX_M 300000 int main(){ int n, m; cin >> n >> m; vector<pair<int, int> > e; for (int i = 0; i < m; ++i) { int s, t; cin >> s >> t; e.push_back(make_pair(t, s)); } sort(e.begin(), e.end()); int ret[MAX_N + 1] = {}; int j = 0; for (int i...
a.cc: In function 'int main()': a.cc:8:9: error: 'cin' was not declared in this scope 8 | cin >> n >> m; | ^~~ a.cc:9:9: error: 'vector' was not declared in this scope 9 | vector<pair<int, int> > e; | ^~~~~~ a.cc:9:16: error: 'pair' was not declared in this scope ...
s338091591
p00290
Java
public class AOJ0295{public static void main(String[] a){java.util.Scanner s=new java.util.Scanner(System.in);System.out.println(s.nextInt()*s.nextInt());}}
Main.java:1: error: class AOJ0295 is public, should be declared in a file named AOJ0295.java public class AOJ0295{public static void main(String[] a){java.util.Scanner s=new java.util.Scanner(System.in);System.out.println(s.nextInt()*s.nextInt());}} ^ 1 error
s036473262
p00290
Java
import java.util.Scanner; public class Mon1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int d = sc.nextInt(); int c = sc.nextInt(); System.out.println(d*c); } }
Main.java:2: error: class Mon1 is public, should be declared in a file named Mon1.java public class Mon1 { ^ 1 error
s570123104
p00290
Java
public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int table = stdin.nextInt(); int chairs = stdin.nextInt(); System.out.println(table * chairs); } }
Main.java:6: error: cannot find symbol Scanner stdin = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner stdin = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s203693730
p00290
C
#include <stdio.h> int main(void){ int a,b; scanf("%d%d", &a, &b); printf("%d\n",aB; ); return 0; }
main.c: In function 'main': main.c:6:15: error: 'aB' undeclared (first use in this function); did you mean 'a'? 6 | printf("%d\n",aB; ); | ^~ | a main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in main.c:6:17: error: expected '...
s881036898
p00290
C
#include<stdio.h> int main { int c,d; scanf("%d %d",&c,&d); c=c*d; printf("%d",c); return 0; }
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 3 | { | ^
s824265539
p00290
C
#include<stdio.h> int main(void){ int i,a,b; scanf("%d%d"&a,&b); i=a*b; printf("%d\n",i); }
main.c: In function 'main': main.c:4:16: error: invalid operands to binary & (have 'char *' and 'int') 4 | scanf("%d%d"&a,&b); | ~~~~~~^ | | | char *
s058070290
p00290
C
#include<stdio.h> int main(void){ int i,a,b; scanf("%d%d"&a,&b); i=a*b; printf("%d\n",i); }
main.c: In function 'main': main.c:4:16: error: invalid operands to binary & (have 'char *' and 'int') 4 | scanf("%d%d"&a,&b); | ~~~~~~^ | | | char *
s641633699
p00290
C
#include <stdio.h> int main(void) { int d=<100; int c=<10; scanf("%d %d",&d,&c); d=d*c; printf("%d\n",d); // your code goes here return 0; }
main.c: In function 'main': main.c:4:15: error: expected expression before '<' token 4 | int d=<100; | ^ main.c:5:15: error: expected expression before '<' token 5 | int c=<10; | ^
s690483857
p00290
C
#include <stdio.h> int main(void) { int d<101; int c<11; scanf("%d %d",&d,&c); d=d*c; printf("%d\n",d); // your code goes here return 0; }
main.c: In function 'main': main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 4 | int d<101; | ^ main.c:4:14: error: expected expression before '<' token main.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 5 | ...
s846552659
p00290
C
#include <stdio.h> int main(void) { int d,c; scanf("%d %d",&d,&c); printf("%d",d*c\n); return 0; }
main.c: In function 'main': main.c:6:24: error: stray '\' in program 6 | printf("%d",d*c\n); | ^ main.c:6:24: error: expected ')' before 'n' 6 | printf("%d",d*c\n); | ~ ^~ | )
s806109831
p00290
C
#include <stdio.h> int main(void) { int d,c; scanf("%d %d",&d,&c); printf("%d",d*c\n); return 0; }
main.c: In function 'main': main.c:6:24: error: stray '\' in program 6 | printf("%d",d*c\n); | ^ main.c:6:24: error: expected ')' before 'n' 6 | printf("%d",d*c\n); | ~ ^~ | )
s540241249
p00290
C
#include <stdio.h> int main(void) { int d[99]; int c[9]; scanf("%d %d",&d,&c); d=d*c; printf("%d\n",d); // your code goes here return 0; }
main.c: In function 'main': main.c:7:12: error: invalid operands to binary * (have 'int *' and 'int *') 7 | d=d*c; | ~^ | || | |int * | int *
s862736316
p00290
C
#include<stdio.h> int main(void) { int chair,table; scanf("%d %d",&chair,&table); printf("%d\n"chair*table); return 0; }
main.c: In function 'main': main.c:8:16: error: expected ')' before 'chair' 8 | printf("%d\n"chair*table); | ~ ^~~~~ | )
s497623233
p00290
C
#include<iostream> using namespace std; int main () { int d, c; cin >>d >> c; int sosu=d*c; cout<<d*c<<end|; return 0; }
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s853576945
p00290
C
clude<iostream> using namespace std; int main () { int d, c#in; cin >>d >> c; int sosu=d*c; cout<<d*c<<endl; return 0; }
main.c:1:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | clude<iostream> | ^ main.c: In function 'main': main.c:7:17: error: stray '#' in program 7 | int d, c#in; | ^ main.c:7:18: error: expected '=', ',', ';', 'asm' or '__attribute__' bef...
s443259446
p00290
C
#include<stdio.h> int main(void) { int d, c; scanf_s("%d %d", &d, &c); printf("%d", d*c); return 0; }
main.c: In function 'main': main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 4 | scanf_s("%d %d", &d, &c); | ^~~~~~~ | scanf
s676449350
p00290
C
#include<stdio.h> int main(void) { int a, b; scanf_s("%d %d", &a, &b); printf("%d", a * b); return 0; }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 6 | scanf_s("%d %d", &a, &b); | ^~~~~~~ | scanf
s539982868
p00290
C
#include<stdio.h> int main(void){ int d,c; scanf("%d%d",&d,&c); printf("%d\n",d*c); return 0: }
main.c: In function 'main': main.c:8:13: error: expected ';' before ':' token 8 | return 0: | ^ | ;
s936010095
p00290
C++
#include <iostream> using namespace std; int main(){ int d.c; cin>>d>>c; cout<<d*2=c<<endl: }
a.cc: In function 'int main()': a.cc:4:6: error: expected initializer before '.' token 4 | int d.c; | ^ a.cc:5:9: error: 'd' was not declared in this scope 5 | cin>>d>>c; | ^ a.cc:5:12: error: 'c' was not declared in this scope 5 | cin>>d>>c; | ^
s546991794
p00290
C++
#include <iostream> using namespace std; int main(){ int d.c; cin>>d>>c; cout<<d*2="c"<<endl: }
a.cc: In function 'int main()': a.cc:4:6: error: expected initializer before '.' token 4 | int d.c; | ^ a.cc:5:9: error: 'd' was not declared in this scope 5 | cin>>d>>c; | ^ a.cc:5:12: error: 'c' was not declared in this scope 5 | cin>>d>>c; | ^ a.cc:6:17: er...
s844988351
p00290
C++
#include <iostream> using namespace std; int main(){ int d.c; cin>>d>>c; cout<<d*2=c<<endl: }
a.cc: In function 'int main()': a.cc:4:6: error: expected initializer before '.' token 4 | int d.c; | ^ a.cc:5:9: error: 'd' was not declared in this scope 5 | cin>>d>>c; | ^ a.cc:5:12: error: 'c' was not declared in this scope 5 | cin>>d>>c; | ^
s121341156
p00290
C++
#include <iostream> using namespace std; int main(){ int d,c; cin>>d>>c; cout<<d*2=c<<endl: }
a.cc: In function 'int main()': a.cc:6:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 6 | cout<<d*2=c<<endl: | ~^~~~~~
s606607832
p00290
C++
#include <iostream> using namespace std; int main(){ int d,c; cin>>d>>c; cout<<d*c<<endl: }
a.cc: In function 'int main()': a.cc:6:19: error: expected ';' before ':' token 6 | cout<<d*c<<endl: | ^ | ;
s965950230
p00290
C++
#include<cstdio> int main(){ int a,b; scanf("%d%d",&a,&b); paintf("%d\n",a*b); return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'paintf' was not declared in this scope; did you mean 'printf'? 5 | paintf("%d\n",a*b); | ^~~~~~ | printf
s346537693
p00290
C++
n;main(m){scanf("%d%d",&n,&m);n*=m;!vprintf("%d\n",&n);exit(0);}
a.cc:1:1: error: 'n' does not name a type 1 | n;main(m){scanf("%d%d",&n,&m);n*=m;!vprintf("%d\n",&n);exit(0);} | ^ a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token 1 | n;main(m){scanf("%d%d",&n,&m);n*=m;!vprintf("%d\n",&n);exit(0);} | ^
s815117530
p00290
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ int d,c; cin >> d >> c; cout << d * c << end }
a.cc: In function 'int main()': a.cc:9:23: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 9 | cout << d * c << end | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/iostream:41, from a....
s301450057
p00290
C++
#include <stdio.h> int main(void){ int a,b; scanf("%d%d", &a, &b); printf("%d\n",aB; ); return 0; }
a.cc: In function 'int main()': a.cc:6:15: error: 'aB' was not declared in this scope; did you mean 'a'? 6 | printf("%d\n",aB; ); | ^~ | a a.cc:6:19: error: expected primary-expression before ')' token 6 | printf("%d\n",aB; ); | ^
s042642193
p00290
C++
#include <iostream> #include <stdio> using namespace std; int main() { int a, b; scanf("%d%d", &a, &b); cout << a * b<< endl; return 0; }
a.cc:2:10: fatal error: stdio: No such file or directory 2 | #include <stdio> | ^~~~~~~ compilation terminated.
s453970133
p00290
C++
w#define _CRT_SECURE_NO_WARNINGS //#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; //#define int ll //#define endl "\n" typedef vector<int> vi; typedef vector<vi> vvi; typedef pair<int,int> pii; #define all(c) (c).begin(), (c).end() #define loop(i,a,b) for(ll i=a; i<ll(b); i++...
a.cc:1:2: error: stray '#' in program 1 | w#define _CRT_SECURE_NO_WARNINGS | ^ a.cc:1:1: error: 'w' does not name a type 1 | w#define _CRT_SECURE_NO_WARNINGS | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, ...
s356350760
p00290
C++
#include <iostream> using namespace std; int main() { cin >> a >> b; cout << a * b << endl; }
a.cc: In function 'int main()': a.cc:6:12: error: 'a' was not declared in this scope 6 | cin >> a >> b; | ^ a.cc:6:17: error: 'b' was not declared in this scope 6 | cin >> a >> b; | ^
s130614626
p00290
C++
#include <iostream int main(){ int n, m; std::cin >> n >> m; std::cout << n * m << std::endl; }
a.cc:1:19: error: missing terminating > character 1 | #include <iostream | ^