submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s718229449
p00290
C++
#include<iostream> int main(){ int d,c; std::cin>>d>>c; std::cout<<d*c<<std;;endl; return 0; }
a.cc: In function 'int main()': a.cc:5:24: error: expected primary-expression before ';' token 5 | std::cout<<d*c<<std;;endl; | ^ a.cc:5:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 5 | std::cout<<d*c<<std;;endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s364235956
p00290
C++
#include<?ostream> int main(){ int a,b; std::cin>>a>>b; std::cout<<a*b<<std::endl; return 0; }
a.cc:1:9: fatal error: ?ostream: No such file or directory 1 | #include<?ostream> | ^~~~~~~~~~ compilation terminated.
s994911958
p00290
C++
#include<iostream> using namespace std; int main(){ int c,d; cin>&#265;>d; cout<<c*d<<endl; return 0; }
a.cc:5:6: error: stray '#' in program 5 | cin>&#265;>d; | ^ a.cc: In function 'int main()': a.cc:5:7: error: lvalue required as unary '&' operand 5 | cin>&#265;>d; | ^~~ a.cc:5:11: error: expected primary-expression before '>' token 5 | cin>&#265;>d; | ^
s446922596
p00290
C++
#include <cstdio> int main{ int a,b; scanf("%d %d",&a,&b); printf("%d\n",a*b); return 0; }
a.cc:2:5: error: cannot declare '::main' to be a global variable 2 | int main{ | ^~~~ a.cc:3:3: error: expected primary-expression before 'int' 3 | int a,b; | ^~~ a.cc:3:3: error: expected '}' before 'int' a.cc:2:9: note: to match this '{' 2 | int main{ | ^ a.cc:4:8: error: expected constructor, destructor, or type conversion before '(' token 4 | scanf("%d %d",&a,&b); | ^ a.cc:5:9: error: expected constructor, destructor, or type conversion before '(' token 5 | printf("%d\n",a*b); | ^ a.cc:6:3: error: expected unqualified-id before 'return' 6 | return 0; | ^~~~~~ a.cc:7:1: error: expected declaration before '}' token 7 | } | ^
s770458131
p00290
C++
#include <cstdio> using namespace std; int mein(void) { int a, b; scanf("%d %d", &a, &b); printf("%d\n", a * b); }
a.cc: In function 'int mein()': a.cc:12:1: warning: no return statement in function returning non-void [-Wreturn-type] 12 | } | ^ /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
s628248217
p00290
C++
d,c=gets.split.map(&:to_i) puts "#{d*c}"
a.cc:1:1: error: 'd' does not name a type 1 | d,c=gets.split.map(&:to_i) | ^
s755403947
p00290
C++
#include<iostream> using namespace std; int main(){ int c,d; cin>>c>>d; cout<<c*d<<endl; retrun 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'retrun' was not declared in this scope 7 | retrun 0; | ^~~~~~
s851093490
p00290
C++
#include<iostream> using namespace std; int main(){ int d,c; cin>>d>>c>>; cout<<d*c<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:15: error: expected primary-expression before ';' token 6 | cin>>d>>c>>; | ^
s092987086
p00290
C++
include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a*b<<endl; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:7:1: error: 'cin' was not declared in this scope 7 | cin>>a>>b; | ^~~ a.cc:8:1: error: 'cout' was not declared in this scope 8 | cout<<a*b<<endl; | ^~~~ a.cc:8:12: error: 'endl' was not declared in this scope 8 | cout<<a*b<<endl; | ^~~~
s373474534
p00290
C++
include<iostream> using namespace std; int main(){ int d,c; cin>>d>>c; cout<<d*c<<endl; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:7:1: error: 'cin' was not declared in this scope 7 | cin>>d>>c; | ^~~ a.cc:8:1: error: 'cout' was not declared in this scope 8 | cout<<d*c<<endl; | ^~~~ a.cc:8:12: error: 'endl' was not declared in this scope 8 | cout<<d*c<<endl; | ^~~~
s624535182
p00290
C++
#include<stdio.h> int main(void) { int a,b,z; scanf("%d %d",&a,&); z=a*b; printf("%d\n",z); return 0; }
a.cc: In function 'int main()': a.cc:5:27: error: expected primary-expression before ')' token 5 | scanf("%d %d",&a,&); | ^
s283018899
p00290
C++
//#define _GRIBCXX_DEBUG #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <iomanip> #include <list> #include <map> #include <memory> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; // ?????¬???????????¬?????? #pragma region MACRO #define P(x) cout << (x) << endl #define p(x) cout << (x) #define PED cout << "\n" #define rep(i,n) for(int i=0; i<(int)n; ++i) #define REP(i,x,n) for(int i=x; i<(int)n; ++i) #define repi(i,n) for(int i=0; i<=(int)n; ++i) #define REPI(i,x,n) for(int i=x; i<=(int)n; ++i) #define ILP while(true) #define FOR(i,c) for(__typeof((c).begin())!=(c).begin(); i!=(c).end(); ++i) #define ALL(c) (c).begin(), (c).end() #define mp make_pair #pragma endregion // ??? #pragma region TYPE_DEF typedef long long ll; typedef pair<int, int> pii; typedef pair<string, string> pss; typedef pair<string, int> psi; typedef pair<int, string> pis; typedef vector<int> vi; typedef vector<double> vd; typedef vector<long> vl; typedef vector<long long> vll; typedef vector<string> vs; #pragma endregion // Effective std #pragma region ESTD template<typename C, typename T> constexpr int count(C& c, T t) { return count(ALL(c), t); } template<typename C, typename F> constexpr int count_if(C& c, F f) { return count_if(ALL(c), f); } template<typename C, typename T> void erase(C& c, T t) { remove(ALL(c), t), c.end(); } template<typename C> void remove(vector<C>& c, unsigned int index) { c.erase(c.begin()+index); } template<typename C, typename T, typename U> constexpr void replace(C& c, T t, U u) { replace(ALL(c), t, u); } template<typename C, typename F, typename U> constexpr void replace_if(C& c, F f, U u) { (ALL(c), f, u); } template<typename C> constexpr void reverse(C& c) { reverse(ALL(c)); } template<typename C> constexpr void sort(C& c) { sort(ALL(c)); } template<typename C, typename Pred> constexpr void sort(C& c, Pred p) { sort(ALL(c), p); } #pragma endregion // ?????° #pragma region CONST_VAL #define PI (2*acos(0.0)) #define EPS (1e-9) #define MOD (int)(1e9+7) #pragma endregion int main() { int a, b; cin >> a >> b; P(a*b); return 0; } //#define _GRIBCXX_DEBUG #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <iomanip> #include <list> #include <map> #include <memory> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; // ?????¬???????????¬?????? #pragma region MACRO #define P(x) cout << (x) << endl #define p(x) cout << (x) #define PED cout << "\n" #define rep(i,n) for(int i=0; i<(int)n; ++i) #define REP(i,x,n) for(int i=x; i<(int)n; ++i) #define repi(i,n) for(int i=0; i<=(int)n; ++i) #define REPI(i,x,n) for(int i=x; i<=(int)n; ++i) #define ILP while(true) #define FOR(i,c) for(__typeof((c).begin())!=(c).begin(); i!=(c).end(); ++i) #define ALL(c) (c).begin(), (c).end() #define mp make_pair #pragma endregion // ??? #pragma region TYPE_DEF typedef long long ll; typedef pair<int, int> pii; typedef pair<string, string> pss; typedef pair<string, int> psi; typedef pair<int, string> pis; typedef vector<int> vi; typedef vector<double> vd; typedef vector<long> vl; typedef vector<long long> vll; typedef vector<string> vs; #pragma endregion // Effective std #pragma region ESTD template<typename C, typename T> constexpr int count(C& c, T t) { return count(ALL(c), t); } template<typename C, typename F> constexpr int count_if(C& c, F f) { return count_if(ALL(c), f); } template<typename C, typename T> void erase(C& c, T t) { remove(ALL(c), t), c.end(); } template<typename C> void remove(vector<C>& c, unsigned int index) { c.erase(c.begin()+index); } template<typename C, typename T, typename U> constexpr void replace(C& c, T t, U u) { replace(ALL(c), t, u); } template<typename C, typename F, typename U> constexpr void replace_if(C& c, F f, U u) { (ALL(c), f, u); } template<typename C> constexpr void reverse(C& c) { reverse(ALL(c)); } template<typename C> constexpr void sort(C& c) { sort(ALL(c)); } template<typename C, typename Pred> constexpr void sort(C& c, Pred p) { sort(ALL(c), p); } #pragma endregion // ?????° #pragma region CONST_VAL #define PI (2*acos(0.0)) #define EPS (1e-9) #define MOD (int)(1e9+7) #pragma endregion int main() { int a, b; cin >> a >> b; P(a*b); return 0; }
a.cc:154:15: error: redefinition of 'template<class C, class T> constexpr int count(C&, T)' 154 | constexpr int count(C& c, T t) { return count(ALL(c), t); } | ^~~~~ a.cc:60:15: note: 'template<class C, class T> constexpr int count(C&, T)' previously declared here 60 | constexpr int count(C& c, T t) { return count(ALL(c), t); } | ^~~~~ a.cc:156:15: error: redefinition of 'template<class C, class F> constexpr int count_if(C&, F)' 156 | constexpr int count_if(C& c, F f) { return count_if(ALL(c), f); } | ^~~~~~~~ a.cc:62:15: note: 'template<class C, class F> constexpr int count_if(C&, F)' previously declared here 62 | constexpr int count_if(C& c, F f) { return count_if(ALL(c), f); } | ^~~~~~~~ a.cc:158:6: error: redefinition of 'template<class C, class T> void erase(C&, T)' 158 | void erase(C& c, T t) { remove(ALL(c), t), c.end(); } | ^~~~~ a.cc:64:6: note: 'template<class C, class T> void erase(C&, T)' previously declared here 64 | void erase(C& c, T t) { remove(ALL(c), t), c.end(); } | ^~~~~ a.cc:160:6: error: redefinition of 'template<class C> void remove(std::vector<_Tp>&, unsigned int)' 160 | void remove(vector<C>& c, unsigned int index) { c.erase(c.begin()+index); } | ^~~~~~ a.cc:66:6: note: 'template<class C> void remove(std::vector<_Tp>&, unsigned int)' previously declared here 66 | void remove(vector<C>& c, unsigned int index) { c.erase(c.begin()+index); } | ^~~~~~ a.cc:162:16: error: redefinition of 'template<class C, class T, class U> constexpr void replace(C&, T, U)' 162 | constexpr void replace(C& c, T t, U u) { replace(ALL(c), t, u); } | ^~~~~~~ a.cc:68:16: note: 'template<class C, class T, class U> constexpr void replace(C&, T, U)' previously declared here 68 | constexpr void replace(C& c, T t, U u) { replace(ALL(c), t, u); } | ^~~~~~~ a.cc:164:16: error: redefinition of 'template<class C, class F, class U> constexpr void replace_if(C&, F, U)' 164 | constexpr void replace_if(C& c, F f, U u) { (ALL(c), f, u); } | ^~~~~~~~~~ a.cc:70:16: note: 'template<class C, class F, class U> constexpr void replace_if(C&, F, U)' previously declared here 70 | constexpr void replace_if(C& c, F f, U u) { (ALL(c), f, u); } | ^~~~~~~~~~ a.cc:166:16: error: redefinition of 'template<class C> constexpr void reverse(C&)' 166 | constexpr void reverse(C& c) { reverse(ALL(c)); } | ^~~~~~~ a.cc:72:16: note: 'template<class C> constexpr void reverse(C&)' previously declared here 72 | constexpr void reverse(C& c) { reverse(ALL(c)); } | ^~~~~~~ a.cc:168:16: error: redefinition of 'template<class C> constexpr void sort(C&)' 168 | constexpr void sort(C& c) { sort(ALL(c)); } | ^~~~ a.cc:74:16: note: 'template<class C> constexpr void sort(C&)' previously declared here 74 | constexpr void sort(C& c) { sort(ALL(c)); } | ^~~~ a.cc:170:16: error: redefinition of 'template<class C, class Pred> constexpr void sort(C&, Pred)' 170 | constexpr void sort(C& c, Pred p) { sort(ALL(c), p); } | ^~~~ a.cc:76:16: note: 'template<class C, class Pred> constexpr void sort(C&, Pred)' previously declared here 76 | constexpr void sort(C& c, Pred p) { sort(ALL(c), p); } | ^~~~ a.cc:181:5: error: redefinition of 'int main()' 181 | int main() | ^~~~ a.cc:87:5: note: 'int main()' previously defined here 87 | int main() | ^~~~
s825074152
p00290
C++
//#define _GRIBCXX_DEBUG #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <iomanip> #include <list> #include <map> #include <memory> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; // ?????¬???????????¬?????? #pragma region MACRO #define P(x) cout << (x) << endl #define p(x) cout << (x) #define PED cout << "\n" #define rep(i,n) for(int i=0; i<(int)n; ++i) #define REP(i,x,n) for(int i=x; i<(int)n; ++i) #define repi(i,n) for(int i=0; i<=(int)n; ++i) #define REPI(i,x,n) for(int i=x; i<=(int)n; ++i) #define ILP while(true) #define FOR(i,c) for(__typeof((c).begin())!=(c).begin(); i!=(c).end(); ++i) #define ALL(c) (c).begin(), (c).end() #define mp make_pair #pragma endregion // ??? #pragma region TYPE_DEF typedef long long ll; typedef pair<int, int> pii; typedef pair<string, string> pss; typedef pair<string, int> psi; typedef pair<int, string> pis; typedef vector<int> vi; typedef vector<double> vd; typedef vector<long> vl; typedef vector<long long> vll; typedef vector<string> vs; #pragma endregion // Effective std #pragma region ESTD template<typename C, typename T> constexpr int count(C& c, T t) { return count(ALL(c), t); } template<typename C, typename F> constexpr int count_if(C& c, F f) { return count_if(ALL(c), f); } template<typename C, typename T> void erase(C& c, T t) { remove(ALL(c), t), c.end(); } template<typename C> void remove(vector<C>& c, unsigned int index) { c.erase(c.begin()+index); } template<typename C, typename T, typename U> constexpr void replace(C& c, T t, U u) { replace(ALL(c), t, u); } template<typename C, typename F, typename U> constexpr void replace_if(C& c, F f, U u) { (ALL(c), f, u); } template<typename C> constexpr void reverse(C& c) { reverse(ALL(c)); } template<typename C> constexpr void sort(C& c) { sort(ALL(c)); } template<typename C, typename Pred> constexpr void sort(C& c, Pred p) { sort(ALL(c), p); } #pragma endregion // ?????° #pragma region CONST_VAL #define PI (2*acos(0.0)) #define EPS (1e-9) #define MOD (int)(1e9+7) #pragma endregion int main() { int a, b; cin >> a >> b; P(a*b); return 0; } //#define _GRIBCXX_DEBUG #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <iomanip> #include <list> #include <map> #include <memory> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; // ?????¬???????????¬?????? #pragma region MACRO #define P(x) cout << (x) << endl #define p(x) cout << (x) #define PED cout << "\n" #define rep(i,n) for(int i=0; i<(int)n; ++i) #define REP(i,x,n) for(int i=x; i<(int)n; ++i) #define repi(i,n) for(int i=0; i<=(int)n; ++i) #define REPI(i,x,n) for(int i=x; i<=(int)n; ++i) #define ILP while(true) #define FOR(i,c) for(__typeof((c).begin())!=(c).begin(); i!=(c).end(); ++i) #define ALL(c) (c).begin(), (c).end() #define mp make_pair #pragma endregion // ??? #pragma region TYPE_DEF typedef long long ll; typedef pair<int, int> pii; typedef pair<string, string> pss; typedef pair<string, int> psi; typedef pair<int, string> pis; typedef vector<int> vi; typedef vector<double> vd; typedef vector<long> vl; typedef vector<long long> vll; typedef vector<string> vs; #pragma endregion // Effective std #pragma region ESTD template<typename C, typename T> constexpr int count(C& c, T t) { return count(ALL(c), t); } template<typename C, typename F> constexpr int count_if(C& c, F f) { return count_if(ALL(c), f); } template<typename C, typename T> void erase(C& c, T t) { remove(ALL(c), t), c.end(); } template<typename C> void remove(vector<C>& c, unsigned int index) { c.erase(c.begin()+index); } template<typename C, typename T, typename U> constexpr void replace(C& c, T t, U u) { replace(ALL(c), t, u); } template<typename C, typename F, typename U> constexpr void replace_if(C& c, F f, U u) { (ALL(c), f, u); } template<typename C> constexpr void reverse(C& c) { reverse(ALL(c)); } template<typename C> constexpr void sort(C& c) { sort(ALL(c)); } template<typename C, typename Pred> constexpr void sort(C& c, Pred p) { sort(ALL(c), p); } #pragma endregion // ?????° #pragma region CONST_VAL #define PI (2*acos(0.0)) #define EPS (1e-9) #define MOD (int)(1e9+7) #pragma endregion int main() { int a, b; cin >> a >> b; P(a*b); return 0; }
a.cc:154:15: error: redefinition of 'template<class C, class T> constexpr int count(C&, T)' 154 | constexpr int count(C& c, T t) { return count(ALL(c), t); } | ^~~~~ a.cc:60:15: note: 'template<class C, class T> constexpr int count(C&, T)' previously declared here 60 | constexpr int count(C& c, T t) { return count(ALL(c), t); } | ^~~~~ a.cc:156:15: error: redefinition of 'template<class C, class F> constexpr int count_if(C&, F)' 156 | constexpr int count_if(C& c, F f) { return count_if(ALL(c), f); } | ^~~~~~~~ a.cc:62:15: note: 'template<class C, class F> constexpr int count_if(C&, F)' previously declared here 62 | constexpr int count_if(C& c, F f) { return count_if(ALL(c), f); } | ^~~~~~~~ a.cc:158:6: error: redefinition of 'template<class C, class T> void erase(C&, T)' 158 | void erase(C& c, T t) { remove(ALL(c), t), c.end(); } | ^~~~~ a.cc:64:6: note: 'template<class C, class T> void erase(C&, T)' previously declared here 64 | void erase(C& c, T t) { remove(ALL(c), t), c.end(); } | ^~~~~ a.cc:160:6: error: redefinition of 'template<class C> void remove(std::vector<_Tp>&, unsigned int)' 160 | void remove(vector<C>& c, unsigned int index) { c.erase(c.begin()+index); } | ^~~~~~ a.cc:66:6: note: 'template<class C> void remove(std::vector<_Tp>&, unsigned int)' previously declared here 66 | void remove(vector<C>& c, unsigned int index) { c.erase(c.begin()+index); } | ^~~~~~ a.cc:162:16: error: redefinition of 'template<class C, class T, class U> constexpr void replace(C&, T, U)' 162 | constexpr void replace(C& c, T t, U u) { replace(ALL(c), t, u); } | ^~~~~~~ a.cc:68:16: note: 'template<class C, class T, class U> constexpr void replace(C&, T, U)' previously declared here 68 | constexpr void replace(C& c, T t, U u) { replace(ALL(c), t, u); } | ^~~~~~~ a.cc:164:16: error: redefinition of 'template<class C, class F, class U> constexpr void replace_if(C&, F, U)' 164 | constexpr void replace_if(C& c, F f, U u) { (ALL(c), f, u); } | ^~~~~~~~~~ a.cc:70:16: note: 'template<class C, class F, class U> constexpr void replace_if(C&, F, U)' previously declared here 70 | constexpr void replace_if(C& c, F f, U u) { (ALL(c), f, u); } | ^~~~~~~~~~ a.cc:166:16: error: redefinition of 'template<class C> constexpr void reverse(C&)' 166 | constexpr void reverse(C& c) { reverse(ALL(c)); } | ^~~~~~~ a.cc:72:16: note: 'template<class C> constexpr void reverse(C&)' previously declared here 72 | constexpr void reverse(C& c) { reverse(ALL(c)); } | ^~~~~~~ a.cc:168:16: error: redefinition of 'template<class C> constexpr void sort(C&)' 168 | constexpr void sort(C& c) { sort(ALL(c)); } | ^~~~ a.cc:74:16: note: 'template<class C> constexpr void sort(C&)' previously declared here 74 | constexpr void sort(C& c) { sort(ALL(c)); } | ^~~~ a.cc:170:16: error: redefinition of 'template<class C, class Pred> constexpr void sort(C&, Pred)' 170 | constexpr void sort(C& c, Pred p) { sort(ALL(c), p); } | ^~~~ a.cc:76:16: note: 'template<class C, class Pred> constexpr void sort(C&, Pred)' previously declared here 76 | constexpr void sort(C& c, Pred p) { sort(ALL(c), p); } | ^~~~ a.cc:181:5: error: redefinition of 'int main()' 181 | int main() | ^~~~ a.cc:87:5: note: 'int main()' previously defined here 87 | int main() | ^~~~
s554913830
p00290
C++
#include<iostream>int main(){int a,b;cin>>a>>b;cout<<a*b<<endl;return 0;}
a.cc:1:23: warning: extra tokens at end of #include directive 1 | #include<iostream>int main(){int a,b;cin>>a>>b;cout<<a*b<<endl;return 0;} | ^~~~ a.cc:1:9: fatal error: iostream>in: No such file or directory 1 | #include<iostream>int main(){int a,b;cin>>a>>b;cout<<a*b<<endl;return 0;} | ^~~~~~~~~~~~~ compilation terminated.
s037998530
p00290
C++
#include<iostream> int main(void) { int n1, n2; cin>>n1>>n2; cout<<n2*n1<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin>>n1>>n2; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | cout<<n2*n1<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:9:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | cout<<n2*n1<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s922658635
p00290
C++
#include<iostream> using namespace std; int main(){ int d,c; sin>>d>>c; cout<<d*c<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:1: error: 'sin' was not declared in this scope 8 | sin>>d>>c; | ^~~
s070396149
p00290
C++
#include <iostream> using namespace std; int main(){ int d,c cin>>d>>c; cout<<d*c<<'\n'; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin>>d>>c; | ^~~ a.cc:7:11: error: 'c' was not declared in this scope 7 | cout<<d*c<<'\n'; | ^
s904936105
p00290
C++
#include <iostream> using namespace std; int main(){ int d,c cin>>d>>c; cout<<d*c<<'\n'; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin>>d>>c; | ^~~ a.cc:7:11: error: 'c' was not declared in this scope 7 | cout<<d*c<<'\n'; | ^
s703496843
p00290
C++
#include <iostream> using namespace std; int main(){ int d,c cin>>d>>c; cout<<d*c<<'\n'; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin>>d>>c; | ^~~ a.cc:7:11: error: 'c' was not declared in this scope 7 | cout<<d*c<<'\n'; | ^
s425631193
p00290
C++
a,b=map(int,input().split()) print(a*b)
a.cc:1:1: error: 'a' does not name a type 1 | a,b=map(int,input().split()) | ^
s194560263
p00290
C++
#include<bits/stdc++.h> using namespace std;l int main(){ int a,b; cin>>a>>b; cout<<a*b<<endl; }
a.cc:2:21: error: 'l' does not name a type 2 | using namespace std;l | ^
s529950451
p00290
C++
import Control.Applicative main = (*) <$> readLn <*> readLn >>= print
a.cc:1:1: error: 'import' does not name a type 1 | import Control.Applicative | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
s667325647
p00290
C++
#include<bits/stdc++.h> int main(){ int d, c; cin>>d>>c; cout<<d * c<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>d>>c; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | cout<<d * c<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:8:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | cout<<d * c<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s156682655
p00290
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,c,d cin >> d>>c; a = c*d; cout << a; }
a.cc: In function 'int main()': a.cc:6:5: error: expected initializer before 'cin' 6 | cin >> d>>c; | ^~~ a.cc:7:11: error: 'd' was not declared in this scope 7 | a = c*d; | ^
s113234396
p00290
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,c,d cin >>c>d; a = c*d; cout << a; }
a.cc: In function 'int main()': a.cc:6:5: error: expected initializer before 'cin' 6 | cin >>c>d; | ^~~ a.cc:7:11: error: 'd' was not declared in this scope 7 | a = c*d; | ^
s814361082
p00290
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,c,d cin >>c>d; a = c*d; cout<<a<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: expected initializer before 'cin' 6 | cin >>c>d; | ^~~ a.cc:7:11: error: 'd' was not declared in this scope 7 | a = c*d; | ^
s778397271
p00290
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,c,d; cin >>c>d; a = c*d; cout<<a<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:12: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 6 | cin >>c>d; | ~~~~~~~^~ | | | | | int | std::basic_istream<char>::__istream_type {aka std::basic_istream<char>} a.cc:6:12: note: candidate: 'operator>(int, int)' (built-in) 6 | cin >>c>d; | ~~~~~~~^~ a.cc:6:12: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1176:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1176 | operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1176:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | cin >>c>d; | ^ /usr/include/c++/14/bits/regex.h:1236:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1236 | operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1236:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 6 | cin >>c>d; | ^ /usr/include/c++/14/bits/regex.h:1329:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1329 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1329:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | cin >>c>d; | ^ /usr/include/c++/14/bits/regex.h:1403:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1403 | operator>(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1403:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 6 | cin >>c>d; | ^ /usr/include/c++/14/bits/regex.h:1497:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1497 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1497:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | cin >>c>d; | ^ /usr/include/c++/14/bits/regex.h:1573:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1573 | operator>(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1573:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 6 | cin >>c>d; | ^ /usr/include/c++/14/bits/regex.h:1673:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1673 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1673:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | cin >>c>d; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>' 6 | cin >>c>d; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 6 | cin >>c>d; | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 6 | cin >>c>d; | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 6 | cin >>c>d; | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 6 | cin >>c>d; | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | cin >>c>d; | ^ /usr/include/c++/14/string_view:702:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | cin >>c>d; | ^ /usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 6 | cin >>c>d; | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr
s255104494
p00290
C++
#include <bits/stdc++.h> using namespace std; int main(){ int d,c; cin>>d>>c; cout<<d*C<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:17: error: 'C' was not declared in this scope 11 | cout<<d*C<<endl; | ^
s333454139
p00291
Java
public static void main(String[] args) { System.out.println(canChangebill()); } private static int canChangebill() { Scanner sc = new Scanner(System.in); int[] c = new int[] {1, 5, 10, 50, 100, 500}; int sum = 0; for (int i = 0; i < c.length; i++) { sum += sc.nextInt() * c[i]; } sc.close(); if (sum >= 1000) { return 1; } else { return 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) Main.java:22: error: class, interface, enum, or record expected } ^ 2 errors
s465274983
p00291
C
#include<stdio.h> int main(void) { int a,b,c,d,e,f; scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f); x=a*1+b*5+c*10+d*50+e*100+f*500; if(x>1000){ printf("1\n"); } else{ printf("0\n"); } return 0; }
main.c: In function 'main': main.c:6:17: error: 'x' undeclared (first use in this function) 6 | x=a*1+b*5+c*10+d*50+e*100+f*500; | ^ main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
s427971974
p00291
C
#include <stdio.h> int main() { int c1=1, c5=5, c10=10, c50=50, c100=100, c500=500; scanf("%d %d %d %d %d %d", &c1,&c5,&c10,&c50,&c100,&c500; if( c1+c5+c10+c50+c100+c500 >= 1000); { ptintf("1"); } else { printf("0"); } return 0; }
main.c: In function 'main': main.c:5:59: error: expected ')' before ';' token 5 | scanf("%d %d %d %d %d %d", &c1,&c5,&c10,&c50,&c100,&c500; | ~ ^ | ) main.c:14:18: error: expected ';' before '}' token 14 | return 0; | ^ | ; 15 | } | ~
s193816775
p00291
C
#include<stdio.h> int main(){ int c1 ,c5 ,c10 ,c50 ,c100 ,c500; scanf("%d%d%d%d%d",&c1 &c5 &c10 &c50 &c100 &c500); if(c1+c5*5+c10*10+c50*50+c100*100+c500*500 >= 1000) { printf("1"); } else {printf("0"); } return 0; }
main.c: In function 'main': main.c:5:28: error: invalid operands to binary & (have 'int *' and 'int') 5 | scanf("%d%d%d%d%d",&c1 &c5 &c10 &c50 &c100 &c500); | ~~~ ^ | | | int *
s982659522
p00291
C
#include <stdio.h> int main( ){ int c1,c5,c10,c50,c100,c500; printf("%d\n"); scanf("%d%d%d%d%d%d,&c1,&c5,&c10,&c50,&c100,&c500); if(0<=c1<=50,0<=c5<=50,0<=c10<=50,0<=c50<=50,0<=c100<=50,0<=c500<=50) puts("0,0,0,1,1,1"); return 0; }
main.c: In function 'main': main.c:5:9: warning: missing terminating " character 5 | scanf("%d%d%d%d%d%d,&c1,&c5,&c10,&c50,&c100,&c500); | ^ main.c:5:9: error: missing terminating " character 5 | scanf("%d%d%d%d%d%d,&c1,&c5,&c10,&c50,&c100,&c500); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:7:1: error: expected expression before 'if' 7 | if(0<=c1<=50,0<=c5<=50,0<=c10<=50,0<=c50<=50,0<=c100<=50,0<=c500<=50) | ^~ main.c:10:10: error: expected ';' before '}' token 10 | return 0; | ^ | ; 11 | } | ~
s846223256
p00291
C
#include <stdio.h> int main( ){ int c1,c5,c10,c50,c100,c500; printf("%d\n"); scanf("%d%d%d%d%d%dテ「ツ??&c1,&c5,&c10,&c50,&c100,&c500); if(0<=c1<=50,0<=c5<=50,0<=c10<=50,0<=c50<=50,0<=c100<=50,0<=c500<=50) puts("0,0,0,1,1,1"); return 0; }
main.c: In function 'main': main.c:5:9: warning: missing terminating " character 5 | scanf("%d%d%d%d%d%dテ「ツ??&c1,&c5,&c10,&c50,&c100,&c500); | ^ main.c:5:9: error: missing terminating " character 5 | scanf("%d%d%d%d%d%dテ「ツ??&c1,&c5,&c10,&c50,&c100,&c500); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:7:1: error: expected expression before 'if' 7 | if(0<=c1<=50,0<=c5<=50,0<=c10<=50,0<=c50<=50,0<=c100<=50,0<=c500<=50) | ^~ main.c:10:10: error: expected ';' before '}' token 10 | return 0; | ^ | ; 11 | } | ~
s036937490
p00291
C
#inclde <stdio.h> int main(void){ int i; int n, sum = 0; int money[6] = {1, 5, 10, 50, 100, 500}; for(i = 0; i < 6; i++){ scanf("%d", &n); money[i] *= n; sum += money[i]; } printf("%d", sum); return 0; }
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include? 1 | #inclde <stdio.h> | ^~~~~~ | include main.c: In function 'main': main.c:9:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 9 | scanf("%d", &n); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | #inclde <stdio.h> main.c:9:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 9 | scanf("%d", &n); | ^~~~~ main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:13:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 13 | printf("%d", sum); | ^~~~~~ main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
s710865398
p00291
C
#include<stdio.h> int main(void){ int c1,c5,c10,c50,c100,c500,a; scanf("%d %d %d %d %d %d",&c1,&c5,&c10,&c50,&c100,&c500); a=c1+c5*5+c10*10+c50*50+c100*100+c500*500; if(a=>1000) printf("1"); else printf("0"); return 0; }
main.c: In function 'main': main.c:9:10: error: expected expression before '>' token 9 | if(a=>1000) | ^
s829997530
p00291
C
#include <stdio.h> int main(void){ int a[5]; scanf("%d %d %d %d %d %d",&a[0] &a[1] &a[2] &a[3] &a[4] &a[5]); if(a[0]+a[1]*5+a[2]*10+a[3]*50+a[4]*100+a[5]*500>=1000) printf("%d",(a[0]+a[1]*5+a[2]*10+a[3]*50+a[4]*100+a[5]*500)/1000); else printf("0"); return 0; }
main.c: In function 'main': main.c:5:36: error: invalid operands to binary & (have 'int *' and 'int') 5 | scanf("%d %d %d %d %d %d",&a[0] &a[1] &a[2] &a[3] &a[4] &a[5]); | ~~~~~ ^~~~~ | | | | int * int
s036125268
p00291
C
#include<stdio.h> int main(void){ int b,c,d,e,f,g,a; scanf("%d %d %d %d %d %d",&b,&c,&d,&e,&f,&g); a=b+c*5+d*10+e*50+f*100+g*500; if(a=>1000) printf("1"); else printf("0"); return 0; }
main.c: In function 'main': main.c:9:10: error: expected expression before '>' token 9 | if(a=>1000) | ^
s148122361
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b,i; for(i=0:i<6:i+;){ scanf("%d ",a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:8:12: error: expected ';' before ':' token 8 | for(i=0:i<6:i+;){ | ^ | ; main.c:8:20: error: expected expression before ')' token 8 | for(i=0:i<6:i+;){ | ^ main.c:12:16: warning: unknown escape sequence: '\d' 12 | printf("\d"); | ^ main.c:14:19: warning: unknown escape sequence: '\d' 14 | printf("1\d"); | ^ main.c:16:19: warning: unknown escape sequence: '\d' 16 | printf("0\d"); | ^
s660540596
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b,i; for(i=0:i<6:i++;){ scanf("%d ",a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:8:12: error: expected ';' before ':' token 8 | for(i=0:i<6:i++;){ | ^ | ; main.c:8:21: error: expected expression before ')' token 8 | for(i=0:i<6:i++;){ | ^ main.c:12:16: warning: unknown escape sequence: '\d' 12 | printf("\d"); | ^ main.c:14:19: warning: unknown escape sequence: '\d' 14 | printf("1\d"); | ^ main.c:16:19: warning: unknown escape sequence: '\d' 16 | printf("0\d"); | ^
s598106083
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b,i; for(i=0:i<6:i++;){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:8:12: error: expected ';' before ':' token 8 | for(i=0:i<6:i++;){ | ^ | ; main.c:8:21: error: expected expression before ')' token 8 | for(i=0:i<6:i++;){ | ^ main.c:12:16: warning: unknown escape sequence: '\d' 12 | printf("\d"); | ^ main.c:14:19: warning: unknown escape sequence: '\d' 14 | printf("1\d"); | ^ main.c:16:19: warning: unknown escape sequence: '\d' 16 | printf("0\d"); | ^
s313848566
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b,i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:8:12: error: expected ';' before ':' token 8 | for(i=0:i<6:i++){ | ^ | ; main.c:8:20: error: expected expression before ')' token 8 | for(i=0:i<6:i++){ | ^ main.c:12:16: warning: unknown escape sequence: '\d' 12 | printf("\d"); | ^ main.c:14:19: warning: unknown escape sequence: '\d' 14 | printf("1\d"); | ^ main.c:16:19: warning: unknown escape sequence: '\d' 16 | printf("0\d"); | ^
s495437507
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s854868249
p00291
C
#include <stdio.h int main(void){ int a[]={1,5,10,50,100,500},b[5],sum = 0,i,x; for(i = 0;i <= 5;i++){ scanf("%d",&x); sum += a[i] * b[i]; } if(sum >=1000) x = 1; else x = 0; printf("%d\n",x); return 0; }
main.c:1:18: error: missing terminating > character 1 | #include <stdio.h | ^
s026449223
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s259261488
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s313129924
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s977897348
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s378951284
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s128346601
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s675279269
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s237239128
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s377530613
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s614813867
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s148502983
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s841675155
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s692312003
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s903073235
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s610191480
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s625157694
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s391300794
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s758552296
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s818667196
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s185228980
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d ",&a[i]); b+=a[i]*c[i]; } printf("\d"); if(b>1000) printf("1\d"); else printf("0\d"); return 0; }
main.c: In function 'main': main.c:9:12: error: expected ';' before ':' token 9 | for(i=0:i<6:i++){ | ^ | ; main.c:9:20: error: expected expression before ')' token 9 | for(i=0:i<6:i++){ | ^ main.c:13:16: warning: unknown escape sequence: '\d' 13 | printf("\d"); | ^ main.c:15:19: warning: unknown escape sequence: '\d' 15 | printf("1\d"); | ^ main.c:17:19: warning: unknown escape sequence: '\d' 17 | printf("0\d"); | ^
s985395741
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d",&a[i]); b=b+a[i]*c[i]; } printf("\n") if(b>1000) printf("1\n"); else printf("0\n"); return 0; }
main.c: In function 'main': main.c:10:12: error: expected ';' before ':' token 10 | for(i=0:i<6:i++){ | ^ | ; main.c:10:20: error: expected expression before ')' token 10 | for(i=0:i<6:i++){ | ^ main.c:15:17: error: expected ';' before 'if' 15 | printf("\n") | ^ | ; 16 | if(b>1000) | ~~ main.c:18:5: error: 'else' without a previous 'if' 18 | else | ^~~~
s245588842
p00291
C
#include<stdio.h> int main(void){ int c[6]={1,5,10,50,100,500}; int a[6]; int b=0; int i; for(i=0:i<6:i++){ scanf("%d",&a[i]); b=b+a[i]*c[i]; } printf("\n"); if(b>1000) printf("1\n"); else printf("0\n"); return 0; }
main.c: In function 'main': main.c:10:12: error: expected ';' before ':' token 10 | for(i=0:i<6:i++){ | ^ | ; main.c:10:20: error: expected expression before ')' token 10 | for(i=0:i<6:i++){ | ^
s088893211
p00291
C
#include <stdio.h> int main(void){ ncludeint val[]={1,5,10,50,100,500}; int i; int c; int s=0; for(i=0; i<6 ;i++){ scanf("%d",&c); s=s+c*val[i]; } if(s/1000>=1) printf("1"); else printf("0"); return 0; }
main.c: In function 'main': main.c:4:9: error: unknown type name 'ncludeint' 4 | ncludeint val[]={1,5,10,50,100,500}; | ^~~~~~~~~
s162323135
p00291
C
int main(void){ int a,b,c,d,e,f,sum,n=0; scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f); sum=a+5*b+10*c+50*d+100*e+500*f; if(sum>=1000) n=1; } printf("%d\n",n); return 0; }
main.c: In function 'main': main.c:3:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(void){ main.c:3:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 3 | scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f); | ^~~~~ main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c: At top level: main.c:9:16: error: expected declaration specifiers or '...' before string constant 9 | printf("%d\n",n); | ^~~~~~ main.c:9:23: error: unknown type name 'n' 9 | printf("%d\n",n); | ^ main.c:11:9: error: expected identifier or '(' before 'return' 11 | return 0; | ^~~~~~ main.c:12:1: error: expected identifier or '(' before '}' token 12 | } | ^
s547841988
p00291
C
#include <stdio.h> int main(void){ int val[]={1,5,10,50,100,500}; int i,x,y,sum; for(i=0;i<5;i++){ scanf(%d,&x); y=val[i]*x; sum+=y; } if(sum>1000) printf("%d",1); else printf("%d",0); return=0; }
main.c: In function 'main': main.c:8:9: error: expected expression before '%' token 8 | scanf(%d,&x); | ^ main.c:16:9: error: expected expression before '=' token 16 | return=0; | ^
s575792915
p00291
C
#include <stdio.h> int main(void) { int val[]=(1,5,10,50,100,500),i,x; for(i=0; i<=5; i++){ scanf("%d",&x); printf("%d",x*val[i]); } putchar('\n'); return 0; }
main.c: In function 'main': main.c:4:15: error: invalid initializer 4 | int val[]=(1,5,10,50,100,500),i,x; | ^
s262506096
p00291
C
#include <stdio.h> int main(void){ int val[]={1,5,10,50,100,500}; int i,x,y,sum; for(i=0;i<6;i++){ scanf(%d,&x); y=val[i]*x; sum+=y; } if(sum>1000) printf("%d",1); else printf("%d",0); return=0; }
main.c: In function 'main': main.c:8:9: error: expected expression before '%' token 8 | scanf(%d,&x); | ^ main.c:16:9: error: expected expression before '=' token 16 | return=0; | ^
s908782042
p00291
C
#include <stdio.h> int main(){ int c1,c5,c10,c50,c100,c500; int result = 0; scanf("%d%d%d%d%d%d"&c1,&c5,&c10,&c50,&c100,&c500); if (5<=c1||2<=c5||5<=c10||2<=c50||5<=c100||2<=c500){ result = 1; } printf("%d\n",result); return 0; }
main.c: In function 'main': main.c:8:24: error: invalid operands to binary & (have 'char *' and 'int') 8 | scanf("%d%d%d%d%d%d"&c1,&c5,&c10,&c50,&c100,&c500); | ~~~~~~~~~~~~~~^ | | | char *
s124877828
p00291
C
#include <stdio.h> int main(){ int c1,c5,c10,c50,c100,c500; char result; scanf("%d%d%d%d%d%d"&c1,&c5,&c10,&c50,&c100,&c500); if (5<=c1||2<=c5||5<=c10||2<=c50||5<=c100||2<=c500){ result = '1'; } else{ result = '0': } putchar(result); putchar('\n'); return 0; }
main.c: In function 'main': main.c:5:25: error: invalid operands to binary & (have 'char *' and 'int') 5 | scanf("%d%d%d%d%d%d"&c1,&c5,&c10,&c50,&c100,&c500); | ~~~~~~~~~~~~~~^ | | | char * main.c:10:21: error: expected ';' before ':' token 10 | result = '0': | ^ | ;
s706701378
p00291
C
#include <stdio.h> int main(){ int c1,c5,c10,c50,c100,c500; char result; scanf("%d%d%d%d%d%d"&c1,&c5,&c10,&c50,&c100,&c500); if (5<=c1||2<=c5||5<=c10||2<=c50||5<=c100||2<=c500){ result = '1'; } else{ result = '0': } printf('%c\n',result); return 0; }
main.c: In function 'main': main.c:5:25: error: invalid operands to binary & (have 'char *' and 'int') 5 | scanf("%d%d%d%d%d%d"&c1,&c5,&c10,&c50,&c100,&c500); | ~~~~~~~~~~~~~~^ | | | char * main.c:10:21: error: expected ';' before ':' token 10 | result = '0': | ^ | ; main.c:12:12: warning: multi-character character constant [-Wmultichar] 12 | printf('%c\n',result); | ^~~~~~ main.c:12:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion] 12 | printf('%c\n',result); | ^~~~~~ | | | int In file included from main.c:1: /usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int' 363 | extern int printf (const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
s858595174
p00291
C
#include <stdio.h> int main(){ int c1,c5,c10,c50,c100,c500; char result; scanf("%d%d%d%d%d%d"&c1,&c5,&c10,&c50,&c100,&c500); if (5<=c1||2<=c5||5<=c10||2<=c50||5<=c100||2<=c500){ result = '1'; } else{ result = '0': } printf('%c\n',result); return 0; }
main.c: In function 'main': main.c:5:25: error: invalid operands to binary & (have 'char *' and 'int') 5 | scanf("%d%d%d%d%d%d"&c1,&c5,&c10,&c50,&c100,&c500); | ~~~~~~~~~~~~~~^ | | | char * main.c:10:21: error: expected ';' before ':' token 10 | result = '0': | ^ | ; main.c:12:12: warning: multi-character character constant [-Wmultichar] 12 | printf('%c\n',result); | ^~~~~~ main.c:12:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion] 12 | printf('%c\n',result); | ^~~~~~ | | | int In file included from main.c:1: /usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int' 363 | extern int printf (const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
s645790598
p00291
C
#include <stdio.h> int main(){ int c1,c5,c10,c50,c100,c500; char result; scanf("%d%d%d%d%d%d",&c1,&c5,&c10,&c50,&c100,&c500); if (5<=c1||2<=c5||5<=c10||2<=c50||5<=c100||2<=c500){ result = '1'; } else{ result = '0': } printf('%c\n',result); return 0; }
main.c: In function 'main': main.c:10:21: error: expected ';' before ':' token 10 | result = '0': | ^ | ; main.c:12:12: warning: multi-character character constant [-Wmultichar] 12 | printf('%c\n',result); | ^~~~~~ main.c:12:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion] 12 | printf('%c\n',result); | ^~~~~~ | | | int In file included from main.c:1: /usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int' 363 | extern int printf (const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
s081504698
p00291
C
#include<stdio.h> int main(){ int a,b,c,d,e,f; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); scanf("%d",&e); scanf("%d",&f); if((a+5*b+10*c+d*50+e*100+f*500)=>1000){ printf("1\n"); }else{ printf("0\n"); } return 0; }
main.c: In function 'main': main.c:10:36: error: expected expression before '>' token 10 | if((a+5*b+10*c+d*50+e*100+f*500)=>1000){ | ^
s106045359
p00291
C
include<stdio.h> int main(){ int a,b,c,d,e,f; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); scanf("%d",&e); scanf("%d",&f); if((a+5*b+10*c+d*50+e*100+f*500)>=1000){ printf("1\n"); }else{ printf("0\n"); } return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s195928495
p00291
C++
int main(){ int table[]={1,5,10,50,100,500},n; int sum=0; for(int i=0;i<6;i++){ cin>>n; sum+=n*table[i]; } cout<<(sum>=1000)<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope 5 | cin>>n; | ^~~ a.cc:8:9: error: 'cout' was not declared in this scope 8 | cout<<(sum>=1000)<<endl; | ^~~~ a.cc:8:28: error: 'endl' was not declared in this scope 8 | cout<<(sum>=1000)<<endl; | ^~~~
s670006732
p00291
C++
#include <iostream>using namespace std;int main(){int a,b,c,d,e,f;cin >>a>>b>>c>>d>>e>>f;if(a+5*b+c*10+d*50+e*100+f*500>999) cout << "1\n";else cout << "0\n";return 0;}
a.cc:1:26: warning: extra tokens at end of #include directive 1 | #include <iostream>using namespace std;int main(){int a,b,c,d,e,f;cin >>a>>b>>c>>d>>e>>f;if(a+5*b+c*10+d*50+e*100+f*500>999) cout << "1\n";else cout << "0\n";return 0;} | ^~~~~~~~~ a.cc:1:10: fatal error: iostream>usin: No such file or directory 1 | #include <iostream>using namespace std;int main(){int a,b,c,d,e,f;cin >>a>>b>>c>>d>>e>>f;if(a+5*b+c*10+d*50+e*100+f*500>999) cout << "1\n";else cout << "0\n";return 0;} | ^~~~~~~~~~~~~~~ compilation terminated.
s576849323
p00291
C++
#include <iostream> using namespace std;int main(){ int a,b,c,d,e,f; cin >>a>>b>>c>>d>>e>>f; if(a+5*b+c*10+d*50+e*100+f*500>999) cout << "1\n"; else cout << "0\n"; return 0; }
a.cc:1:21: warning: extra tokens at end of #include directive 1 | #include <iostream> using namespace std;int main(){ int a,b,c,d,e,f; cin >>a>>b>>c>>d>>e>>f; if(a+5*b+c*10+d*50+e*100+f*500>999) cout << "1\n"; else cout << "0\n"; return 0; } | ^~~~~ /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
s714060974
p00291
C++
#include <stdio.h> int main(){ int c1,c5,c10,c50,c100,c500; while(scanf("%d %d %d %d %d %d",&c1,&c5,&c10,&c50,&c100,&c500)!=EOF){ if(c1+c5*5+c10*10+c50*50+c100*100+c500*500>=1000)printf("1\n"); elseprintf("0\n"); } return 0; }
a.cc: In function 'int main()': a.cc:9:1: error: 'elseprintf' was not declared in this scope; did you mean 'vsprintf'? 9 | elseprintf("0\n"); | ^~~~~~~~~~ | vsprintf
s381851176
p00291
C++
#include<iostream> using namespace std; int main(){ int a[6]; int ans=0; int b[]={1,5,10,50,100,500}; for(int i=0;i<6;i++){ cin >> a[i]; ans += a[i] * b[i]; } if(ans >= 1000){ cout << "1" << endl; } else { cout << "0" << endl; } }#include<iostream> using namespace std; int main(){ int a[6]; int ans=0; int b[]={1,5,10,50,100,500}; for(int i=0;i<6;i++){ cin >> a[i]; ans += a[i] * b[i]; } if(ans >= 1000){ cout << "1" << endl; } else { cout << "0" << endl; } }
a.cc:18:2: error: stray '#' in program 18 | }#include<iostream> | ^ a.cc:18:3: error: 'include' does not name a type 18 | }#include<iostream> | ^~~~~~~ a.cc:21:5: error: redefinition of 'int main()' 21 | int main(){ | ^~~~ a.cc:4:5: note: 'int main()' previously defined here 4 | int main(){ | ^~~~
s362088148
p00291
C++
#include<stdio.h> int main(void){ int a,b,c,d,e,f; scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f); a+=b+c+d+e+f; if(a>1000) printf("1\n"); } else printf("0\n"); }
a.cc:9:9: error: expected unqualified-id before 'else' 9 | else | ^~~~ a.cc:11:1: error: expected declaration before '}' token 11 | } | ^
s623838920
p00291
C++
#include<iostream> using namespace std; int main(){ int c[5], cin>>c[0]>>c[1]>>c[2]>>c[3]>>c[4]; if(c[1]+c[2]+c[3]+c[4]>=1000){cout<<"1"<<endl; } else{cout<<"0"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:12: error: expected initializer before '>>' token 6 | cin>>c[0]>>c[1]>>c[2]>>c[3]>>c[4]; | ^~
s173888843
p00291
C++
#include<iostream> #include<stdio.h> using namespace std; int main (){ int c[5], cin>>c[0]>>c[1]>>c[2]>>c[3]>>c[4] if(c[1]+c[2]+c[3]+c[4]>=1000){cout<<"1"<<endl; } else{cout<<"0"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:12: error: expected initializer before '>>' token 7 | cin>>c[0]>>c[1]>>c[2]>>c[3]>>c[4] | ^~ a.cc:10:17: error: 'else' without a previous 'if' 10 | else{cout<<"0"<<endl; | ^~~~
s874029945
p00291
C++
#include <iostream> int mon[6] = {1, 5, 10, 50, 100, 500}; int main(){ int sum = 0,tmp; for(auto& m : mon){ std::cin >> tmp; sum += tmp * m; } std::cout << sum >= 1000 << std::endl; }
a.cc: In function 'int main()': a.cc:14:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 14 | std::cout << sum >= 1000 << std::endl; | ~~~~~^~~~~~~~~~~~
s241044070
p00291
C++
import java.util.*; class Main{ public static void main(String[] args){ Solve s = new Solve(); s.solve(); } } class Solve{ Solve(){} Scanner in = new Scanner(System.in); void solve(){ int[] a = {1,5,10,50,100,500}; int[] b = new int[6]; int sum = 0; for(int i = 0; i < 6; i++){ b[i] = in.nextInt(); sum += b[i] * a[i]; } int ans = (sum < 1000 ? 0 :1); System.out.println(ans); } } // while(in.hasNext()){ // int n = in.nextInt(); // if(n == 0) return; // }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:4:15: error: expected ':' before 'static' 4 | public static void main(String[] args){ | ^~~~~~~ | : a.cc:4:33: error: 'String' has not been declared 4 | public static void main(String[] args){ | ^~~~~~ a.cc:4:42: error: expected ',' or '...' before 'args' 4 | public static void main(String[] args){ | ^~~~ a.cc:8:2: error: expected ';' after class definition 8 | } | ^ | ; a.cc: In static member function 'static void Main::main(int*)': a.cc:5:17: error: 'Solve' was not declared in this scope 5 | Solve s = new Solve(); | ^~~~~ a.cc:6:17: error: 's' was not declared in this scope 6 | s.solve(); | ^ a.cc: At global scope: a.cc:13:9: error: 'Scanner' does not name a type 13 | Scanner in = new Scanner(System.in); | ^~~~~~~ a.cc:31:2: error: expected ';' after class definition 31 | } | ^ | ; a.cc: In member function 'void Solve::solve()': a.cc:16:20: error: structured binding declaration cannot have type 'int' 16 | int[] a = {1,5,10,50,100,500}; | ^~ a.cc:16:20: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:16:20: error: empty structured binding declaration a.cc:16:23: error: expected initializer before 'a' 16 | int[] a = {1,5,10,50,100,500}; | ^ a.cc:17:20: error: structured binding declaration cannot have type 'int' 17 | int[] b = new int[6]; | ^~ a.cc:17:20: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:17:20: error: empty structured binding declaration a.cc:17:23: error: expected initializer before 'b' 17 | int[] b = new int[6]; | ^ a.cc:22:25: error: 'b' was not declared in this scope 22 | b[i] = in.nextInt(); | ^ a.cc:22:32: error: 'in' was not declared in this scope; did you mean 'int'? 22 | b[i] = in.nextInt(); | ^~ | int a.cc:23:39: error: 'a' was not declared in this scope 23 | sum += b[i] * a[i]; | ^ a.cc:28:17: error: 'System' was not declared in this scope 28 | System.out.println(ans); | ^~~~~~
s663857024
p00291
C++
#include<iostream> using namespace std int main() { int c1, c5, c10, c50, c100, c500, sum; cin >> c1 >> c5 >> c10 >> c50 >> c100 >> c500; sum += c1 * 1 + c5 * 5 + c10 * 10 + c50 * 50 + c100 * 100 + c500 * 500; if (sum >= 1000) cout << 1 << endl; else cout << 0 << endl; }
a.cc:2:20: error: expected ';' before 'int' 2 | using namespace std | ^ | ; 3 | 4 | int main() { | ~~~
s096307416
p00291
C++
??? #include <iostream> using namespace std ; int main () { int c1 , c5 , c10 , c50 , c100 , c500 ; int a , b, c , d , e , f , y ; cin >> a >> b >> c >> d >> e >> f ; c1 = 1 ; c5 = 5 ; c10 = 10 ; c50 = 50 ; c100 = 100 ; c500 = 500 ; y = ( a * c1 ) + ( b * c5 ) + ( c*c10) + ( d*c50) + ( e*c100) + ( d * c500 ) ; if ( y >= 1000 ) { cout << "1" << endl; } else cout << "0" << endl; cout << endl; }
a.cc:1:5: error: stray '#' in program 1 | ??? #include <iostream> | ^ a.cc:1:1: error: expected unqualified-id before '?' token 1 | ??? #include <iostream> | ^ a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope 7 | cin >> a >> b >> c >> d >> e >> f ; | ^~~ a.cc:17:17: error: 'cout' was not declared in this scope 17 | cout << "1" << endl; | ^~~~ a.cc:17:32: error: 'endl' was not declared in this scope 17 | cout << "1" << endl; | ^~~~ a.cc:20:9: error: 'cout' was not declared in this scope 20 | cout << "0" << endl; | ^~~~ a.cc:20:24: error: 'endl' was not declared in this scope 20 | cout << "0" << endl; | ^~~~ a.cc:21:5: error: 'cout' was not declared in this scope 21 | cout << endl; | ^~~~ a.cc:21:13: error: 'endl' was not declared in this scope 21 | cout << endl; | ^~~~
s694517566
p00291
C++
??? #include <iostream> using namespace std ; int main () { int c1 , c5 , c10 , c50 , c100 , c500 ; int a , b, c , d , e , f , y ; cin >> a >> b >> c >> d >> e >> f ; c1 = 1 ; c5 = 5 ; c10 = 10 ; c50 = 50 ; c100 = 100 ; c500 = 500 ; y = ( a * c1 ) + ( b * c5 ) + ( c*c10) + ( d*c50) + ( e*c100) + ( d * c500 ) ; if ( y >= 1000 ) { cout << "1" << endl; } else cout << "0" << endl; }
a.cc:1:5: error: stray '#' in program 1 | ??? #include <iostream> | ^ a.cc:1:1: error: expected unqualified-id before '?' token 1 | ??? #include <iostream> | ^ a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope 7 | cin >> a >> b >> c >> d >> e >> f ; | ^~~ a.cc:17:17: error: 'cout' was not declared in this scope 17 | cout << "1" << endl; | ^~~~ a.cc:17:32: error: 'endl' was not declared in this scope 17 | cout << "1" << endl; | ^~~~ a.cc:20:9: error: 'cout' was not declared in this scope 20 | cout << "0" << endl; | ^~~~ a.cc:20:24: error: 'endl' was not declared in this scope 20 | cout << "0" << endl; | ^~~~
s686983149
p00291
C++
??? #include <iostream> using namespace std ; int main () { int c1 , c5 , c10 , c50 , c100 , c500 ; int a , b, c , d , e , f , y ; cin >> a >> b >> c >> d >> e >> f ; c1 = 1 ; c5 = 5 ; c10 = 10 ; c50 = 50 ; c100 = 100 ; c500 = 500 ; y = ( a * c1 ) + ( b * c5 ) + ( c*c10) + ( d*c50) + ( e*c100) + ( d * c500 ) ; if ( y >= 1000 ) { cout << "1" << endl; } else cout << "0" << endl; }
a.cc:1:5: error: stray '#' in program 1 | ??? #include <iostream> | ^ a.cc:1:1: error: expected unqualified-id before '?' token 1 | ??? #include <iostream> | ^ a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope 7 | cin >> a >> b >> c >> d >> e >> f ; | ^~~ a.cc:17:17: error: 'cout' was not declared in this scope 17 | cout << "1" << endl; | ^~~~ a.cc:17:32: error: 'endl' was not declared in this scope 17 | cout << "1" << endl; | ^~~~ a.cc:20:9: error: 'cout' was not declared in this scope 20 | cout << "0" << endl; | ^~~~ a.cc:20:24: error: 'endl' was not declared in this scope 20 | cout << "0" << endl; | ^~~~
s944626896
p00291
C++
??? #include <iostream> using namespace std ; int main () { int c1 , c5 , c10 , c50 , c100 , c500 ; int a , b, c , d , e , f , y ; cin >> a >> b >> c >> d >> e >> f ; c1 = 1 ; c5 = 5 ; c10 = 10 ; c50 = 50 ; c100 = 100 ; c500 = 500 ; y = ( a * c1 ) + ( b * c5 ) + ( c*c10) + ( d*c50) + ( e*c100) + ( d * c500 ) ; if ( y >= 1000 ) { cout << "1" << endl; } else cout << "0" << endl; cout << endl; }
a.cc:1:5: error: stray '#' in program 1 | ??? #include <iostream> | ^ a.cc:1:1: error: expected unqualified-id before '?' token 1 | ??? #include <iostream> | ^ a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope 7 | cin >> a >> b >> c >> d >> e >> f ; | ^~~ a.cc:17:17: error: 'cout' was not declared in this scope 17 | cout << "1" << endl; | ^~~~ a.cc:17:32: error: 'endl' was not declared in this scope 17 | cout << "1" << endl; | ^~~~ a.cc:20:9: error: 'cout' was not declared in this scope 20 | cout << "0" << endl; | ^~~~ a.cc:20:24: error: 'endl' was not declared in this scope 20 | cout << "0" << endl; | ^~~~ a.cc:21:5: error: 'cout' was not declared in this scope 21 | cout << endl; | ^~~~ a.cc:21:13: error: 'endl' was not declared in this scope 21 | cout << endl; | ^~~~
s181417105
p00291
C++
??? #include <iostream> using namespace std ; int main () { int c1 , c5 , c10 , c50 , c100 , c500 ; int a , b, c , d , e , f , y ; cin >> a >> b >> c >> d >> e >> f ; c1 = 1 ; c5 = 5 ; c10 = 10 ; c50 = 50 ; c100 = 100 ; c500 = 500 ; y = ( a * c1 ) + ( b * c5 ) + ( c*c10) + ( d*c50) + ( e*c100) + ( d * c500 ) ; if ( y >= 1000 ) { cout << "1" << endl; } else cout << "0" << endl; cout << endl; }
a.cc:1:5: error: stray '#' in program 1 | ??? #include <iostream> | ^ a.cc:1:1: error: expected unqualified-id before '?' token 1 | ??? #include <iostream> | ^ a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope 7 | cin >> a >> b >> c >> d >> e >> f ; | ^~~ a.cc:17:17: error: 'cout' was not declared in this scope 17 | cout << "1" << endl; | ^~~~ a.cc:17:32: error: 'endl' was not declared in this scope 17 | cout << "1" << endl; | ^~~~ a.cc:20:9: error: 'cout' was not declared in this scope 20 | cout << "0" << endl; | ^~~~ a.cc:20:24: error: 'endl' was not declared in this scope 20 | cout << "0" << endl; | ^~~~ a.cc:21:5: error: 'cout' was not declared in this scope 21 | cout << endl; | ^~~~ a.cc:21:13: error: 'endl' was not declared in this scope 21 | cout << endl; | ^~~~
s951268569
p00291
C++
???#include <iostream> using namespace std; int main() { int c1, c5, c10, c50, c100, c500; int a, b, c, d, e, f, y; cin >> a >> b >> c >> d >> e >> f; c1 = 1; c5 = 5; c10 = 10; c50 = 50; c100 = 100; c500 = 500; y = (a * c1) + (b * c5) + (c*c10) + (d*c50) + (e*c100) + (d * c500); if (y >= 1000) { cout << 1 << endl; } else cout << 0 << endl; cout << endl; }
a.cc:1:4: error: stray '#' in program 1 | ???#include <iostream> | ^ a.cc:1:1: error: expected unqualified-id before '?' token 1 | ???#include <iostream> | ^ a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope 7 | cin >> a >> b >> c >> d >> e >> f; | ^~~ a.cc:17:17: error: 'cout' was not declared in this scope 17 | cout << 1 << endl; | ^~~~ a.cc:17:30: error: 'endl' was not declared in this scope 17 | cout << 1 << endl; | ^~~~ a.cc:20:17: error: 'cout' was not declared in this scope 20 | cout << 0 << endl; | ^~~~ a.cc:20:30: error: 'endl' was not declared in this scope 20 | cout << 0 << endl; | ^~~~ a.cc:21:9: error: 'cout' was not declared in this scope 21 | cout << endl; | ^~~~ a.cc:21:17: error: 'endl' was not declared in this scope 21 | cout << endl; | ^~~~
s183688776
p00291
C++
#include <iostream> using namespace std; int main() { int c1, c5, c10, c50, c100, c500; int a, b, c, d, e, f, y; cin >> a >> b >> c >> d >> e >> f; c1 = 1; c5 = 5; c10 = 10; c50 = 50; c100 = 100; c500 = 500; y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); if (y >= 1000) { cout << 1 << endl; } else cout << 0 << endl; }
a.cc:14:45: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); a.cc:14:67: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc:14:90: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc:14:109: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc: In function 'int main()': a.cc:14:38: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:39: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:40: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:45: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:46: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:47: error: expected primary-expression before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:52: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:53: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:54: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:57: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:58: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:60: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:61: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:62: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:67: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:68: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:69: error: expected primary-expression before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expe
s082378361
p00291
C++
#include <iostream> using namespace std; int main() { int c1, c5, c10, c50, c100, c500; int a, b, c, d, e, f, y; cin >> a >> b >> c >> d >> e >> f; c1 = 1; c5 = 5; c10 = 10; c50 = 50; c100 = 100; c500 = 500; y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); if (y >= 1000) { cout << 1 << endl; } else???if ( y <= 1000 ) cout << 0 << endl; }
a.cc:14:45: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); a.cc:14:67: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc:14:90: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc:14:109: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc: In function 'int main()': a.cc:14:38: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:39: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:40: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:45: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:46: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:47: error: expected primary-expression before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:52: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:53: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:54: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:57: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:58: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:60: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:61: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:62: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:67: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:68: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:69: error: expected primary-expression before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expe
s646850280
p00291
C++
#include <iostream> using namespace std; int main() { int c1, c5, c10, c50, c100, c500; int a, b, c, d, e, f, y; cin >> a >> b >> c >> d >> e >> f; c1 = 1; c5 = 5; c10 = 10; c50 = 50; c100 = 100; c500 = 500; y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); if (y >= 1000) { cout << 1 << endl; } else cout << 0 << endl; }
a.cc:14:45: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); a.cc:14:67: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc:14:90: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc:14:109: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc: In function 'int main()': a.cc:14:38: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:39: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:40: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:45: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:46: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:47: error: expected primary-expression before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:52: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:53: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:54: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:57: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:58: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:60: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:61: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:62: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:67: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:68: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:69: error: expected primary-expression before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expe
s892964095
p00291
C++
#include <iostream> using namespace std; int main() { int c1, c5, c10, c50, c100, c500; int a, b, c, d, e, f, y; cin >> a >> b >> c >> d >> e >> f; c1 = 1; c5 = 5; c10 = 10; c50 = 50; c100 = 100; c500 = 500; y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); if (y >= 1000) { cout << "1" << endl; } else cout << "0" << endl; }
a.cc:14:45: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); a.cc:14:67: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc:14:90: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc:14:109: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc: In function 'int main()': a.cc:14:38: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:39: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:40: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:45: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:46: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:47: error: expected primary-expression before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:47: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:47: error: expected primary-expression before ')' token a.cc:14:52: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:53: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:54: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:57: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:58: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:60: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:61: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:62: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:67: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:68: error: expected primary-expression before '?' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:69: error: expected primary-expression before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expected primary-expression before ')' token a.cc:14:69: error: expected ':' before ')' token 14 | y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???); | ^ | : a.cc:14:69: error: expe
s051969296
p00291
C++
#include <iostream> using namespacce std; int main((){ int c1.c5,c10,c50,c100,c500; cin>>c1>>c5>>c10>>c50>>c100>>c500; if(c1*1+c5*5+c10*10+c50*50+c100*100+c500*500>=1000){ cout<<"1"<<endl; else{ cout<<"0"<<endl; } return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namespacce' 2 | using namespacce std; | ^~~~~~~~~~ a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main((){ | ^~~~ a.cc:3:11: error: expected primary-expression before ')' token 3 | int main((){ | ^