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;
| ... |
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>ĉ>d;
cout<<c*d<<endl;
return 0;
} | a.cc:5:6: error: stray '#' in program
5 | cin>ĉ>d;
| ^
a.cc: In function 'int main()':
a.cc:5:7: error: lvalue required as unary '&' operand
5 | cin>ĉ>d;
| ^~~
a.cc:5:11: error: expected primary-expression before '>' token
5 | cin>ĉ>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:... |
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 exi... |
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: 'e... |
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: 'e... |
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>
#... | 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,... |
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>
#... | 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,... |
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... |
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 ... |
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... |
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>::__istr... |
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();
... | 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 ';' befo... |
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);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
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);
| ^~~~~~~~~~~~~~~~~~~~~~... |
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);
| ^~~~~
m... |
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 * in... |
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'
... |
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... |
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... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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'
... |
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 ... |
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");
... | 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 m... |
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 ... |
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 ... |
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 ... |
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: erro... |
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 | c... |
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... |
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-... |
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(){
... | 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 | in... |
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.next... | 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:... |
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 )... | 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 ... |
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 )... | 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 ... |
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 )... | 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 ... |
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 )... | 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 ... |
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 )... | 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 ... |
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... | 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;
... |
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???... | 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 ??) i... |
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???... | 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 ??) i... |
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???... | 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 ??) i... |
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???... | 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 ??) i... |
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((){
| ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.