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) {   brea...
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*...
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*...
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)); } r...
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> ...
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)); } ...
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> ...
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)); } ...
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> ...
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)); } } ...
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) brea...
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)); } ...
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> ...
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)); ...
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> ...
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)); } ...
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 ...
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 ar...
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++){...
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...
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(){f...
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(){fo...
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++/...
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++){ | ~ ^ ...
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 | } | ^ ...
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 | } | ^ ...
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...
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 fo...
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 fo...
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; ...
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; ...
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...
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 << ...
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 << ...
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 << ...
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...
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; ...
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 } ...
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...
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 ...
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 |...
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($...
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=Int...
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 '-fm...
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 cha...
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) {...
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); | ^~~~~~...
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); | ^~~~~~...
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)': ...
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)); } ...
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...
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]...
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...
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 | ...
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; }; ...
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)) { | ...