submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s863563614 | p00000 | C++ | main(){for(int i=0,j,k;j=i/9+1,k=i%9+1,81-i;i++)printf("%dx%d=%d\n",j,k,j*k);} | a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
1 | main(){for(int i=0,j,k;j=i/9+1,k=i%9+1,81-i;i++)printf("%dx%d=%d\n",j,k,j*k);}
| ^~~~
a.cc: In function 'int main()':
a.cc:1:49: error: 'printf' was not declared in this scope
1 | main(){for(int i=0,j,k;j=i/9+1,k=i%9... |
s320185993 | p00000 | C++ | int main(){for(int i=0,j,k;j=i/9+1,k=i%9+1,81-i;i++)printf("%dx%d=%d\n",j,k,j*k);} | a.cc: In function 'int main()':
a.cc:1:53: error: 'printf' was not declared in this scope
1 | int main(){for(int i=0,j,k;j=i/9+1,k=i%9+1,81-i;i++)printf("%dx%d=%d\n",j,k,j*k);}
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probab... |
s568704993 | p00000 | C++ | #import<stdio.h>
i=0,k,j;main(){for(;j=i/9+1,k=i%9+1,i<81;i++)printf("%dx%d=%d\n",j,k,j*k);} | a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<stdio.h>
| ^~~~~~
a.cc:2:1: error: 'i' does not name a type
2 | i=0,k,j;main(){for(;j=i/9+1,k=i%9+1,i<81;i++)printf("%dx%d=%d\n",j,k,j*k);}
| ^
a.cc:2:9: warning: ISO C++ forbids declaration of 'main' with no type [... |
s111684580 | p00000 | C++ | int main(){int i,j,k;for(i=0;i<81,j=i/9+1,k=i%9+1;i++)printf("%dx%d=%d\n",j,k,j*k);} | a.cc: In function 'int main()':
a.cc:1:55: error: 'printf' was not declared in this scope
1 | int main(){int i,j,k;for(i=0;i<81,j=i/9+1,k=i%9+1;i++)printf("%dx%d=%d\n",j,k,j*k);}
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is pr... |
s201877704 | p00000 | C++ | main(i,j,k){for(i=0;j=i/9+1,k=i%9+1,i<81;i++)printf("%dx%d=%d\n",j,k,j*k);} | a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(i,j,k){for(i=0;j=i/9+1,k=i%9+1,i<81;i++)printf("%dx%d=%d\n",j,k,j*k);}
| ^
|
s612092326 | p00000 | C++ | j;main(i){for(;9/i;i+=!(j%=9))printf("%dx%d=%d\n",i,j,++j*i);} | a.cc:1:1: error: 'j' does not name a type
1 | j;main(i){for(;9/i;i+=!(j%=9))printf("%dx%d=%d\n",i,j,++j*i);}
| ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
1 | j;main(i){for(;9/i;i+=!(j%=9))printf("%dx%d=%d\n",i,j,++j*i);}
| ^
|
s211216667 | p00000 | C++ | #include <stdio.h>
void main()
{
int x,y;
for(x=1;x<10;x++)
{
for(y=1;y<10;y++)
{
printf("%dx%d=%d\n",x,y,x*y);
}
}
} | a.cc:2:1: error: '::main' must return 'int'
2 | void main()
| ^~~~
|
s621341640 | p00000 | C++ | #include<stdio.h>
int main(){
int = a, b;
for ( a = 1; a<=9 ; a++){
for( b = 1; b<=9 ; b++){
printf("ixj=%d\n", i*j);
}
} | a.cc: In function 'int main()':
a.cc:3:7: error: expected unqualified-id before '=' token
3 | int = a, b;
| ^
a.cc:4:9: error: 'a' was not declared in this scope
4 | for ( a = 1; a<=9 ; a++){
| ^
a.cc:5:10: error: 'b' was not declared in this scope
5 | for( b = 1; b<=9 ; b+... |
s619316858 | p00000 | C++ | #include<stdio.h>
main(i,j,k){for(i=0;i<81;i++)j=i/9+1,k=i%9+1,printf("%dx%d=%d\n",j,k,j*k);} | a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
2 | main(i,j,k){for(i=0;i<81;i++)j=i/9+1,k=i%9+1,printf("%dx%d=%d\n",j,k,j*k);}
| ^
|
s313979783 | p00000 | C++ | #include<stdio.h>
main(i,j,k){for(i=0;i<81;i++)j=i/9+1,k=i%9+1,printf("%dx%d=%d\n",j,k,j*k);} | a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
2 | main(i,j,k){for(i=0;i<81;i++)j=i/9+1,k=i%9+1,printf("%dx%d=%d\n",j,k,j*k);}
| ^
|
s433390652 | p00000 | C++ | #include<stdio.h>
i,j,k;main(){for(i=0;i<81;i++)j=i/9+1,k=i%9+1,printf("%dx%d=%d\n",j,k,j*k);} | a.cc:2:1: error: 'i' does not name a type
2 | i,j,k;main(){for(i=0;i<81;i++)j=i/9+1,k=i%9+1,printf("%dx%d=%d\n",j,k,j*k);}
| ^
a.cc:2:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | i,j,k;main(){for(i=0;i<81;i++)j=i/9+1,k=i%9+1,printf("%dx%d=%d\n",j,k,j*k);}
| ... |
s898671879 | p00000 | C++ | int i,j,k;main(){for(;i<81;i++)j=i/9+1,k=i%9+1,printf("%dx%d=%d\n",j,k,j*k);} | a.cc:1:11: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
1 | int i,j,k;main(){for(;i<81;i++)j=i/9+1,k=i%9+1,printf("%dx%d=%d\n",j,k,j*k);}
| ^~~~
a.cc: In function 'int main()':
a.cc:1:48: error: 'printf' was not declared in this scope
1 | int i,j,k;main(){for(;i<81... |
s766631693 | p00000 | C++ | #include<stdio.h>
int main()=0;
return 0; | a.cc:3:5: error: function 'int main()' is initialized like a variable
3 | int main()=0;
| ^~~~
a.cc:4:1: error: expected unqualified-id before 'return'
4 | return 0;
| ^~~~~~
|
s018838101 | p00000 | C++ | a | a.cc:1:1: error: 'a' does not name a type
1 | a
| ^
|
s813749305 | p00000 | C++ | int main(){
abort();
return 0;
} | a.cc: In function 'int main()':
a.cc:2:1: error: 'abort' was not declared in this scope
2 | abort();
| ^~~~~
a.cc:1:1: note: 'abort' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
+++ |+#include <cstdlib>
1 | int main(){
|
s509749135 | p00000 | C++ |
#define r(i) for(i=1;i<10;i++)
main(i,j){
r(i)
r(j)
std::cout<<i<<'x'<<j<<'='<<i*j<<std::endl;
return 0;
} | a.cc:3:5: error: expected constructor, destructor, or type conversion before '(' token
3 | main(i,j){
| ^
|
s139936241 | p00000 | C++ | #include<stdio.h>
main(){int i,x,y;for(i=0;i<81;i++){x=i/9+1;y=i%9+1;printf("%dx%d=%d\n",x,y,x*y);}return;} | a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(){int i,x,y;for(i=0;i<81;i++){x=i/9+1;y=i%9+1;printf("%dx%d=%d\n",x,y,x*y);}return;}
| ^~~~
a.cc: In function 'int main()':
a.cc:2:82: error: return-statement with no value, in function returning 'int' [-fpermissive... |
s807553788 | p00000 | C++ | #include<stdio.h>
main(){int i,x,y;for(i=0;i<81;i++){x=i/9+1;y=i%9+1;printf("%dx%d=%d\n",x,y,x*y);}returnツ 0;} | a.cc:2:82: error: extended character is not valid in an identifier
2 | main(){int i,x,y;for(i=0;i<81;i++){x=i/9+1;y=i%9+1;printf("%dx%d=%d\n",x,y,x*y);}returnツ 0;}
| ^
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' wi... |
s161033926 | p00000 | C++ | #include<stdio.h>
int main(){int i,x,y;for(i=0;i<81;i++){x=i/9+1;y=i%9+1;printf("%dx%d=%d\n",x,y,x*y);}returnツ 0;} | a.cc:2:86: error: extended character is not valid in an identifier
2 | int main(){int i,x,y;for(i=0;i<81;i++){x=i/9+1;y=i%9+1;printf("%dx%d=%d\n",x,y,x*y);}returnツ 0;}
| ^
a.cc: In function 'int main()':
a.cc:2:86: error: '... |
s978754275 | p00000 | C++ | m;main(n){for(;n<=9;m%=9,m||n++)printf("%dx%d=%d\n",n,m,n*++m);} | a.cc:1:1: error: 'm' does not name a type
1 | m;main(n){for(;n<=9;m%=9,m||n++)printf("%dx%d=%d\n",n,m,n*++m);}
| ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
1 | m;main(n){for(;n<=9;m%=9,m||n++)printf("%dx%d=%d\n",n,m,n*++m);}
| ^
|
s560470485 | p00000 | C++ | import java.io.*;
class a0000{
public static void main(String[] args){
for(int i=1;i<10;i++)
for(int j=1;j<10;j++)
System.out.println(i+"x"+j+"="+i*j);
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.io.*;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:15: error: expected ':' before 'static'
3 | public static void main(String[] args){
| ^~~~~~~
| :
a.cc:3:33... |
s065584901 | p00000 | C++ | #include <iostream>
using namespace std;
int main(){
for(int i=1;i<10;i++){
for(int j=1;j<10;j++){
cout<<i<<"x"<<j<<"="<<i*j<<endl;
}
}
retrun 0;
}
| a.cc: In function 'int main()':
a.cc:11:9: error: 'retrun' was not declared in this scope
11 | retrun 0;
| ^~~~~~
|
s336410905 | p00000 | C++ | #include <iostream>
using namespace std;
const int MAXN=1010;
const int MAXM=10010;
typedef struct{int v,next,rt,cost,bt,bv;}edge;
int N,M,eid;
int rt,w;//ä¸å®æ ¹
int p[MAXN],In[MAXN],ind[MAXN],hash[MAXN];;
edge e[MAXM];
bool vist[MAXN];
int clen;
inline void init(){eid=0;memset(p,-1,sizeof(p));}
inline void ... | a.cc: In function 'void init()':
a.cc:15:26: error: 'memset' was not declared in this scope
15 | inline void init(){eid=0;memset(p,-1,sizeof(p));}
| ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #includ... |
s966246786 | p00000 | C++ | main(a,b){for(a=1,b=1;a<=9;(b%=9)||(a++,b++))printf("%dx%d=%d\n",a,b++,a*b);} | a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(a,b){for(a=1,b=1;a<=9;(b%=9)||(a++,b++))printf("%dx%d=%d\n",a,b++,a*b);}
| ^
|
s939511752 | p00000 | C++ | b;main(a){for(;a<=9;(b%=9)||a++)printf("%dx%d=%d",a,++b,a*b+a);} | a.cc:1:1: error: 'b' does not name a type
1 | b;main(a){for(;a<=9;(b%=9)||a++)printf("%dx%d=%d",a,++b,a*b+a);}
| ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
1 | b;main(a){for(;a<=9;(b%=9)||a++)printf("%dx%d=%d",a,++b,a*b+a);}
| ^
|
s528981914 | p00000 | C++ | b;main(a){for(;a<=9;(b%=9)||a++)printf("%dx%d=%d\n",a,++b,a*b+a);} | a.cc:1:1: error: 'b' does not name a type
1 | b;main(a){for(;a<=9;(b%=9)||a++)printf("%dx%d=%d\n",a,++b,a*b+a);}
| ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
1 | b;main(a){for(;a<=9;(b%=9)||a++)printf("%dx%d=%d\n",a,++b,a*b+a);}
| ^
|
s897701325 | p00000 | C++ | import java.io.*;
public class Practice {
public static void main(String[] args)throws IOException {
int a,b;
for(a = 1;a<10;a++){
for(b = 1;b<10;b++){
System.out.println(a + "x" + b + "=" + a*b);
}
}
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.io.*;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Practice {
| ^~~~~~
|
s181997541 | p00000 | C++ | b;main(a){for(;a-10;b%=9||a++)printf("%dx%d=%d\n",a,++b,a*b+b);} | a.cc:1:1: error: 'b' does not name a type
1 | b;main(a){for(;a-10;b%=9||a++)printf("%dx%d=%d\n",a,++b,a*b+b);}
| ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
1 | b;main(a){for(;a-10;b%=9||a++)printf("%dx%d=%d\n",a,++b,a*b+b);}
| ^
|
s404685520 | p00000 | C++ | int main(void){
int i,j;
for(i=j=1;i<=9||(i=(j++));i++,j<=9||exit(0))printf("%dx%d=%d\n",j,i,i*j);
return 0;
} | a.cc: In function 'int main()':
a.cc:3:45: error: 'exit' was not declared in this scope
3 | for(i=j=1;i<=9||(i=(j++));i++,j<=9||exit(0))printf("%dx%d=%d\n",j,i,i*j);
| ^~~~
a.cc:1:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by ... |
s667958446 | p00000 | C++ | main(i,j){for(i=j=1;(i<=9||(i=(j++)&&1))&&j<=9;i++)printf("%dx%d=%d\n",j,i,i*j);} | a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(i,j){for(i=j=1;(i<=9||(i=(j++)&&1))&&j<=9;i++)printf("%dx%d=%d\n",j,i,i*j);}
| ^
|
s155485599 | p00000 | C++ | main(i,j){for(i=j=1;(i<=9||i=j++>0)&&j<=9;i++)printf("%dx%d=%d\n",j,i,i*j);exit(0);} | a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(i,j){for(i=j=1;(i<=9||i=j++>0)&&j<=9;i++)printf("%dx%d=%d\n",j,i,i*j);exit(0);}
| ^
|
s131029350 | p00000 | C++ | #include <OYASUMI> | a.cc:1:10: fatal error: OYASUMI: No such file or directory
1 | #include <OYASUMI>
| ^~~~~~~~~
compilation terminated.
|
s757736718 | p00000 | C++ | main(i){for(i=11;i<=99;printf(i++%10?"%dx%d=%d\n":"",i/10,i%10,i%10*(i/10)));exit(0);} | a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(i){for(i=11;i<=99;printf(i++%10?"%dx%d=%d\n":"",i/10,i%10,i%10*(i/10)));exit(0);}
| ^
|
s426866040 | p00000 | C++ | #include <stdio.h>
int main(void) {
for (int i = 0; i <= 9; i++) {
for (int j = 0 j <= 9; j++) {
printf("%dx%d=%d\n", i, j, i*j);
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:31: error: expected ';' before 'j'
5 | for (int j = 0 j <= 9; j++) {
| ^~
| ;
|
s670842858 | p00000 | C++ | j;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf("%dx%d=%d\n",i,j,i*j);}}} | a.cc:1:1: error: 'j' does not name a type
1 | j;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf("%dx%d=%d\n",i,j,i*j);}}}
| ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
1 | j;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf("%dx%d=%d\n",i,j,i*j);}}}
| ... |
s891496946 | p00000 | C++ | j;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf("%dx%d=%d\n",i,j,i*j);}}exit(0);} | a.cc:1:1: error: 'j' does not name a type
1 | j;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf("%dx%d=%d\n",i,j,i*j);}}exit(0);}
| ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
1 | j;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf("%dx%d=%d\n",i,j,i*j);}}exit(0)... |
s097199790 | p00000 | C++ | j;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf("%dx%d=%d\n",i,j,i*j);}}exit(0);} | a.cc:1:1: error: 'j' does not name a type
1 | j;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf("%dx%d=%d\n",i,j,i*j);}}exit(0);}
| ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
1 | j;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf("%dx%d=%d\n",i,j,i*j);}}exit(0)... |
s980198709 | p00000 | C++ | main()
{
for(int i = 1; i < 10; ++i){
for(int j = 1; j < 10; ++j){
printf("%dx%d=%d\n", i,j,i*j);
}
}
return 0;
} | a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
1 | main()
| ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'printf' was not declared in this scope
5 | printf("%dx%d=%d\n", i,j,i*j);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this ... |
s941334889 | p00000 | C++ | #include <iostream>
using namespace std;
int main ()
{
for(int i = 1; i < a;i++)
{
for(int j = 1; j < 10;j++)
{
cout << i << "x" << j << i*j;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:22: error: 'a' was not declared in this scope
7 | for(int i = 1; i < a;i++)
| ^
|
s551633696 | p00000 | C++ | #include <iostream>using namespace std;int main(){ int a,b;
for(int i=0;i++;i<9){a++;for(int j=0;j++;j<9){b++; cout << a<<"x"<<b<<"="<<a*b<< endl; return 0;} | a.cc:1:26: warning: extra tokens at end of #include directive
1 | #include <iostream>using namespace std;int main(){ int a,b;
| ^~~~~~~~~
a.cc:1:10: fatal error: iostream>usin: No such file or directory
1 | #include <iostream>using namespace std;int main(){ int a,b;
| ... |
s924568104 | p00000 | C++ | #include <iostream>
using namespace std;
int main()
{
for(int i=1;i<=9;i++){
for(int j=1;j<=9;j++){
printf("%dx%d=%d\n",i,j,i*j);
}
} | a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s284117396 | p00000 | C++ | #include <iostream>
#include <cstdio>
using namespace std;
int main()
{
for(int i=1;i<=9;i++){
for(int j=1;j<=9;j++){
printf("%d%s%d=%d\n",i,j,'x',i*j);
}
return 0;
} | a.cc: In function 'int main()':
a.cc:13:2: error: expected '}' at end of input
13 | }
| ^
a.cc:7:1: note: to match this '{'
7 | {
| ^
|
s880822723 | p00000 | C++ | #include <iostream>
#include <cstdio>
using namespace std;
int main()
{
for(int i=1;i<=9;i++){
for(int j=1;j<=9;j++){
printf("%d%s%d=%d\n",i,j,"x",i*j);
}
return 0;
} | a.cc: In function 'int main()':
a.cc:13:2: error: expected '}' at end of input
13 | }
| ^
a.cc:7:1: note: to match this '{'
7 | {
| ^
|
s949277856 | p00000 | C++ | #include <stdio.h>
#define N 10;
int main(void){
int i,j;
for(i=1;i<N;i++)
for(j=1;j<N;j++)
printf("%dx%d=%d",i,j,i*j);
return 0;
} | a.cc: In function 'int main()':
a.cc:6:20: error: expected primary-expression before ';' token
6 | for(i=1;i<N;i++)
| ^
a.cc:6:20: error: expected ')' before ';' token
6 | for(i=1;i<N;i++)
| ~ ^
a.cc:6:24: error: expected ';' before ')' token
6... |
s628478590 | p00000 | C++ | int main() { | a.cc: In function 'int main()':
a.cc:1:13: error: expected '}' at end of input
1 | int main() {
| ~^
|
s126323280 | p00000 | C++ | #include <stdio.h>
int main() {
int i,j;
for(i=0; i<9; i++)
for(j=0; j<9; j++)
printf("%dx%d=%d
",i+1,j+1,(i+1)*(j+1));
return 0;
} | a.cc:6:14: warning: missing terminating " character
6 | printf("%dx%d=%d
| ^
a.cc:6:14: error: missing terminating " character
6 | printf("%dx%d=%d
| ^~~~~~~~~
a.cc:7:1: warning: missing terminating " character
7 | ",i+1,j+1,(i+1)*(j+1));
| ^
a.cc:7:1:... |
s993267734 | p00000 | C++ | #include <stdio.h>
int main() {
int i,j;
for(i=0; i<9; i++)
for(j=0; j<9; j++)
printf("%dx%d=%d
",i+1,j+1,(i+1)*(j+1));
return 0;
} | a.cc:6:14: warning: missing terminating " character
6 | printf("%dx%d=%d
| ^
a.cc:6:14: error: missing terminating " character
6 | printf("%dx%d=%d
| ^~~~~~~~~
a.cc:7:1: warning: missing terminating " character
7 | ",i+1,j+1,(i+1)*(j+1));
| ^
a.cc:7:1:... |
s741050071 | p00000 | C++ | /*
* by purple
* at 12-03-06 7:13:04 PM
*/
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <vector>
#include <string>
#include <sstream>
#include <deque>
#include <map>
using namespace std;
#define sz(x) ((int)((x).size()))
#define out(x) printf(#x" %d\n", x)
#define rep(i,n) for(int i=0;i<(n);... | a.cc: In function 'int main()':
a.cc:399:12: error: 'gets' was not declared in this scope; did you mean 'getw'?
399 | while (gets(s), s[0] != '#') {
| ^~~~
| getw
a.cc: In function 'int arOperation(int, int, int)':
a.cc:45:1: warning: control reaches end of non-void function [-Wr... |
s222168252 | p00000 | C++ | #include<iostream>
int main(){
int a=1,b=1;
int c;
for(int i=0;i<9;i++){
for(int j=0;j<9;j++){
c=a*b;
cout<<a<<"x"<<b<<"="<<c<<endl;
b++;
}
A++;
}
} | a.cc: In function 'int main()':
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout<<a<<"x"<<b<<"="<<c<<endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ... |
s504351640 | p00000 | C++ | #include<iostream>
int main(){
int a=1,b=1;
int c;
for(int i=0;i++;i<9){
for(int j=0;j++;j<9){
c=a*b;
cout<<a<<"x"<<b<<"="<<c<<endl;
b++;
}
a++;
}
} | a.cc: In function 'int main()':
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout<<a<<"x"<<b<<"="<<c<<endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ... |
s833489443 | p00000 | C++ | #include<iostream>
int main(){
int a=1,b=1;
int c;
for(int i=0;i<9;i++){
for(int j=0;j<9;j++){
c=a*b;
cout<<a<<"x"<<b<<"="<<c<<endl;
b++;
}
a++;
}
} | a.cc: In function 'int main()':
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout<<a<<"x"<<b<<"="<<c<<endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ... |
s286468163 | p00000 | C++ | public class Main{
public static void main(String[] args)throws Exception{
for(int i=1; i<10; i++){
for(int j=1; j<10; j++){
System.out.println(i + "x" + j + "=" + (i*j));
}
}
}
} | a.cc:1:1: error: expected unqualified-id before 'public'
1 | public class Main{
| ^~~~~~
|
s709586893 | p00000 | C++ | int main(){
for (i = 1; i<9; i++){
printf("%d×%d=%d", i, i, i*i);
}} | a.cc: In function 'int main()':
a.cc:2:8: error: 'i' was not declared in this scope
2 | for (i = 1; i<9; i++){
| ^
a.cc:3:5: error: 'printf' was not declared in this scope
3 | printf("%d×%d=%d", i, i, i*i);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is p... |
s466910375 | p00000 | C++ | int main(void){
int i;
for (i=1; i<9; i++){
printf("%d×%d=%d", i, i, i*i);
}} | a.cc: In function 'int main()':
a.cc:4:5: error: 'printf' was not declared in this scope
4 | printf("%d×%d=%d", i, i, i*i);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | int main(void){
|
s036653557 | p00000 | C++ | #include <stdio.h>
int main(void){
int i,j;
for (i=1; i<10; i++){
for(j=1,j<10;j++){
printf("%d×%d=%d", i, j, i*j);
}}} | a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before ')' token
6 | for(j=1,j<10;j++){
| ^
| ;
|
s235327436 | p00000 | C++ | # include<iostream>
using namespace std;
int main()
{
int i,j;
for(i=1;i<10;i++)
for(j=1;j<10;j++)
cout<<i<<'<<j<<i*j<<endl;
return 0;
} | a.cc:8:24: warning: missing terminating ' character
8 | cout<<i<<'<<j<<i*j<<endl;
| ^
a.cc:8:24: error: missing terminating ' character
8 | cout<<i<<'<<j<<i*j<<endl;
| ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5:... |
s608650847 | p00000 | C++ | class Main{
public static void main(String[] a){
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
System.out.println(i + "x" + j + "=" + i * j);
}
}
}
} | a.cc:2:11: error: expected ':' before 'static'
2 | public static void main(String[] a){
| ^~~~~~~
| :
a.cc:2:29: error: 'String' has not been declared
2 | public static void main(String[] a){
| ^~~~~~
a.cc:2:38: error: expected ',' or '..... |
s223366187 | p00000 | C++ | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA... | a.cc:1:1: error: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA... |
s648117229 | p00000 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace supermanse
{
class Program
{
static void Main(string[] args)
{
int a = 1;
int b = 1;
int c;
for (; ; )
{
c = a * b;
... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections.Generic;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.L... |
s507907353 | p00000 | C++ | cin<<fhadsuifherfhdhgdasyerh<<out | a.cc:1:1: error: 'cin' does not name a type
1 | cin<<fhadsuifherfhdhgdasyerh<<out
| ^~~
|
s679075715 | p00000 | C++ | #include <iostream.h>
using namespace std;
int main() {
int i,j;
for (i=1; i<=9; i++){
for (j=1; j<=9; j++){
cout << i << "x" << j << "=" << i*j << "\n";
}
}
return 0;
} | a.cc:1:10: fatal error: iostream.h: No such file or directory
1 | #include <iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s959420229 | p00000 | C++ | #include <stdio.h>
int main(void)
{
int i,j;
for(i = 1; i <= 9; i++, printf("\n"))
for(j = 1; j <= 9; j++)
printf("%dx%d=%d\n", i, j, i*j)
} | a.cc: In function 'int main()':
a.cc:10:56: error: expected ';' before '}' token
10 | printf("%dx%d=%d\n", i, j, i*j)
| ^
| ;
11 | }
| ~ ... |
s695539243 | p00000 | C++ | e | a.cc:1:1: error: 'e' does not name a type
1 | e
| ^
|
s175512264 | p00000 | C++ | #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <queue>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cst... | a.cc: In function 'int main()':
a.cc:64:32: error: 'str' was not declared in this scope; did you mean 'std'?
64 | printf(str, "%dx%d=%d\n", i, j, i*j);
| ^~~
| std
|
s101171938 | p00000 | C++ | #include<iostream>
using namespace std;
int main()
{
int i=1,k=1;
for(i=1;i<=9;i++)
{
for(k=1;k<=9;k++)
{cout<<i<<"<<k<<"="<<i*k<<endl;}
}
return 0;
} | a.cc:9:23: warning: missing terminating " character
9 | {cout<<i<<"<<k<<"="<<i*k<<endl;}
| ^
a.cc:9:23: error: missing terminating " character
9 | {cout<<i<<"<<k<<"="<<i*k<<endl;}
| ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: e... |
s788242858 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(int i=1;i<=9;i++)
for(int k=1;k<=9;k++)
cout<<i<<'<<k<<'='<<i*k<<endl;
return 0;
} | a.cc:6:14: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
6 | cout<<i<<'<<k<<'='<<i*k<<endl;
| ^~~~~~~
a.cc:6:22: warning: missing terminating ' character
6 | cout<<i<<'<<k<<'='<<i*k<<endl;
| ^
a.cc:6:22: error: missing term... |
s470495538 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(int i=1;i<=9;i++)
for(int k=1;k<=9;k++)
cout<<i<<'<<k<<'='<<i*k<<endl;
return 0;
} | a.cc:6:14: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
6 | cout<<i<<'<<k<<'='<<i*k<<endl;
| ^~~~~~~
a.cc:6:22: warning: missing terminating ' character
6 | cout<<i<<'<<k<<'='<<i*k<<endl;
| ^
a.cc:6:22: error: missing term... |
s270162762 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(int i=1;i<=9;i++)
for(int k=1;k<=9;k++)
cout<<i<<'x'<<j<<'='<<i*j<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:24: error: 'j' was not declared in this scope
6 | cout<<i<<'x'<<j<<'='<<i*j<<endl;
| ^
|
s413627246 | p00000 | C++ |
class Main{
public static void main(String[] a){
int b=1;
int c=1;
do{
if(c<10){
System.out.println(b+"x"+c+"="+b*c);
c++;
}
else if(c>9){
b++;
c=1;
}
}while(b<10);
}
} | a.cc:3:11: error: expected ':' before 'static'
3 | public static void main(String[] a){
| ^~~~~~~
| :
a.cc:3:29: error: 'String' has not been declared
3 | public static void main(String[] a){
| ^~~~~~
a.cc:3:38: error: expected ',' or '..... |
s803899561 | p00000 | C++ | <?php
for ( $i = 1; $i <= 9; ++ $i ) {
for ( $j = 1; $j <= 9; ++ $j ) {
echo "" . $i . "x" . $j . "=" . $i * $j . "\n";
}
}
?> | a.cc:1:1: error: expected unqualified-id before '<' token
1 | <?php
| ^
a.cc:2:15: error: '$i' does not name a type
2 | for ( $i = 1; $i <= 9; ++ $i ) {
| ^~
a.cc:2:24: error: expected unqualified-id before '++' token
2 | for ( $i = 1; $i <= 9; ++ $i ) {
| ... |
s779183264 | p00000 | C++ | <?php
for ( $i = 1; $i <= 9; ++ $i ) {
for ( $j = 1; $j <= 9; ++ $j ) {
echo "" . $i . "x" . $j . "=" . $i * $j;
}
}
?> | a.cc:1:1: error: expected unqualified-id before '<' token
1 | <?php
| ^
a.cc:2:15: error: '$i' does not name a type
2 | for ( $i = 1; $i <= 9; ++ $i ) {
| ^~
a.cc:2:24: error: expected unqualified-id before '++' token
2 | for ( $i = 1; $i <= 9; ++ $i ) {
| ... |
s562910245 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(int i = 1; i <= 9; i++){
for(int i = 1; i <= 9; i++){
cout << i << "x" << j << "=" << i * j << endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:33: error: 'j' was not declared in this scope
7 | cout << i << "x" << j << "=" << i * j << endl;
| ^
|
s699990076 | p00000 | C++ | #include <iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
const int maxn = 1023;
const int maxe = 800000;
/*************荳?握蝗セ蛹ケ驟肴ィ。譚ソ**********************/
int first[maxn],nxt[maxe],E[maxe],M;
int all, match[maxn];//all陦ィ遉コ蝗セ荳顔噪諤サ轤ケ謨ー,match陦ィ遉コ豈丈クェ轤ケ逧?嘗荳?クェ蛹ケ驟咲せ?育せ逧??蜿キ莉?蛻ーn, 蟷カ荳蚤ll>... | a.cc: In function 'int main()':
a.cc:161:21: error: too few arguments to function 'void init(int)'
161 | init();
| ~~~~^~
a.cc:15:6: note: declared here
15 | void init(int n) {
| ^~~~
|
s146964020 | p00000 | C++ | #include<cstdio>
#include<vector>
#define MOD 39989
#define MAXN 39990
using namespace std;
typedef __int64 LL;
LL a[5][220];
vector<LL> G[MAXN];
int n;
inline LL ABS(LL x) {
return x > 0 ? x : -x;
}
inline void Insert(LL x) {
int t;
t = ABS(x) % MOD;
G[t].push_back(x);
// printf("%lld ", x);
}
bool Find(LL x) {
... | a.cc:6:9: error: '__int64' does not name a type; did you mean '__int64_t'?
6 | typedef __int64 LL;
| ^~~~~~~
| __int64_t
a.cc:7:1: error: 'LL' does not name a type; did you mean 'NULL'?
7 | LL a[5][220];
| ^~
| NULL
a.cc:8:8: error: 'LL' was not declared in this scope; di... |
s874654980 | p00000 | C++ | #include <iostream>
usnig namespace std;
int main()
{
for(int i=1;i<10;i++)
for(int j=1;j<10;j++)
cout<<i<<"x"<<j<<"="<<i*j<<endl;
return 0;
} | a.cc:2:1: error: 'usnig' does not name a type
2 | usnig namespace std;
| ^~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout<<i<<"x"<<j<<"="<<i*j<<endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c+... |
s250023266 | p00000 | C++ | #include<stdio.h>
main()
{ | a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main()
| ^~~~
a.cc: In function 'int main()':
a.cc:3:2: error: expected '}' at end of input
3 | {
| ~^
|
s350365667 | p00000 | C++ | for a in range(1,10):
for b in range(1,10):
print a,'x',b,'=',a*b | a.cc:1:1: error: expected unqualified-id before 'for'
1 | for a in range(1,10):
| ^~~
|
s074779519 | p00000 | C++ | include <iostream>
using namespace std;
int main(int argc, char** argv)
{
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
cout << i << "x" << j << "=" << i * j << endl;
}
}
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
a.cc: In function 'int main(int, char**)':
a.cc:9:25: error: 'cout' was not declared in this scope
9 | cout << i << "x" << j << "=" << i * j << endl;
| ^~~~
a.cc:9:66: err... |
s205448275 | p00000 | C++ | #include <iostream>
#include <conio.h>
using namespace std;
int main()
{
for(int i=1; i<=9; i++)
{
for(int x=1; x<=9; x++)
{
cout<<i*x<<endl;
}
}
cin.get();
getch();
return 0;
} | a.cc:2:10: fatal error: conio.h: No such file or directory
2 | #include <conio.h>
| ^~~~~~~~~
compilation terminated.
|
s808571440 | p00000 | C++ | #include <iostream>
using namespace std;
int main()
{
for(int i=1; i<=9; i++)
{
for(int x=1; x<=9; x++)
{
cout<<x*i=<<x*i<<endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:29: error: expected primary-expression before '<<' token
11 | cout<<x*i=<<x*i<<endl;
| ^~
|
s372334670 | p00000 | C++ | #include<iostream>
using namespace std;
int main()
{
for(int i=1;i<10;++i)
{
for(int x=1;j<10;++j)
{
cout << i << 'x' << x << '=' << i*x << endl;
}
}
} | a.cc: In function 'int main()':
a.cc:7:21: error: 'j' was not declared in this scope
7 | for(int x=1;j<10;++j)
| ^
|
s740156306 | p00000 | C++ | #include<iostream>
int main()
{
for(int i=1;i<10;++i)
{
for(int x=1;j<10;++j)
{
std::cout << i << 'x' << x << '=' << i*x << endl;
}
}
} | a.cc: In function 'int main()':
a.cc:7:21: error: 'j' was not declared in this scope
7 | for(int x=1;j<10;++j)
| ^
a.cc:9:57: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | std::cout << i << 'x' << x << '=' << i*x << endl;
| ... |
s352083326 | p00000 | C++ | #include<iostream>
int main()
{
for(int i=1;i<10;++i)
{
for(int x=1;x<10;x++)
{
std::cout << i << 'x' << x << '=' << i*x << endl;
}
}
} | a.cc: In function 'int main()':
a.cc:9:57: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | std::cout << i << 'x' << x << '=' << i*x << endl;
| ^~~~
| st... |
s656646146 | p00000 | C++ | #include<iostream>
int main()
{
for(int i=1;i<10;i++)
{
for(int x=1;x<10;x++)
{
std::cout << i << 'x' << x << '=' << i*x << endl;
}
}
} | a.cc: In function 'int main()':
a.cc:9:57: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | std::cout << i << 'x' << x << '=' << i*x << endl;
| ^~~~
| st... |
s820271616 | p00000 | C++ | #include<iostream>
using namespace std;
int main()
{
for(int i=1;i<10;++i)
{
for(int x=1;j<10;++j)
{
cout << i << 'x' << j << '=' << i*j << endl;
}
}
} | a.cc: In function 'int main()':
a.cc:7:21: error: 'j' was not declared in this scope
7 | for(int x=1;j<10;++j)
| ^
|
s983315350 | p00000 | C++ | test | a.cc:1:1: error: 'test' does not name a type
1 | test
| ^~~~
|
s328791775 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(int i=1;i<10;++i){
for(int j=1;j<10a;++j)
cout << i << "*" << j << "=" << i*j << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:31: error: unable to find numeric literal operator 'operator""a'
6 | for(int j=1;j<10a;++j)
| ^~~
|
s979844696 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(i=1;i<=9;++i){
for(j=0;j<=9;++j){
cout<<i<<"x"<<j<<i*j;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
7 | for(i=1;i<=9;++i){
| ^
a.cc:8:21: error: 'j' was not declared in this scope
8 | for(j=0;j<=9;++j){
| ^
|
s930352151 | p00000 | C++ | #include<iostream>
using namesoace std;
int main(void){
for(int i=1;i<10;i++)
for(int j=1;j<10;j++)
cout << i << "x" << j << "=" << << i*j << endl;
return 0;
} | a.cc:3:7: error: expected nested-name-specifier before 'namesoace'
3 | using namesoace std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout << i << "x" << j << "=" << << i*j << endl;
| ^~~~
... |
s708760747 | p00000 | C++ | #include<iostream>
using namespace std;
void main()
{
int a=0,b;
for(int j=1;j<=9;j++){
a++;
b=1;
for(int i=1;i<=9;i++){
cout<<a<<"*"<<b<<"="<<a*b<<endl;
b++;
}
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | void main()
| ^~~~
|
s562406489 | p00000 | C++ | #include<stdio.h>
int main(void)
{
for(int f1=1;f1<=9;f1++){
for(int f2=1;f2<=9;f2++){
printf("%dx%d=%d\n",f1,f2,f1*f2);
return 0;
} | a.cc: In function 'int main()':
a.cc:8:2: error: expected '}' at end of input
8 | }
| ^
a.cc:4:25: note: to match this '{'
4 | for(int f1=1;f1<=9;f1++){
| ^
a.cc:8:2: error: expected '}' at end of input
8 | }
| ^
a.cc:3:1: note: to match this '{'
3 | {
|... |
s386823928 | p00000 | C++ | //譛?ソ醍せ蟇ケ
#include<stdio.h>
#include<math.h>
#include<algorithm>
using namespace std;
#define N 1000010
struct point
{
double x;
double y;
}p1[N],p2[N];
double dis ( point a , point b )
{
return sqrt( pow (a.x-b.x,2) + pow ( a.y-b.y,2 ) );
}
double min ( double a , double b )
{
return a<b?a:b;
}
bool cpx ( poi... | a.cc: In function 'double mindis(int, int)':
a.cc:52:9: error: 'i' was not declared in this scope
52 | for ( i=0 ; i < count ; i++ )
| ^
|
s866097200 | p00000 | C++ | #include<iostream>
using namespace std ;
int main()
{
int a,
for ( a = 1 ; a < 10 ; a++ )
for ( b = 1 ; b < 10 ; b++ )
cout << a << 'x' << b << '=' << a * b << endl ;
return 0 ;
} | a.cc: In function 'int main()':
a.cc:6:9: error: expected unqualified-id before 'for'
6 | for ( a = 1 ; a < 10 ; a++ )
| ^~~
a.cc:6:35: error: expected ';' before ')' token
6 | for ( a = 1 ; a < 10 ; a++ )
| ^~
| ... |
s561377522 | p00000 | C++ | #include<stdio.h>
int main(){
int i=1,j=1;
while(i<=9)
{
while(j<=9)
{
printf("%dx%d=%d\n",i,j);
j++;
}
i++
}
return 0;
} | a.cc: In function 'int main()':
a.cc:12:4: error: expected ';' before '}' token
12 | i++
| ^
| ;
13 | }
| ~
|
s045702987 | p00000 | C++ | for i in range(1,10):
print i,"x",i,"=",i*i | a.cc:1:1: error: expected unqualified-id before 'for'
1 | for i in range(1,10):
| ^~~
|
s834901457 | p00000 | C++ | #include<iostream>
using namespace std;
void main(){
int i,j;
for(i=1;i<=9;i++)
for(j=1;j<=9;j++)
{
cout<<i<<"*"<<j<<"="<<i*j<<endl;
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | void main(){
| ^~~~
|
s042863684 | p00000 | C++ | #include <iostream>
using namespace std;
int main()
{
for(int i=1;i<10;i++)
{
for(int j=1;j<10;j++)
{
cout<<i<<"x"<<j<<"="<<x*j;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:24: error: 'x' was not declared in this scope
10 | cout<<i<<"x"<<j<<"="<<x*j;
| ^
|
s974325168 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(i=1; i<=9;++i){
for(j=1;j<=9;++j){
cout<< i << "x" << j <<"="<< i*j <<endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
7 | for(i=1; i<=9;++i){
| ^
a.cc:8:21: error: 'j' was not declared in this scope
8 | for(j=1;j<=9;++j){
| ^
|
s588267541 | p00000 | C++ | #include<stdio.h>
int main(void){
int printf(1x1=1,1x2=2,..9x8=72,9x9=81)
return 0;
} | a.cc: In function 'int main()':
a.cc:4:20: error: unable to find numeric literal operator 'operator""x1'
4 | int printf(1x1=1,1x2=2,..9x8=72,9x9=81)
| ^~~
a.cc:4:26: error: unable to find numeric literal operator 'operator""x2'
4 | int printf(1x1=1,1x2=2,..9x8=72,9x9=81)... |
s692634116 | p00000 | C++ | #include<stdio.h>
int main(void){
int printf(1x1=1,1x2=2,..9x8=72,9x9=81)
return 0;
} | a.cc: In function 'int main()':
a.cc:4:20: error: unable to find numeric literal operator 'operator""x1'
4 | int printf(1x1=1,1x2=2,..9x8=72,9x9=81)
| ^~~
a.cc:4:26: error: unable to find numeric literal operator 'operator""x2'
4 | int printf(1x1=1,1x2=2,..9x8=72,9x9=81)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.