submission_id
stringlengths 10
10
| problem_id
stringlengths 6
6
| language
stringclasses 3
values | code
stringlengths 1
522k
| compiler_output
stringlengths 43
10.2k
|
|---|---|---|---|---|
s910670924
|
p00014
|
C
|
#include <stdio.h>
int area(int x,int d);
int main(void) {
int x, s, d, i, j;
scanf("%d", &d);
x = 600 / d;
s = 0;
for (j = 1; j < x; j++) {
s += area(j,d);
}
printf("%d\n", s);
}
return 0;
int area(int x,int d) {
return d*(600-x*d)*(600-x*d);
}
|
main.c:14:9: error: expected identifier or '(' before 'return'
14 | return 0;
| ^~~~~~
|
s417882262
|
p00014
|
C
|
#include <iostream>
#include <cstdio>
using namespace std;
int area(int d) {
int d, x,;
d = x*x
for(x = 1; x <= 600; x++)
sum = sum + i
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s247518423
|
p00014
|
C
|
#include <stdio.h>
int main(void){
int i,d,b,s,t,y,sum=0;
while(scanf("%d", &d)!= EOF) {
b=600/d;
for(i=1;i<b;i++){
y=i*d;
t=y*y;
s=d*t;
sum+=s;
}
printf("%d",sum);
if(d == 0) {
break;
}
}
return 0;
}
|
main.c: In function 'main':
main.c:20:2: error: stray '\343' in program
20 | <U+3000> break;
| ^~~~~~~~
main.c:21:1: error: stray '\343' in program
21 | <U+3000> }
| ^~~~~~~~
main.c:24:1: error: stray '\343' in program
24 | <U+3000>
| ^~~~~~~~
|
s859513312
|
p00014
|
C
|
#include<stdio.h>
int main(void)
{
int d,i,a,s;
scanf("%d", &d)!= EOF
for(i=0;i<=(600-d);i+=d)
{
s=0;
a=d*(i*i);
s+=a;
}
printf("%d\n",s);
return 0;
}
|
main.c: In function 'main':
main.c:8:3: error: expected ';' before 'for'
8 | for(i=0;i<=(600-d);i+=d)
| ^~~
|
s463519975
|
p00014
|
C
|
#include<stdio.h>
int main(void)
{
int d,i,a,s;
while(scanf("%d", &d)!= EOF){
for(i=0;i<=(600/d);i++)
{
s=0;
a=d*(i*d*i*d);
s+=a;
}
printf("%d\n",s);
iof(d==0){
break;}
}
return 0;
}
|
main.c: In function 'main':
main.c:14:1: error: implicit declaration of function 'iof' [-Wimplicit-function-declaration]
14 | iof(d==0){
| ^~~
main.c:14:10: error: expected ';' before '{' token
14 | iof(d==0){
| ^
| ;
|
s857491302
|
p00014
|
C
|
#include<stdio.h>
int main(void)
{
int d,i,a,s,b;
while(scanf("%d", &d)!= EOF){
s=0;
b=(600/d)
for(i=1;i<b;i++)
{
a=d*(i*d*i*d);
s+=a;
}
printf("%d\n",s);
if(d==0){
break;}
}
return 0;
}
|
main.c: In function 'main':
main.c:7:15: error: expected ';' before 'for'
7 | b=(600/d)
| ^
| ;
8 | for(i=1;i<b;i++)
| ~~~
|
s357724710
|
p00014
|
C
|
#include <iostream>
#include <cstdio>
using namespace std;
int area(int d) {
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s317163090
|
p00014
|
C
|
#include <iostream>
#include <cstdio>
using namespace std;
int area(int d) {
return (d*d);
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
main.c:2:10: fatal error: iostream: No such file or directory
2 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s266706659
|
p00014
|
C
|
#include <stdio.h>>
int f(int d) {
return (d*d);
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n",f(d));
}
return 0;
}
|
main.c:1:19: warning: extra tokens at end of #include directive
1 | #include <stdio.h>>
| ^
main.c: In function 'f':
main.c:3:1: error: stray '\343' in program
3 | <U+3000><U+3000>return (d*d);
| ^~~~~~~~
main.c:3:3: error: stray '\343' in program
3 | <U+3000><U+3000>return (d*d);
| ^~~~~~~~
|
s801514896
|
p00014
|
C
|
#include <stdio.h>>
int f(int d) {
return (d*d);
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n",f(d)*d);
}
return 0;
}
|
main.c:1:19: warning: extra tokens at end of #include directive
1 | #include <stdio.h>>
| ^
main.c: In function 'f':
main.c:3:1: error: stray '\343' in program
3 | <U+3000><U+3000>return (d*d);
| ^~~~~~~~
main.c:3:3: error: stray '\343' in program
3 | <U+3000><U+3000>return (d*d);
| ^~~~~~~~
|
s961035517
|
p00014
|
C
|
#include <stdio.h>
int area(int d) {
int i,n,x,y,s,sum;
n = 600/d ;
for (i=0; i < n; i++){
x = i*d;
y = x*x;
s= y*d;
sum=sum+s;
}
return sum;
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
main.c: In function 'area':
main.c:8:1: error: stray '\343' in program
8 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:8:3: error: stray '\343' in program
8 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:9:1: error: stray '\343' in program
9 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:9:3: error: stray '\343' in program
9 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:10:1: error: stray '\343' in program
10 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:10:3: error: stray '\343' in program
10 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:11:1: error: stray '\343' in program
11 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:11:3: error: stray '\343' in program
11 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:12:1: error: stray '\343' in program
12 | <U+3000><U+3000>
| ^~~~~~~~
main.c:12:3: error: stray '\343' in program
12 | <U+3000><U+3000>
| ^~~~~~~~
main.c:13:1: error: stray '\343' in program
13 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:13:3: error: stray '\343' in program
13 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:14:1: error: stray '\343' in program
14 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:14:3: error: stray '\343' in program
14 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:15:1: error: stray '\343' in program
15 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:15:3: error: stray '\343' in program
15 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:16:1: error: stray '\343' in program
16 | <U+3000>
| ^~~~~~~~
main.c:17:1: error: stray '\343' in program
17 | <U+3000><U+3000>
| ^~~~~~~~
main.c:17:3: error: stray '\343' in program
17 | <U+3000><U+3000>
| ^~~~~~~~
|
s648382499
|
p00014
|
C
|
#include <stdio.h>
int area(int d) {
int i,n,x,y,s,sum=0;
n = 600/d ;
for (i=0; i < n; i++){
x = i*d;
y = x*x;
s= y*d;
sum=sum+s;
}
return sum;
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
main.c: In function 'area':
main.c:8:1: error: stray '\343' in program
8 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:8:3: error: stray '\343' in program
8 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:9:1: error: stray '\343' in program
9 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:9:3: error: stray '\343' in program
9 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:10:1: error: stray '\343' in program
10 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:10:3: error: stray '\343' in program
10 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:11:1: error: stray '\343' in program
11 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:11:3: error: stray '\343' in program
11 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:12:1: error: stray '\343' in program
12 | <U+3000><U+3000>
| ^~~~~~~~
main.c:12:3: error: stray '\343' in program
12 | <U+3000><U+3000>
| ^~~~~~~~
main.c:13:1: error: stray '\343' in program
13 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:13:3: error: stray '\343' in program
13 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:14:1: error: stray '\343' in program
14 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:14:3: error: stray '\343' in program
14 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:15:1: error: stray '\343' in program
15 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:15:3: error: stray '\343' in program
15 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:16:1: error: stray '\343' in program
16 | <U+3000>
| ^~~~~~~~
main.c:17:1: error: stray '\343' in program
17 | <U+3000><U+3000>
| ^~~~~~~~
main.c:17:3: error: stray '\343' in program
17 | <U+3000><U+3000>
| ^~~~~~~~
|
s200024912
|
p00014
|
C
|
#include <stdio.h>
int area(int d) {
int i,n,x,y,s,sum=0;
n = 600/d ;
for (i=0; i < n; i++){
x = i*d;
y = x*x;
s= y*d;
sum=sum+s;
}
return sum;
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
main.c: In function 'area':
main.c:8:1: error: stray '\343' in program
8 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:8:3: error: stray '\343' in program
8 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:9:1: error: stray '\343' in program
9 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:9:3: error: stray '\343' in program
9 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:10:1: error: stray '\343' in program
10 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:10:3: error: stray '\343' in program
10 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:11:1: error: stray '\343' in program
11 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:11:3: error: stray '\343' in program
11 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:12:1: error: stray '\343' in program
12 | <U+3000><U+3000>
| ^~~~~~~~
main.c:12:3: error: stray '\343' in program
12 | <U+3000><U+3000>
| ^~~~~~~~
main.c:13:1: error: stray '\343' in program
13 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:13:3: error: stray '\343' in program
13 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:14:1: error: stray '\343' in program
14 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:14:3: error: stray '\343' in program
14 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:15:1: error: stray '\343' in program
15 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:15:3: error: stray '\343' in program
15 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:16:1: error: stray '\343' in program
16 | <U+3000>
| ^~~~~~~~
main.c:17:1: error: stray '\343' in program
17 | <U+3000><U+3000>
| ^~~~~~~~
main.c:17:3: error: stray '\343' in program
17 | <U+3000><U+3000>
| ^~~~~~~~
|
s720114909
|
p00014
|
C
|
#include <stdio.h>double zenka(double q){ double x=q/2; while(x*x*x-q>=0.00001*q || x*x*x-q<=-0.00001*q) { x=x-((x*x*x)-q)/(3*x*x); } return x;}int main(void){ int q; while(1) { scanf("%d",&q); if(q==-1) break; else { printf("%.7f\n",zenka(q)); } } return 0;}
|
main.c:2:19: warning: extra tokens at end of #include directive
2 | #include <stdio.h>double zenka(double q){ double x=q/2; while(x*x*x-q>=0.00001*q || x*x*x-q<=-0.00001*q) { x=x-((x*x*x)-q)/(3*x*x); } return x;}int main(void){ int q; while(1) { scanf("%d",&q); if(q==-1) break; else { printf("%.7f\n",zenka(q)); } } 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
|
s636192653
|
p00014
|
C
|
#include <stdio.h>
int area(int d) {
int i=0,n,x,y,s,sum=0;
n = 600/d ;
for (i=0; i < n; i++){
x = i*d;
y = x*x;
s= y*d;
sum=sum+s;
}
return sum;
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
main.c: In function 'area':
main.c:8:1: error: stray '\343' in program
8 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:8:3: error: stray '\343' in program
8 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:9:1: error: stray '\343' in program
9 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:9:3: error: stray '\343' in program
9 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:10:1: error: stray '\343' in program
10 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:10:3: error: stray '\343' in program
10 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:11:1: error: stray '\343' in program
11 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:11:3: error: stray '\343' in program
11 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:12:1: error: stray '\343' in program
12 | <U+3000><U+3000>
| ^~~~~~~~
main.c:12:3: error: stray '\343' in program
12 | <U+3000><U+3000>
| ^~~~~~~~
main.c:13:1: error: stray '\343' in program
13 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:13:3: error: stray '\343' in program
13 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:14:1: error: stray '\343' in program
14 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:14:3: error: stray '\343' in program
14 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:15:1: error: stray '\343' in program
15 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:15:3: error: stray '\343' in program
15 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:16:1: error: stray '\343' in program
16 | <U+3000>
| ^~~~~~~~
main.c:17:1: error: stray '\343' in program
17 | <U+3000><U+3000>
| ^~~~~~~~
main.c:17:3: error: stray '\343' in program
17 | <U+3000><U+3000>
| ^~~~~~~~
|
s725751013
|
p00014
|
C
|
#include <stdio.h>
int area(int d) {
int i=0,sum=0;
int n,x,y,s;
n = 600/d ;
for (i=0; i < n; i++){
x = i*d;
y = x*x;
s= y*d;
sum=sum+s;
}
return sum;
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
main.c: In function 'area':
main.c:9:1: error: stray '\343' in program
9 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:9:3: error: stray '\343' in program
9 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:10:1: error: stray '\343' in program
10 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:10:3: error: stray '\343' in program
10 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:11:1: error: stray '\343' in program
11 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:11:3: error: stray '\343' in program
11 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:12:1: error: stray '\343' in program
12 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:12:3: error: stray '\343' in program
12 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:13:1: error: stray '\343' in program
13 | <U+3000><U+3000>
| ^~~~~~~~
main.c:13:3: error: stray '\343' in program
13 | <U+3000><U+3000>
| ^~~~~~~~
main.c:14:1: error: stray '\343' in program
14 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:14:3: error: stray '\343' in program
14 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:15:1: error: stray '\343' in program
15 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:15:3: error: stray '\343' in program
15 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:16:1: error: stray '\343' in program
16 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:16:3: error: stray '\343' in program
16 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:17:1: error: stray '\343' in program
17 | <U+3000>
| ^~~~~~~~
main.c:18:1: error: stray '\343' in program
18 | <U+3000><U+3000>
| ^~~~~~~~
main.c:18:3: error: stray '\343' in program
18 | <U+3000><U+3000>
| ^~~~~~~~
|
s397582558
|
p00014
|
C
|
#include <stdio.h>
int area(int d) {
int sum=0;
int n,x,y,s;
n = 600/d ;
for (i=0; i < n; i++){
x = i*d;
y = x*x;
s= y*d;
sum=sum+s;
}
return sum;
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
main.c: In function 'area':
main.c:9:1: error: stray '\343' in program
9 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:9:3: error: stray '\343' in program
9 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:9:10: error: 'i' undeclared (first use in this function)
9 | for (i=0; i < n; i++){
| ^
main.c:9:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:1: error: stray '\343' in program
10 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:10:3: error: stray '\343' in program
10 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:11:1: error: stray '\343' in program
11 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:11:3: error: stray '\343' in program
11 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:12:1: error: stray '\343' in program
12 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:12:3: error: stray '\343' in program
12 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:13:1: error: stray '\343' in program
13 | <U+3000><U+3000>
| ^~~~~~~~
main.c:13:3: error: stray '\343' in program
13 | <U+3000><U+3000>
| ^~~~~~~~
main.c:14:1: error: stray '\343' in program
14 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:14:3: error: stray '\343' in program
14 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:15:1: error: stray '\343' in program
15 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:15:3: error: stray '\343' in program
15 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:16:1: error: stray '\343' in program
16 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:16:3: error: stray '\343' in program
16 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:17:1: error: stray '\343' in program
17 | <U+3000>
| ^~~~~~~~
main.c:18:1: error: stray '\343' in program
18 | <U+3000><U+3000>
| ^~~~~~~~
main.c:18:3: error: stray '\343' in program
18 | <U+3000><U+3000>
| ^~~~~~~~
|
s388491204
|
p00014
|
C
|
#include <iostream>
#include <cstdio>
using namespace std;
int gcd(int a, int b) {
int x,y;
int a,b,s;
}
int main(void){
int a, b;
while(cin >> a >> b) {
int lcm = ...
cout << gcd(a,b) << " " << lcm << endl;
}
return 0;
}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s890024903
|
p00014
|
C
|
#include <stdio.h>
int area(int d) {
n = 600/d ;
for (i=1; i <= n; i++){
x = i*d;
y = x*x;
s= y*d;
area(d)+=s;
}
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
#include <stdio.h>
int area(int d) {
int i=0,n,x,y,s,sum=0;
n = 600/d ;
for (i=0; i < n; i++){
x = i*d;
y = x*x;
s= y*d;
sum=sum+s;
}
return sum;
}
|
main.c: In function 'area':
main.c:5:6: error: 'n' undeclared (first use in this function)
5 | n = 600/d ;
| ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: stray '\343' in program
6 | <U+3000><U+3000>for (i=1; i <= n; i++){
| ^~~~~~~~
main.c:6:3: error: stray '\343' in program
6 | <U+3000><U+3000>for (i=1; i <= n; i++){
| ^~~~~~~~
main.c:6:10: error: 'i' undeclared (first use in this function)
6 | for (i=1; i <= n; i++){
| ^
main.c:7:1: error: stray '\343' in program
7 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:7:3: error: stray '\343' in program
7 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:7:9: error: 'x' undeclared (first use in this function)
7 | x = i*d;
| ^
main.c:8:1: error: stray '\343' in program
8 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:8:3: error: stray '\343' in program
8 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:8:9: error: 'y' undeclared (first use in this function)
8 | y = x*x;
| ^
main.c:9:1: error: stray '\343' in program
9 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:9:3: error: stray '\343' in program
9 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:9:9: error: 's' undeclared (first use in this function)
9 | s= y*d;
| ^
main.c:10:1: error: stray '\343' in program
10 | <U+3000><U+3000>
| ^~~~~~~~
main.c:10:3: error: stray '\343' in program
10 | <U+3000><U+3000>
| ^~~~~~~~
main.c:11:1: error: stray '\343' in program
11 | <U+3000><U+3000> area(d)+=s;
| ^~~~~~~~
main.c:11:3: error: stray '\343' in program
11 | <U+3000><U+3000> area(d)+=s;
| ^~~~~~~~
main.c:12:1: error: stray '\343' in program
12 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:12:3: error: stray '\343' in program
12 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:13:1: error: stray '\343' in program
13 | <U+3000><U+3000>
| ^~~~~~~~
main.c:13:3: error: stray '\343' in program
13 | <U+3000><U+3000>
| ^~~~~~~~
main.c:14:1: error: stray '\343' in program
14 | <U+3000>
| ^~~~~~~~
main.c:15:1: error: stray '\343' in program
15 | <U+3000><U+3000>
| ^~~~~~~~
main.c:15:3: error: stray '\343' in program
15 | <U+3000><U+3000>
| ^~~~~~~~
main.c: At top level:
main.c:27:5: error: redefinition of 'area'
27 | int area(int d) {
| ^~~~
main.c:3:5: note: previous definition of 'area' with type 'int(int)'
3 | int area(int d) {
| ^~~~
main.c: In function 'area':
main.c:32:1: error: stray '\343' in program
32 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:32:3: error: stray '\343' in program
32 | <U+3000><U+3000>for (i=0; i < n; i++){
| ^~~~~~~~
main.c:33:1: error: stray '\343' in program
33 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:33:3: error: stray '\343' in program
33 | <U+3000><U+3000> x = i*d;
| ^~~~~~~~
main.c:34:1: error: stray '\343' in program
34 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:34:3: error: stray '\343' in program
34 | <U+3000><U+3000> y = x*x;
| ^~~~~~~~
main.c:35:1: error: stray '\343' in program
35 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:35:3: error: stray '\343' in program
35 | <U+3000><U+3000> s= y*d;
| ^~~~~~~~
main.c:36:1: error: stray '\343' in program
36 | <U+3000><U+3000>
| ^~~~~~~~
main.c:36:3: error: stray '\343' in program
36 | <U+3000><U+3000>
| ^~~~~~~~
main.c:37:1: error: stray '\343' in program
37 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:37:3: error: stray '\343' in program
37 | <U+3000><U+3000> sum=sum+s;
| ^~~~~~~~
main.c:38:1: error: stray '\343' in program
38 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:38:3: error: stray '\343' in program
38 | <U+3000><U+3000>}
| ^~~~~~~~
main.c:39:1: error: stray '\343' in program
39 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:39:3: error: stray '\343' in program
39 | <U+3000><U+3000>return sum;
| ^~~~~~~~
main.c:40:1: error: stray '\343' in program
40 | <U+3000>
| ^~~~~~~~
main.c:41:1: error: stray '\343' in program
41 | <U+3000><U+3000>
| ^~~~~~~~
main.c:41:3: error: stray '\343' in program
41 | <U+3000><U+3000>
| ^~~~~~~~
|
s464848634
|
p00014
|
C
|
#include <studio.h>
int y(x) {
return x*x;
}
int area (int d) {
int s=0, i;
for (i=0;i<600;i+=d) {
s+=y(i)*d;
}
return s;
}
int main (void) {
int d, s;
while (scanf("%d", &d)!=EOF) {
s=area (d);
printf("%d\n", s);
}
return 0;
}
|
main.c:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h>
| ^~~~~~~~~~
compilation terminated.
|
s489304581
|
p00014
|
C
|
#include <stdio.h>
int f(int x){
return x*x;
}
int area(int d)
{
int i = 0, a, b, c = 0;
a = 600/d;
for(i = 0; i < a; i++){
b = d*f(i*d);
c = c + b;
}
return c;
int main(void)
{
int d;
while(scanf("%d",&d)!=EOF){
printf("%d\n",area(d));
}
return(0);
}
|
main.c: In function 'area':
main.c:23:1: error: expected declaration or statement at end of input
23 | }
| ^
|
s394195552
|
p00014
|
C
|
#include<stdio.h>
main(){
a,b,i;
while(~scanf("%d",&a)){
b=i=0;
for(;i<600/a;){
b+=a*i*a*i++*a;
}
printf("%d\n",b);
}
}
|
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
2 | main(){
| ^~~~
main.c: In function 'main':
main.c:3:1: error: 'a' undeclared (first use in this function)
3 | a,b,i;
| ^
main.c:3:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:3: error: 'b' undeclared (first use in this function)
3 | a,b,i;
| ^
main.c:3:5: error: 'i' undeclared (first use in this function)
3 | a,b,i;
| ^
|
s041682382
|
p00014
|
C
|
a;main(){for(;~scanf("%d",&a);a=!printf("%d\n",72e6-d*18e4+d*d*100));}
|
main.c:1:1: warning: data definition has no type or storage class
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d\n",72e6-d*18e4+d*d*100));}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d\n",72e6-d*18e4+d*d*100));}
| ^~~~
main.c: In function 'main':
main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d\n",72e6-d*18e4+d*d*100));}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d\n",72e6-d*18e4+d*d*100));}
main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d\n",72e6-d*18e4+d*d*100));}
| ^~~~~
main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:34: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d\n",72e6-d*18e4+d*d*100));}
| ^~~~~~
main.c:1:34: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:34: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:34: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:53: error: 'd' undeclared (first use in this function)
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d\n",72e6-d*18e4+d*d*100));}
| ^
main.c:1:53: note: each undeclared identifier is reported only once for each function it appears in
|
s356263445
|
p00014
|
C
|
a;main(){for(;~scanf("%d",&a);a=!printf("%d00\n",(600-d)*(1200-d)));}
|
main.c:1:1: warning: data definition has no type or storage class
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d00\n",(600-d)*(1200-d)));}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d00\n",(600-d)*(1200-d)));}
| ^~~~
main.c: In function 'main':
main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d00\n",(600-d)*(1200-d)));}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d00\n",(600-d)*(1200-d)));}
main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d00\n",(600-d)*(1200-d)));}
| ^~~~~
main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:34: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d00\n",(600-d)*(1200-d)));}
| ^~~~~~
main.c:1:34: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:34: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:34: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:55: error: 'd' undeclared (first use in this function)
1 | a;main(){for(;~scanf("%d",&a);a=!printf("%d00\n",(600-d)*(1200-d)));}
| ^
main.c:1:55: note: each undeclared identifier is reported only once for each function it appears in
|
s840180829
|
p00014
|
C
|
#include<stdio.h>
int main(void){
__int64 s=0,d,tate;
int i;
while(scanf("%I64u",&d)==1){
for(i=1;i<600;i++){
tate=i*d;
if(tate>600-d)
break;
tate*=tate;
s+=tate*d;
}
printf("%I64u\n",s);
s=0;
}
return 0;
}
|
main.c: In function 'main':
main.c:4:9: error: unknown type name '__int64'; did you mean '__int64_t'?
4 | __int64 s=0,d,tate;
| ^~~~~~~
| __int64_t
|
s184858356
|
p00014
|
C
|
#include<iostream>
using namespace std;
int main(){
int n;
while(cin >>n){
int sum = 0;
for(int i=0;i<600;i+=n){sum+=i*i*n}
cout <<sum<<endl;
}
return 0;
}
|
main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s703479300
|
p00014
|
C
|
#include<stdio.h>
int main(){
int a,d,c;
while(~scanf("%d",&d)){
for(c=0;c<=600;c+=d){a+=c*c*d}
printf("%d",a);
}
return 0;
}
|
main.c: In function 'main':
main.c:5:46: error: expected ';' before '}' token
5 | for(c=0;c<=600;c+=d){a+=c*c*d}
| ^
| ;
|
s369626243
|
p00014
|
C
|
#include <stdio.h>
int main(void)
{
int d;
int i;
__int64 sum;
while (scanf("%d", &d) != EOF){
sum = 0;
for (i = 1; i * d <= 600 - d; i++){
sum += ((i * d) * (i * d)) * d;
}
printf("%I64d\n", sum);
}
return (0);
}
|
main.c: In function 'main':
main.c:7:9: error: unknown type name '__int64'; did you mean '__int64_t'?
7 | __int64 sum;
| ^~~~~~~
| __int64_t
|
s446546822
|
p00014
|
C
|
#include <stdio.h>
#define sqr(x) ((x) * (x))
int main()
{
int d;
unsigned long s;
while(scanf("%d",&d)!=EOF){
if(600%d!=0) break;
int i;
for(i=d; i<600; i+=d){
s += sqr(i)*d;
}
printf("%lu\n",s);
return 0;
}
|
main.c: In function 'main':
main.c:16:1: error: expected declaration or statement at end of input
16 | }
| ^
|
s722804538
|
p00014
|
C
|
#include <stdio.h>
#define sqr(x) ((x) * (x))
int main()
{
while(scanf("%d",&d)!=EOF){
int d=0;
unsigned long s=0;
if(600%d!=0) break;
int i;
for(i=d; i<600; i+=d){
s += sqr(i)*d;
}
printf("%lu\n",s);
}
return 0;
}
|
main.c: In function 'main':
main.c:6:21: error: 'd' undeclared (first use in this function)
6 | while(scanf("%d",&d)!=EOF){
| ^
main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
|
s509833304
|
p00014
|
C
|
#include<stdio.h>
#include<math.h>
int main(void){
int d;
while(scan("%d",&d)!=EOF){
printf("%d",600*(600-d)*d*d);
}
return 0;
}
|
main.c: In function 'main':
main.c:5:11: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | while(scan("%d",&d)!=EOF){
| ^~~~
| scanf
|
s241505830
|
p00014
|
C
|
#include<stdio.h>
#include<math.h>
int main(void){
int d,i;
long long int a=0;
while(scanf("%d",&d)!=EOF){
for(i=1; i<(600/d); i++){
a+=(d*d*d*i+i);
}
printf("%lld\n",a);
return 0;
}
|
main.c: In function 'main':
main.c:12:1: error: expected declaration or statement at end of input
12 | }
| ^
|
s050646069
|
p00014
|
C++
|
#include<iostream>
using namespace std;
int n;
int a[1000000];
int sum[1000000];
int main(int argc, char const *argv[])
{
int d;
int ans = 0;
while (cin>>d)
{
ans =0;
for (int i = d; i < 600;i+=d )
{
ans += d*(i-d)*(i-d)
}
cout<<ans;
}
return 0;
}
|
a.cc: In function 'int main(int, const char**)':
a.cc:16:45: error: expected ';' before '}' token
16 | ans += d*(i-d)*(i-d)
| ^
| ;
17 | }
| ~
|
s591885844
|
p00014
|
C++
|
00:00 sec 3148 KB 264 bytes
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <math.h>
using namespace std;
int main(){
int d,sum;
while(scanf("%d",&d)!=EOF){
sum = 0;
for(int i=d;i<=600;i+=d){
sum += d*(i-d)*(i-d);
}
printf("%d\n",sum);
}
return 0;
}
|
a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 00:00 sec 3148 KB 264 bytes
| ^~
In file included from /usr/include/wchar.h:53,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40,
from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:3:
/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h:6:9: error: '__mbstate_t' does not name a type
6 | typedef __mbstate_t mbstate_t;
| ^~~~~~~~~~~
/usr/include/wchar.h:104:59: error: 'size_t' has not been declared
104 | const wchar_t *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/wchar.h:109:8: error: 'size_t' does not name a type
109 | extern size_t wcslcpy (wchar_t *__restrict __dest,
| ^~~~~~
/usr/include/wchar.h:61:1: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
60 | # include <bits/types/locale_t.h>
+++ |+#include <cstddef>
61 | #endif
/usr/include/wchar.h:115:8: error: 'size_t' does not name a type
115 | extern size_t wcslcat (wchar_t *__restrict __dest,
| ^~~~~~
/usr/include/wchar.h:115:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:126:59: error: 'size_t' has not been declared
126 | const wchar_t *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/wchar.h:133:63: error: 'size_t' has not been declared
133 | extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
| ^~~~~~
/usr/include/wchar.h:142:25: error: 'size_t' has not been declared
142 | size_t __n) __THROW;
| ^~~~~~
/usr/include/wchar.h:150:27: error: 'size_t' has not been declared
150 | size_t __n, locale_t __loc) __THROW;
| ^~~~~~
/usr/include/wchar.h:159:8: error: 'size_t' does not name a type
159 | extern size_t wcsxfrm (wchar_t *__restrict __s1,
| ^~~~~~
/usr/include/wchar.h:159:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:174:8: error: 'size_t' does not name a type
174 | extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2,
| ^~~~~~
/usr/include/wchar.h:174:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:212:8: error: 'size_t' does not name a type
212 | extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject)
| ^~~~~~
/usr/include/wchar.h:212:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:216:8: error: 'size_t' does not name a type
216 | extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept)
| ^~~~~~
/usr/include/wchar.h:216:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:247:8: error: 'size_t' does not name a type
247 | extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
| ^~~~~~
/usr/include/wchar.h:247:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:265:8: error: 'size_t' does not name a type
265 | extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen)
| ^~~~~~
/usr/include/wchar.h:265:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:272:59: error: 'size_t' has not been declared
272 | extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n)
| ^~~~~~
/usr/include/wchar.h:275:38: error: 'size_t' has not been declared
275 | size_t __n)
| ^~~~~~
/usr/include/wchar.h:283:63: error: 'size_t' has not been declared
283 | extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
| ^~~~~~
/usr/include/wchar.h:288:58: error: 'size_t' has not been declared
288 | const wchar_t *__restrict __s2, size_t __n) __THROW;
| ^~~~~~
/usr/include/wchar.h:292:63: error: 'size_t' has not been declared
292 | extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n)
| ^~~~~~
/usr/include/wchar.h:296:53: error: 'size_t' has not been declared
296 | extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW;
| ^~~~~~
/usr/include/wchar.h:302:59: error: 'size_t' has not been declared
302 | const wchar_t *__restrict __s2, size_t __n)
| ^~~~~~
/usr/include/wchar.h:317:27: error: 'mbstate_t' does not name a type
317 | extern int mbsinit (const mbstate_t *__ps) __THROW __attribute_pure__;
| ^~~~~~~~~
/usr/include/wchar.h:321:8: error: 'size_t' does not name a type
321 | extern size_t mbrtowc (wchar_t *__restrict __pwc,
| ^~~~~~
/usr/include/wchar.h:321:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:326:8: error: 'size_t' does not name a type
326 | extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
| ^~~~~~
/usr/include/wchar.h:326:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:330:8: error: 'size_t' does not name a type
330 | extern size_t __mbrlen (const char *__restrict __s, size_t __n,
| ^~~~~~
/usr/include/wchar.h:330:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:332:8: error: 'size_t' does not name a type
332 | extern size_t mbrlen (const char *__restrict __s, size_t __n,
| ^~~~~~
/usr/include/wchar.h:332:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:362:8: error: 'size_t' does not name a type
362 | extern size_t mbsrtowcs (wchar_t *__restrict __dst,
| ^~~~~~
/usr/include/wchar.h:362:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:368:8: error: 'size_t' does not name a type
368 | extern size_t wcsrtombs (char *__restrict __dst,
| ^~~~~~
/usr/include/wchar.h:368:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:376:8: error: 'size_t' does not name a type
376 | extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
| ^~~~~~
/usr/include/wchar.h:376:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:382:8: error: 'size_t' does not name a type
382 | extern size_t wcsnrtombs (char *__restrict __dst,
| ^~~~~~
/usr/include/wchar.h:382:8: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
/usr/include/wchar.h:396:42: error: 'size_t' has not been declared
396 | extern int wcswidth (const wchar_t *__s, size_t __n) __THROW;
| ^~~~~~
/usr/include/wchar.h:695:59: error: 'size_t' has not been declared
695 | const wchar_t *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/wchar.h:718:8: error: '__FILE' does not name a type; did you mean 'EMFILE'?
718 | extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __THROW
| ^~~~~~
| EMFILE
/usr/include/wchar.h:725:19: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
725 | extern int fwide (__FILE *__fp, int __mode) __THROW;
| ^~~~~~
| EMFILE
/usr/include/wchar.h:725:27: error: '__fp' was not declared in this scope
725 | extern int fwide (__FILE *__fp, int __mode) __THROW;
| ^~~~
/usr/include/wchar.h:725:33: error: expected primary-expression before 'int'
725 | extern int fwide (__FILE *__fp, int __mode) __THROW;
| ^~~
/usr/include/wchar.h:725:43: error: expression list treated as compound expression in initializer [-fpermissive]
725 | extern int fwide (__FILE *__fp, int __mode) __THROW;
| ^
/usr/include/wchar.h:732:22: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
732 | extern int fwprintf (__FILE *__restrict __stream,
| ^~~~~~
| EMFILE
/usr/include/wchar.h:732:30: error: expected primary-expression before '__restrict'
732 | extern int fwprintf (__FILE *__restrict __stream,
| ^~~~~~~~~~
/usr/include/wchar.h:733:22: error: expected primary-expression before 'const'
733 | const wchar_t *__restrict __format, ...)
| ^~~~~
/usr/include/wchar.h:733:58: error: expected primary-expression before '...' token
733 | const wchar_t *__restrict __format, ...)
|
|
s573166683
|
p00014
|
C++
|
#include <iostream>
using namespace std;
int main(){
int d;
while(cin >> d){
int s=0;
while(int i, i*d < 600, i++){
s += (i*d*d)
}
cin << s << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:28: error: expected initializer before ',' token
8 | while(int i, i*d < 600, i++){
| ^
a.cc:8:28: error: expected ')' before ',' token
8 | while(int i, i*d < 600, i++){
| ~ ^
| )
a.cc:8:28: error: expected primary-expression before ',' token
a.cc:11:21: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
11 | cin << s << endl;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:11:21: note: candidate: 'operator<<(int, int)' (built-in)
11 | cin << s << endl;
| ~~~~^~~~
a.cc:11:21: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
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/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
11 | cin << s << endl;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:11:17: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
11 | cin << s << endl;
| ^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
11 | cin << s << endl;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:11:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
11 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)
|
s735630456
|
p00014
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
// y = x^2
int d, i, s;
s = 0;
for(cin >> d){
for (i = 0; i < (600/d); ++i){
s = s + (i * d) * (i * d) * d;
}
cout << s << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before ')' token
8 | for(cin >> d){
| ^
| ;
a.cc:14:1: error: expected primary-expression before '}' token
14 | }
| ^
a.cc:13:6: error: expected ';' before '}' token
13 | }
| ^
| ;
14 | }
| ~
a.cc:14:1: error: expected primary-expression before '}' token
14 | }
| ^
a.cc:13:6: error: expected ')' before '}' token
13 | }
| ^
| )
14 | }
| ~
a.cc:8:8: note: to match this '('
8 | for(cin >> d){
| ^
a.cc:14:1: error: expected primary-expression before '}' token
14 | }
| ^
|
s412984682
|
p00014
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
// y = x^2
int d, i, s;
s = 0;
for(cin >> d){
for (i = 0; i < (600/d); ++i){
s = s + (i * d) * (i * d) * d;
}
cout << s << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before ')' token
8 | for(cin >> d){
| ^
| ;
a.cc:14:1: error: expected primary-expression before '}' token
14 | }
| ^
a.cc:13:6: error: expected ';' before '}' token
13 | }
| ^
| ;
14 | }
| ~
a.cc:14:1: error: expected primary-expression before '}' token
14 | }
| ^
a.cc:13:6: error: expected ')' before '}' token
13 | }
| ^
| )
14 | }
| ~
a.cc:8:8: note: to match this '('
8 | for(cin >> d){
| ^
a.cc:14:1: error: expected primary-expression before '}' token
14 | }
| ^
|
s577514477
|
p00014
|
C++
|
#include <iostream>
using namespace std;
int main(){
int d;
while(cin >> d){
int s=0;
int x=600/d;
while(int i = 1; i < x; ++i){
s += (i*d*d)
}
cin << s << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:32: error: expected ')' before ';' token
9 | while(int i = 1; i < x; ++i){
| ~ ^
| )
a.cc:9:34: error: 'i' was not declared in this scope
9 | while(int i = 1; i < x; ++i){
| ^
a.cc:12:21: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
12 | cin << s << endl;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:12:21: note: candidate: 'operator<<(int, int)' (built-in)
12 | cin << s << endl;
| ~~~~^~~~
a.cc:12:21: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
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/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:12:17: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
12 | cin << s << endl;
| ^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = in
|
s591843627
|
p00014
|
C++
|
#include <iostream>
using namespace std;
int main(){
int d;
while(cin >> d){
int s=0;
int x=600/d;
for(int i = 1; i < x; ++i){
s += (i*d*d)
}
cin << s << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:10:37: error: expected ';' before '}' token
10 | s += (i*d*d)
| ^
| ;
11 | }
| ~
a.cc:12:21: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
12 | cin << s << endl;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:12:21: note: candidate: 'operator<<(int, int)' (built-in)
12 | cin << s << endl;
| ~~~~^~~~
a.cc:12:21: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
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/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:12:17: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
12 | cin << s << endl;
| ^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]':
a.cc:12:10: required from here
12 | cin << s << en
|
s266326496
|
p00014
|
C++
|
#include <iostream>
using namespace std;
int main(){
int d;
while(cin >> d){
int s=0;
int x=600/d;
for(int i = 1; i < x; ++i){
s += (i*d*d)
}
cin << s << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:10:37: error: expected ';' before '}' token
10 | s += (i*d*d)
| ^
| ;
11 | }
| ~
a.cc:12:21: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
12 | cin << s << endl;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:12:21: note: candidate: 'operator<<(int, int)' (built-in)
12 | cin << s << endl;
| ~~~~^~~~
a.cc:12:21: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
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/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:12:17: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
12 | cin << s << endl;
| ^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:12:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
12 | cin << s << endl;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]':
a.cc:12:10: required from here
12 | cin << s << en
|
s768537217
|
p00014
|
C++
|
#include <iostream>
using namespace std;
int main(){
int d;
while(cin >> d){
int s=0;
int x=600/d;
for(int i = 1; i < x; ++i){
s += (i*d*d)
}
cout << s << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:10:37: error: expected ';' before '}' token
10 | s += (i*d*d)
| ^
| ;
11 | }
| ~
|
s296898587
|
p00014
|
C++
|
#include<iostream>
#include<vector>
using namespace std;
int main(){
int d,s;
int S = 0;
int n = 20;
int y,x;
while(n > 0){
cin >> d;
// int y = x * d;
for(y < 600-d;y++;){
int x[1000];
int y = x * d;
int s = y * d;
int n = n - 1;
int S = S + s;
}
cout << S << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:14:17: error: invalid operands of types 'int [1000]' and 'int' to binary 'operator*'
14 | int y = x * d;
| ~ ^ ~
| | |
| | int
| int [1000]
|
s987007529
|
p00014
|
C++
|
#include<iostream>
#include<vector>
using namespace std;
int main(){
int d,s;
int S = 0;
int n = 20;
int y,x;
while(n > 0){
cin >> d;
// int y = x * d;
for(y < 600-d;y++;){
int x[1000];
int y = x * d;
int s = y * d;
int n = n - 1;
int S = S + s;
}
cout << S << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:14:17: error: invalid operands of types 'int [1000]' and 'int' to binary 'operator*'
14 | int y = x * d;
| ~ ^ ~
| | |
| | int
| int [1000]
|
s131991264
|
p00014
|
C++
|
#include<iostream>
#include<vector>
using namespace std;
int main(){
int d,s;
int S = 0;
int n = 20;
int y,x;
while(n > 0){
cin >> d;
for(y < 600-d;y++;){
int x[1000];
int y = x * d;
int s = y * d;
int n = n - 1;
int S = S + s;
}
cout << S << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:14:17: error: invalid operands of types 'int [1000]' and 'int' to binary 'operator*'
14 | int y = x * d;
| ~ ^ ~
| | |
| | int
| int [1000]
|
s204313188
|
p00014
|
C++
|
#include<iostream>
using namespace std;
#define loop(i,a,b) for(int i = a ; i< b ; i ++)
int main(void){
int d;
while(cin>>d){
long long int sum =0;
loop(i,1,600/d)
sum+=i*i*d*d*d;
cout<<sum<<endl;
}
retrun 0;
}
|
a.cc: In function 'int main()':
a.cc:14:3: error: 'retrun' was not declared in this scope
14 | retrun 0;
| ^~~~~~
|
s606294079
|
p00014
|
C++
|
#inlcude <iostream>
using namespace std;
int main(){
int sum;
for(int d; cin >> d; ) {
sum = 0;
for(int i=1; i*d<=600; i++) {
sum += d*i*d*i*d;
}
cout << sum << endl;
}
return 0;
}
|
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <iostream>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:14: error: 'cin' was not declared in this scope
6 | for(int d; cin >> d; ) {
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #inlcude <iostream>
a.cc:11:5: error: 'cout' was not declared in this scope
11 | cout << sum << endl;
| ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:20: error: 'endl' was not declared in this scope
11 | cout << sum << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | #inlcude <iostream>
|
s499500724
|
p00014
|
C++
|
#include <iostream>
#include <string>
using namespace std;
int main()
{
int d;
while(cin >> d){
int s=0;
for(int i=0 ; i<600 ; i+=d ){
s+=i*i*d;
}
cout << s << endl;
}
return 0;
}
|
a.cc:13:5: error: extended character is not valid in an identifier
13 | cout << s << endl;
| ^
a.cc:13:5: error: extended character is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:5: error: '\U00003000\U00003000cout' was not declared in this scope
13 | cout << s << endl;
| ^~~~~~~~
|
s860158798
|
p00014
|
C++
|
#include <iostream>
#include <string>
using namespace std;
int main()
{
int d , s;
while(cin >> d){
s=0;
for(int i=0 ; i<600 ; i+=d){
s+=i*i*d;
}
cout << s << endl;
}
return 0;
}
|
a.cc:13:5: error: extended character is not valid in an identifier
13 | cout << s << endl;
| ^
a.cc:13:5: error: extended character is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:5: error: '\U00003000\U00003000cout' was not declared in this scope
13 | cout << s << endl;
| ^~~~~~~~
|
s462606571
|
p00014
|
C++
|
#include <iostream>
#include <string>
using namespace std;
int main()
{
int d,s;
while(cin >> d){
s=0;
for(int i=0;i<600;i+=d){
s+=i*i*d;
}
cout << s << endl;
}
return 0;
}
|
a.cc:13:5: error: extended character is not valid in an identifier
13 | cout << s << endl;
| ^
a.cc:13:5: error: extended character is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:5: error: '\U00003000\U00003000cout' was not declared in this scope
13 | cout << s << endl;
| ^~~~~~~~
|
s565358543
|
p00014
|
C++
|
#include<stdio.h>
int main()
{
int d;
int sum=0;
while(scanf("%d",&d)!=0){
sum=0;
for(int i=d;i<=600-d;i+=d){
sum+=i*i*d;
}
printf("%d",&sum)}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before '}' token
11 | printf("%d",&sum)}
| ^
| ;
|
s636949006
|
p00014
|
C++
|
#include<iostream>
using namespace std;
int f(int _i)
{
return _i*_i;
}
int main()
{
int d;
while(cin >> d){
int S = 0;
for(int i=0;i<600/d;i+di){
S += f(d*i)*d;
}
cout << S << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:15:31: error: 'di' was not declared in this scope; did you mean 'i'?
15 | for(int i=0;i<600/d;i+di){
| ^~
| i
|
s714915031
|
p00014
|
C++
|
#include <stdio.h>
#include <stdlib.h>
//#include <iostream>
//#include <vector>
//using namespace std;
#define MAX_LENGTH 8192
#define MYSCAN scanf_s
int f(int x);
int main(void){
int large, input, count;
int d[MAX_LENGTH];
// テ・ツ仰陛ァツ堋?」ツ?ォテァツ「ツコテ、ツソツ敕」ツ?療」ツ?淌ゥツ?催・ツ按療」ツ?ォテ・ツ?・テ・ツ環崚」ツつ津ヲツオツ?」ツ?療ィツセツシテ」ツつ?
for (count = 0; MYSCAN("%d", &d[count]) != EOF; count++);
// テ・ツ青?・ツ?・テ・ツ環崚」ツ?ォテ・ツッツセテ」ツ?療」ツ?ヲテヲツ督催、ツスツ?
for (int i = 0; i < count; i++){
large = 0;
for (int j = 0; j < (600 / d[i]) - 1; j++){
large += f((j + 1) * d[i]) * d[i];
}
printf("%d\n", large);
}
system("PAUSE");
return 0;
}
int f(int x){
return x * x;
}
|
a.cc: In function 'int main()':
a.cc:8:16: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
8 | #define MYSCAN scanf_s
| ^~~~~~~
a.cc:18:25: note: in expansion of macro 'MYSCAN'
18 | for (count = 0; MYSCAN("%d", &d[count]) != EOF; count++);
| ^~~~~~
|
s644662614
|
p00014
|
C++
|
#include <iostream>
#include <cmath>
int main(void){
int s = 0, d;
cin >> d;
for(int i = d; i < 600; i += d) s += pow(i, 2);
cout << s;
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;
| ^~~
| 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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | cout << s;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s863177788
|
p00014
|
C++
|
#include <iostream>
using namespace std;
//height
int f(int x)
{
return x * x;
}
int main()
{
int d;
while (cin>>n)
{
int ans = 0;
for (int i = 1; d * i < 600; i++)
{
ans += f(d * i) * d; // equation is informed from question
}
cout<<ans<<endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:15:17: error: 'n' was not declared in this scope
15 | while (cin>>n)
| ^
|
s699111917
|
p00014
|
C++
|
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define all(c) c.begin(),c.end()
#define pb push_back
#define fs first
#define sc second
#define show(x) cout << #x << " = " << x << endl
#define chmin(x,y) x=min(x,y)
#define chmax(x,y) x=max(x,y)
using namespace std;
int main(){
int d;
while(cin>>d){600;x+=d
{
s+=x*x*d;
} int s
cout<<s<<endl;=0;
for(int x=d;xM)
}
}
|
a.cc: In function 'int main()':
a.cc:14:27: error: 'x' was not declared in this scope
14 | while(cin>>d){600;x+=d
| ^
a.cc:18:1: error: expected initializer before 'cout'
18 | cout<<s<<endl;=0;
| ^~~~
a.cc:18:15: error: expected primary-expression before '=' token
18 | cout<<s<<endl;=0;
| ^
a.cc:19:29: error: 'xM' was not declared in this scope; did you mean 'x'?
19 | for(int x=d;xM)
| ^~
| x
a.cc:19:31: error: expected ';' before ')' token
19 | for(int x=d;xM)
| ^
| ;
a.cc:20:9: error: expected primary-expression before '}' token
20 | }
| ^
|
s684190119
|
p00014
|
C++
|
<?php
$range = trim(fgets(STDIN));
$sum;
for($i = $range; $i <= 600; $i+=$range){
$sum+=$i;
}
echo $sum;
?>
|
a.cc:1:1: error: expected unqualified-id before '<' token
1 | <?php
| ^
a.cc:3:1: error: '$sum' does not name a type
3 | $sum;
| ^~~~
a.cc:4:1: error: expected unqualified-id before 'for'
4 | for($i = $range; $i <= 600; $i+=$range){
| ^~~
a.cc:4:18: error: '$i' does not name a type
4 | for($i = $range; $i <= 600; $i+=$range){
| ^~
a.cc:4:29: error: '$i' does not name a type
4 | for($i = $range; $i <= 600; $i+=$range){
| ^~
a.cc:7:1: error: 'echo' does not name a type
7 | echo $sum;
| ^~~~
a.cc:8:1: error: expected unqualified-id before '?' token
8 | ?>
| ^
|
s980077266
|
p00014
|
C++
|
<?php
$r = trim(fgets(STDIN));
$sum = 0;
for($i = 0; $i < 600; $i+=$r){
$sum+=($i*$i)*$r;
}
echo $sum;
?>
|
a.cc:1:1: error: expected unqualified-id before '<' token
1 | <?php
| ^
a.cc:3:1: error: '$sum' does not name a type
3 | $sum = 0;
| ^~~~
a.cc:4:1: error: expected unqualified-id before 'for'
4 | for($i = 0; $i < 600; $i+=$r){
| ^~~
a.cc:4:13: error: '$i' does not name a type
4 | for($i = 0; $i < 600; $i+=$r){
| ^~
a.cc:4:23: error: '$i' does not name a type
4 | for($i = 0; $i < 600; $i+=$r){
| ^~
a.cc:7:1: error: 'echo' does not name a type
7 | echo $sum;
| ^~~~
a.cc:8:1: error: expected unqualified-id before '?' token
8 | ?>
| ^
|
s384919552
|
p00014
|
C++
|
<?php
///$r = trim(fgets(STDIN))
while(fscanf(STDIN, "%d", $r)){
$sum = 0;
for($i = 0; $i < 600; $i+=$r){
$sum+=($i*$i)*$r;
}
echo $sum;
}
?>
|
a.cc:1:1: error: expected unqualified-id before '<' token
1 | <?php
| ^
a.cc:10:1: error: expected unqualified-id before '?' token
10 | ?>
| ^
|
s991838731
|
p00014
|
C++
|
<?php
while($a=trim(fgets(STDIN))){
$ans=0;
for ($i=0; $i < 600; $i+=$a) {
$ans+=$i*$i*$a;
}
echo $ans.PHP_EOL;
}
|
a.cc:1:1: error: expected unqualified-id before '<' token
1 | <?php
| ^
|
s491079552
|
p00014
|
C++
|
while gets
a=c=$_.to_i
b=0
while c<600
b+=c*c*a
c+=a
end
puts b
end
|
a.cc:1:1: error: expected unqualified-id before 'while'
1 | while gets
| ^~~~~
|
s195515096
|
p00014
|
C++
|
while a=gets
a=a.to_i
c=a.to_i
b=0
while c<600
b+=c*c*a
c+=a
end
puts b
end
|
a.cc:1:1: error: expected unqualified-id before 'while'
1 | while a=gets
| ^~~~~
|
s396461336
|
p00014
|
C++
|
while (a=c=gets.to_i)>0
b=0
while c<600
b+=c*c*a
c+=a
end
puts b
end
|
a.cc:1:1: error: expected unqualified-id before 'while'
1 | while (a=c=gets.to_i)>0
| ^~~~~
|
s752311915
|
p00014
|
C++
|
while (a=c=gets.to_i)>0
b=0
(600/a-1).times{b+=c*c*a;c+=a}
puts b
end
|
a.cc:1:1: error: expected unqualified-id before 'while'
1 | while (a=c=gets.to_i)>0
| ^~~~~
a.cc:4:1: error: 'puts' does not name a type
4 | puts b
| ^~~~
|
s975172238
|
p00014
|
C++
|
$<.map{|i|a=b=i.to_i;c=0;(600/a-1).times{c+=b*b*a;b+=a};p c}
|
a.cc:1:1: error: '$' does not name a type
1 | $<.map{|i|a=b=i.to_i;c=0;(600/a-1).times{c+=b*b*a;b+=a};p c}
| ^
|
s046770406
|
p00014
|
C++
|
f :: Int -> Int
f x = x * x
solve :: Int -> Int
solve d = (d*) $ sum $ map f [0 , d .. 600 - d]
main :: IO ()
main = getContents
>>= return . map read . lines
>>= return . map solve
>>= mapM_ print
|
a.cc:1:1: error: 'f' does not name a type
1 | f :: Int -> Int
| ^
|
s958060261
|
p00014
|
C++
|
$<.map{|i|s=0;(600/a=i.to_i).times{|i|s+=a**3*i*i};p s}
|
a.cc:1:1: error: '$' does not name a type
1 | $<.map{|i|s=0;(600/a=i.to_i).times{|i|s+=a**3*i*i};p s}
| ^
|
s870661402
|
p00014
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main()
{
int d;
while (~scanf("%d", &n)) {
int ans = 0;
for (int a = d; a <= 600 - d; a += d) ans += a * a * d;
printf("%d\n", ans);
}
}
|
a.cc: In function 'int main()':
a.cc:9:26: error: 'n' was not declared in this scope
9 | while (~scanf("%d", &n)) {
| ^
|
s313044158
|
p00014
|
C++
|
#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main() {
int d;
while (cin >> d) {
int s = 0;
for (int i = 1; i <= 600 / d - 1; i++) {
s += pow(i*d, 2)*d;
}
cout << s << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:11:30: error: 'pow' was not declared in this scope
11 | s += pow(i*d, 2)*d;
| ^~~
|
s226382167
|
p00014
|
C++
|
import sys
a = []
for line in sys.stdin:
a.append(line)
for n in a:
num=int(n)
x=0
are=0
while x<600:
are+=(x**2)*num
x+=num
print area
|
a.cc:1:1: error: 'import' does not name a type
1 | import sys
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
|
s131081931
|
p00014
|
C++
|
#include <stdio.h>
#define MAX 600
int function(int d)
{
d = d * d;
return d;
}
int main()
{
int d,cnt;
int sum;
while ((scanf_s("%d", &d)) != EOF)
{
sum = 0;
cnt = MAX / d;
for (int i = 1; i < cnt; i++)
{
sum += function(d*i)*d;
}
printf("%d\n",sum);
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:16:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
16 | while ((scanf_s("%d", &d)) != EOF)
| ^~~~~~~
| scanf
|
s216575014
|
p00014
|
C++
|
#include "bits\stdc++.h"
using namespace std;
int main() {
cin.tie(0); ios::sync_with_stdio(false);
int d;
while (cin >> d) {
int area = 0;
for (int x = d; x <= 600 - d;x += d) {
area += x*x*d;
}
cout << area << endl;
}
}
|
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include "bits\stdc++.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s431828533
|
p00014
|
C++
|
while True:
total = 0
try:
num = int(input())
for i in range(num, 600, num):
total += i*i * num
print(total)
except:
break
|
a.cc:1:1: error: expected unqualified-id before 'while'
1 | while True:
| ^~~~~
|
s764822163
|
p00014
|
C++
|
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int d, ans, n;
while(cin >> d){
ans = pow(d, 3);
n = 600 / d - 1;
ans *= n*(n+1)*(2*n+1) / 6;
cout << ans << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:23: error: 'pow' was not declared in this scope
8 | ans = pow(d, 3);
| ^~~
|
s022700195
|
p00014
|
C++
|
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int d, ans = 0, n;
while(cin >> d){
ans = pow(d, 3);
n = 600 / d - 1;
ans *= n*(n+1)*(2*n+1) / 6;
cout << ans << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:23: error: 'pow' was not declared in this scope
8 | ans = pow(d, 3);
| ^~~
|
s671708371
|
p00014
|
C++
|
def f(x)
x * x
end
l = gets.chomp.to_i
a = 600
p = l
sum = 0
while a >= p
sum += l * f(p)
p += l
end
puts sum
|
a.cc:1:1: error: 'def' does not name a type
1 | def f(x)
| ^~~
|
s087006020
|
p00014
|
C++
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String args[]) throws IOException {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String sc="";
while(true) {
sc=br.readLine();
int yakusu=Integer.parseInt(sc);
int bunkatu=600/yakusu;
long ans=0;
for(int i=0; i<bunkatu; i++) {
ans+=(yakusu*i)*(yakusu*i)*yakusu;
}
System.out.println(ans);
}
}
}
|
a.cc:1:1: error: 'import' does not name a type
1 | import java.io.BufferedReader;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.io.IOException;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
3 | import java.io.InputStreamReader;
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
5 | public class Main{
| ^~~~~~
|
s078920630
|
p00014
|
C++
|
#include <iostream>
#include <cstdio>
using namespace std;
long int i,c;
long int sum = 0;
long int area(int d) {
for(i=d; i<=600-d;i += d){
c = d * i * i;
sum = sum + c;
}
return sum;
}
int main(void){
int d;
while(cin >> d) {
cout << area(d) << endl;
}
return 0;
}
|
a.cc:9:1: error: extended character is not valid in an identifier
9 | for(i=d; i<=600-d;i += d){
| ^
a.cc:9:1: error: extended character is not valid in an identifier
a.cc:10:1: error: extended character is not valid in an identifier
10 | c = d * i * i;
| ^
a.cc:10:1: error: extended character is not valid in an identifier
a.cc:11:1: error: extended character is not valid in an identifier
11 | sum = sum + c;
| ^
a.cc:11:1: error: extended character is not valid in an identifier
a.cc:12:1: error: extended character is not valid in an identifier
12 |
| ^
a.cc:12:1: error: extended character is not valid in an identifier
a.cc:13:1: error: extended character is not valid in an identifier
13 |
| ^
a.cc:13:1: error: extended character is not valid in an identifier
a.cc:14:1: error: extended character is not valid in an identifier
14 | }
| ^
a.cc:14:1: error: extended character is not valid in an identifier
a.cc:15:1: error: extended character is not valid in an identifier
15 |
| ^
a.cc:15:1: error: extended character is not valid in an identifier
a.cc:16:1: error: extended character is not valid in an identifier
16 | return sum;
| ^
a.cc:16:1: error: extended character is not valid in an identifier
a.cc: In function 'long int area(int)':
a.cc:9:12: error: expected ')' before ';' token
9 | for(i=d; i<=600-d;i += d){
| ~ ^
| )
a.cc:9:29: error: expected ';' before ')' token
9 | for(i=d; i<=600-d;i += d){
| ^
| ;
a.cc:15:1: error: '\U00003000\U00003000' was not declared in this scope
15 |
| ^~~~
a.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
17 | }
| ^
|
s252548513
|
p00014
|
C++
|
#include <iostream>
#include <cstdio>
using namespace std;
int f(int x)
{
return x*x;
}
int area(int d) {
int x,y,sum,i;
x=600;
y=f(d);
sum=0;
i=1;
while(d*i<=600-d)
{
sum+=y*d;
i++;
y=f(d*i);
}
return sum;
}
int main(void){
int d;
while(cin >> d) {
cout << area(d) << endl;
}
return 0;
}
|
a.cc:24:1: error: extended character is not valid in an identifier
24 |
| ^
a.cc:24:1: error: extended character is not valid in an identifier
a.cc: In function 'int area(int)':
a.cc:24:1: error: '\U00003000\U00003000' was not declared in this scope
24 |
| ^~~~
|
s181781998
|
p00014
|
C++
|
#include <iostream>
#include <cstdio>
using namespace std;
int area(int d) {
return (d*d);
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
a.cc:7:1: error: extended character is not valid in an identifier
7 | return (d*d);
| ^
a.cc:7:1: error: extended character is not valid in an identifier
a.cc: In function 'int area(int)':
a.cc:7:1: error: '\U00003000\U00003000return' was not declared in this scope
7 | return (d*d);
| ^~~~~~~~~~
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
8 | }
| ^
|
s169086359
|
p00014
|
C++
|
#include <iostream>
#include <cstdio>
using namespace std;
int area(int d) {
return (d*d);
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
a.cc:6:1: error: extended character is not valid in an identifier
6 | return (d*d);
| ^
a.cc:6:1: error: extended character is not valid in an identifier
a.cc: In function 'int area(int)':
a.cc:6:1: error: '\U00003000\U00003000return' was not declared in this scope
6 | return (d*d);
| ^~~~~~~~~~
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
7 | }
| ^
|
s095862386
|
p00014
|
C++
|
#include <stdio.h>>
int f(int d) {
return (d*d);
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n",f(d));
}
return 0;
}
|
a.cc:1:19: warning: extra tokens at end of #include directive
1 | #include <stdio.h>>
| ^
a.cc:3:1: error: extended character is not valid in an identifier
3 | return (d*d);
| ^
a.cc:3:1: error: extended character is not valid in an identifier
a.cc: In function 'int f(int)':
a.cc:3:1: error: '\U00003000\U00003000return' was not declared in this scope
3 | return (d*d);
| ^~~~~~~~~~
a.cc:4:1: warning: no return statement in function returning non-void [-Wreturn-type]
4 | }
| ^
|
s315825466
|
p00014
|
C++
|
#include <stdio.h>
int area(int d) {
int i=0,n,x,y,s,sum=0;
n = 600/d ;
for (i=0; i < n; i++){
x = i*d;
y = x*x;
s= y*d;
sum=sum+s;
}
return sum;
}
int main(void){
int d;
while(scanf("%d", &d) != EOF) {
printf("%d\n", area(d));
}
return 0;
}
|
a.cc:8:1: error: extended character is not valid in an identifier
8 | for (i=0; i < n; i++){
| ^
a.cc:8:1: error: extended character is not valid in an identifier
a.cc:9:1: error: extended character is not valid in an identifier
9 | x = i*d;
| ^
a.cc:9:1: error: extended character is not valid in an identifier
a.cc:10:1: error: extended character is not valid in an identifier
10 | y = x*x;
| ^
a.cc:10:1: error: extended character is not valid in an identifier
a.cc:11:1: error: extended character is not valid in an identifier
11 | s= y*d;
| ^
a.cc:11:1: error: extended character is not valid in an identifier
a.cc:12:1: error: extended character is not valid in an identifier
12 |
| ^
a.cc:12:1: error: extended character is not valid in an identifier
a.cc:13:1: error: extended character is not valid in an identifier
13 | sum=sum+s;
| ^
a.cc:13:1: error: extended character is not valid in an identifier
a.cc:14:1: error: extended character is not valid in an identifier
14 | }
| ^
a.cc:14:1: error: extended character is not valid in an identifier
a.cc:15:1: error: extended character is not valid in an identifier
15 | return sum;
| ^
a.cc:15:1: error: extended character is not valid in an identifier
a.cc:16:1: error: extended character is not valid in an identifier
16 |
| ^
a.cc:17:1: error: extended character is not valid in an identifier
17 |
| ^
a.cc:17:1: error: extended character is not valid in an identifier
a.cc: In function 'int area(int)':
a.cc:8:13: error: expected ')' before ';' token
8 | for (i=0; i < n; i++){
| ~ ^
| )
a.cc:8:25: error: expected ';' before ')' token
8 | for (i=0; i < n; i++){
| ^
| ;
a.cc:15:1: error: '\U00003000\U00003000return' was not declared in this scope
15 | return sum;
| ^~~~~~~~~~
a.cc:16:1: error: '\U00003000' was not declared in this scope
16 |
| ^~
a.cc:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
18 | }
| ^
|
s441028936
|
p00014
|
C++
|
#include<iostream>
#define NUM 20
using namespace std;
int main(){
int d[NUM];
int s[NUM];
int i, j;
for (j = 0; j < NUM; j++){
s[j] = 0;
}
cin >> d;
for (j = 0; j < NUM; j++){
cin >> d[j];
}
for (j = 0; j < NUM; j++){
for (i = 1; d[j] * i <= 600 - d[j]; i++){
s[j] += (i * d[j]) * (i * d[j]) * d[j];
}
}
for (j = 0; j < NUM; j++){
cout << s[j] << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:16:13: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [20]')
16 | cin >> d;
| ~~~ ^~ ~
| | |
| | int [20]
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/iostream:42,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed:
a.cc:16:16: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'int*'
16 | cin >> d;
| ^
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed:
a.cc:16:16: error: invalid conversion from 'int*' to 'short int' [-fpermissive]
16 | cin >> d;
| ^
| |
| int*
a.cc:16:16: error: cannot bind rvalue '(short int)((int*)(& d))' to 'short int&'
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed:
a.cc:16:16: error: invalid conversion from 'int*' to 'short unsigned int' [-fpermissive]
16 | cin >> d;
| ^
| |
| int*
a.cc:16:16: error: cannot bind rvalue '(short unsigned int)((int*)(& d))' to 'short unsigned int&'
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed:
a.cc:16:16: error: invalid conversion from 'int*' to 'int' [-fpermissive]
16 | cin >> d;
| ^
| |
| int*
a.cc:16:16: error: cannot bind rvalue '(int)((int*)(& d))' to 'int&'
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed:
a.cc:16:16: error: invalid conversion from 'int*' to 'unsigned int' [-fpermissive]
16 | cin >> d;
| ^
| |
| int*
a.cc:16:16: error: cannot bind rvalue '(unsigned int)((int*)(& d))' to 'unsigned int&'
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed:
a.cc:16:16: error: invalid conversion from 'int*' to 'long int' [-fpermissive]
16 | cin >> d;
| ^
| |
| int*
a.cc:16:16: error: cannot bind rvalue '(long int)((int*)(& d))' to 'long int&'
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed:
a.cc:16:16: error: invalid conversion from 'int*' to 'long unsigned int' [-fpermissive]
16 | cin >> d;
| ^
| |
| int*
a.cc:16:16: error: cannot bind rvalue '(long unsigned int)((int*)(& d))' to 'long unsigned int&'
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed:
a.cc:16:16: error: invalid conversion from 'int*' to 'long long int' [-fpermissive]
16 | cin >> d;
| ^
| |
| int*
a.cc:16:16: error: cannot bind rvalue '(long long int)((int*)(& d))' to 'long long int&'
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed:
a.cc:16:16: error: invalid conversion from 'int*' to 'long long unsigned int' [-fpermissive]
16 | cin >> d;
| ^
| |
| int*
a.cc:16:16: error: cannot bind rvalue '(long long unsigned int)((int*)(& d))' to 'long long unsigned int&'
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed:
a.cc:16:16: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*'
16 | cin >> d;
| ^
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'int [20]' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'int [20]' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'int [20]' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'int [20]' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from 'int [20]' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:133:7: note
|
s492482594
|
p00014
|
C++
|
main(d){for(;~scanf("%d",&d);printf("%d00\n",d*=d-6e2))d-=600;}
|
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(d){for(;~scanf("%d",&d);printf("%d00\n",d*=d-6e2))d-=600;}
| ^
|
s818403133
|
p00014
|
C++
|
#include <iostream>
using namespace std;
int main(){
int d,n=1,s=0;
while(cin>>d){
for(int i =1;i<(600/d);i++){
for(int j=1;j<=2;j++){
n*=(i*d);while
}
s += d * n;
n=1;
}
cout<<s<<endl;
}
}
|
a.cc: In function 'int main()':
a.cc:9:25: error: expected '(' before '}' token
9 | }
| ^
| (
a.cc:9:25: error: expected primary-expression before '}' token
a.cc:8:39: error: expected ')' before '}' token
8 | n*=(i*d);while
| ^
| )
9 | }
| ~
a.cc:9:25: error: expected primary-expression before '}' token
9 | }
| ^
|
s140925372
|
p00014
|
C++
|
#include<iostream>
using namespace std;
int main(){
int n;
while(cin >>n){
int sum = 0;
for(int i=0;i<600;i+=n){sum+=i*i*n}
cout <<sum<<endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:51: error: expected ';' before '}' token
7 | for(int i=0;i<600;i+=n){sum+=i*i*n}
| ^
| ;
|
s073742206
|
p00014
|
C++
|
#include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
sum = 0;
for (int i = 1; d * i <= 600 - d; i++) {
sum += d * (d * i) * (d * i);
}
cout << sum << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:5: error: 'sum' was not declared in this scope
8 | sum = 0;
| ^~~
|
s607296791
|
p00014
|
C++
|
#include <iostream>
using namespace std;
int main()
{
int d;
while(cin>>d)
{
for(int i=1;i*d<=d;i++)
{
f=0;
f=d*(d*i)*(d*i);
}
cout<<f<<endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:11:6: error: 'f' was not declared in this scope
11 | f=0;
| ^
a.cc:14:11: error: 'f' was not declared in this scope
14 | cout<<f<<endl;
| ^
|
s390719566
|
p00014
|
C++
|
#include <iostream>
using namespace std;
int main()
{
int d;
while(cin>>d)
{
for(int i=1;i*d<d;++i)
{
f=0;
f=d*(d*i)*(d*i);
}
cout<<f<<endl;
}
return 0;
cin.get();
}
|
a.cc: In function 'int main()':
a.cc:11:6: error: 'f' was not declared in this scope
11 | f=0;
| ^
a.cc:14:11: error: 'f' was not declared in this scope
14 | cout<<f<<endl;
| ^
|
s186944509
|
p00014
|
C++
|
#include <iostream>
using namespace std;
int main()
{
int d;
while(cin>>d)
{
for(int i=1;i*d<d;++i)
{
f=0;
f+=d*(d*i)*(d*i);
}
cout<<f<<endl;
}
return 0;
cin.get();
}
|
a.cc: In function 'int main()':
a.cc:11:6: error: 'f' was not declared in this scope
11 | f=0;
| ^
a.cc:14:11: error: 'f' was not declared in this scope
14 | cout<<f<<endl;
| ^
|
s216323233
|
p00014
|
C++
|
#include<iostream>
using namespace std;
int main()
{
int d;
while(cin >> d)
{
int vol=0;
for(int i=1; i*d<600; i++)
{
y += d*(d*i)*(d*i);
}
cout << vol << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:14:13: error: 'y' was not declared in this scope
14 | y += d*(d*i)*(d*i);
| ^
|
s120729479
|
p00014
|
C++
|
#include<iostream>
using namespace std;
int main()
{
int d;
while(cin >> d)
{
int vol=0;
for(int i=1; i*d<600; i++)
{
y += d*(d*i)*(d*i);
}
cout << y << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:14:13: error: 'y' was not declared in this scope
14 | y += d*(d*i)*(d*i);
| ^
a.cc:17:16: error: 'y' was not declared in this scope
17 | cout << y << endl;
| ^
|
s242323340
|
p00014
|
C++
|
#include<iostream>
#include <vector>
using namespace std;
int main()
{
int d;
while(cin >> d)
{
int vol=0;
for(int i=1; i*d<600; i++)
{
y += d*(d*i)*(d*i);
}
cout << y << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:15:13: error: 'y' was not declared in this scope
15 | y += d*(d*i)*(d*i);
| ^
a.cc:18:16: error: 'y' was not declared in this scope
18 | cout << y << endl;
| ^
|
s069661271
|
p00014
|
C++
|
#include<iostream>
using namespace std;
int main(void){
int d;
long s;
while(cin >> d){
s = 0;
for(i = 1; i * d + d <= 600; i++){
s += (d * i) * (d * i) * d;
}
cout << s << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:21: error: 'i' was not declared in this scope
9 | for(i = 1; i * d + d <= 600; i++){
| ^
|
s769121918
|
p00014
|
C++
|
#include<iostream>
using namespace std;
int main()
{
int x;
while(cin>>d)
{
y=0;
for(int i=1; i*d<600; i++)
{
y=d*(d*i)*(d*i);
}
cout<<y<<endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:12: error: 'd' was not declared in this scope
7 | while(cin>>d)
| ^
a.cc:9:1: error: 'y' was not declared in this scope
9 | y=0;
| ^
|
s538254128
|
p00014
|
C++
|
#include<iostream>
using namespace std;
int main()
{
int x;
while(cin>>d)
{
y=0;
for(int i=1; i*d<600; i++)
{
y+=d*(d*i)*(d*i);
}
cout<<y<<endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:12: error: 'd' was not declared in this scope
7 | while(cin>>d)
| ^
a.cc:9:1: error: 'y' was not declared in this scope
9 | y=0;
| ^
|
s950953483
|
p00014
|
C++
|
#include<iostream>
using namespace std;
int main()
{
int d;
while(cin>>d)
{
y=0;
for(int i=1; i*d<600; i++)
{
y+=d*(d*i)*(d*i);
}
cout<<y<<endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:1: error: 'y' was not declared in this scope
9 | y=0;
| ^
|
s536447462
|
p00014
|
C++
|
#include<iostream>
using namespace std;
int main()
{
int d;
while(cin>>d)
int y=0;
{
for(int i=1; i*d<600; i++)
{
y+=d*(d*i)*(d*i);
}
cout<<y<<endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:12:2: error: 'y' was not declared in this scope
12 | y+=d*(d*i)*(d*i);
| ^
a.cc:14:7: error: 'y' was not declared in this scope
14 | cout<<y<<endl;
| ^
|
s400044889
|
p00014
|
C++
|
#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int d;
while(scanf("%d", &d) != EOF){
int ans = 0;
for(int i=1; i < 600/d; i++){
ans += d * pow(d*i, 2);
}
cout << ans << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:10:36: error: 'pow' was not declared in this scope
10 | ans += d * pow(d*i, 2);
| ^~~
|
s712515827
|
p00014
|
C++
|
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<queue>
#include<stack>
#include<vector>
#include<algorithm>
#include<iomanip>
using namespace std;
#define min(v,w) v>w?w:v;
#define max(v,w) v<w?w:v;
#define INF 0x3f3f3f3f3f3f3f3f
#define MAXN 30
struct p{
int x,y;
};
int main(){
__int64 a,b,c,d,t;
while(~scanf("%I64d",&d)) {
b=0;
t=d;
for(;d<600;d+=t){
b+=t*d*d;
}
if(d<600)
b+=(600-d)*d*d;
printf("%I64d\n",b);
}
return 0;
}
/*
((F(TF))(TF(F(TF(TF))))(F(TF))(TF))
(TFT)
((TFT)T)
*/
|
a.cc: In function 'int main()':
a.cc:23:9: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
23 | __int64 a,b,c,d,t;
| ^~~~~~~
| __ynf64
a.cc:24:27: error: 'd' was not declared in this scope
24 | while(~scanf("%I64d",&d)) {
| ^
a.cc:25:17: error: 'b' was not declared in this scope
25 | b=0;
| ^
a.cc:26:17: error: 't' was not declared in this scope; did you mean 'tm'?
26 | t=d;
| ^
| tm
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.