submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s106553174 | p00000 | C++ | #include <cstdio>
#include<iostream>
using namespace std;
int main(void){
int ans,i,j;
for(i=1;i<10;i++){
for(j=1;j<10;j++){
ans=i*j;
cout<<i<<"x"<<j<<"="<<ans<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:17:2: error: expected '}' at end of input
17 | }
| ^
a.cc:5:15: note: to match this '{'
5 | int main(void){
| ^
|
s709853044 | p00000 | C++ | using System;
public class Program {
public static void Main() {
for(int i = 1; i <= 9; i++) {
for(int j = 1; j <= 9; j++) {
Console.WriteLine(i + "x" + j + "=" + (i * j));
}
}
}
} | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:1: error: expected unqualified-id before 'public'
2 | public class Program {
| ^~~~~~
|
s455555129 | p00000 | C++ | #include<iostream>
const int X99 9
const int Y99 9
int main()
{
for(int x=1;x<=X99;x++){
for(int y=1;y<=Y99;y++){
cout << x << 'x' << y << '='<< x*y << '\n';
}
}
} | a.cc:2:15: error: expected initializer before numeric constant
2 | const int X99 9
| ^
|
s174728762 | p00000 | C++ | #include<iostream>
const int X99 9
const int Y99 9
int main()
{
for(int x=1;x<=X99;x++){
??for(int y=1;y<=Y99;y++){
??????std::cout << x << 'x' << y << '='<< x*y << '\n';
????}
??}
return 0;
} | a.cc:2:15: error: expected initializer before numeric constant
2 | const int X99 9
| ^
|
s574616516 | p00000 | C++ | #include<iostream>
const int X99 9
const int Y99 9
int main()
{
for(int x=1;x<=X99;x++){
for(int y=1;y<=Y99;y++){
std::cout << x << 'x' << y << '='<< x*y << '\n';
}
}
return 0;
} | a.cc:2:15: error: expected initializer before numeric constant
2 | const int X99 9
| ^
|
s169126519 | p00000 | C++ | #include <iostream>
int main(){
for(int i = 1; i < 10; i++){
for(int j = 1; j < 10; j++){
cout << i << "x" << j << "=" << i*j << endl;
}
}
} | a.cc: In function 'int main()':
a.cc:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
6 | cout << i << "x" << j << "=" << i*j << 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... |
s019471269 | 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:6:5: error: 'i' was not declared in this scope
6 | for(i=1;i<9;i++){
| ^
a.cc:7:7: error: 'j' was not declared in this scope
7 | for(j=1;j<9;j++){
| ^
|
s611765189 | p00000 | C++ | #include <iostream>
using namespace std;
int main()
{
int multiplier,multiplicand;
for( multiplicand = 1; multiplicand < 10 ; multiplicand++)
{
for(multiplier = 1; multiplier < 10 ; multiplier++)
cout << multiplicand << "x" << multiplier << "=" multiplicand * multiplier << endl;
}
... | a.cc: In function 'int main()':
a.cc:11:60: error: expected ';' before 'multiplicand'
11 | cout << multiplicand << "x" << multiplier << "=" multiplicand * multiplier << endl;
| ^~~~~~~~~~~~~
| ... |
s758906668 | p00000 | C++ | #include <iostream>
int main() {
for(int i = 1; i <= 9; ++i)
for(int j = 1; j <= 9; ++j)
std::cout << i << "x" << j << "=" << i * j << std::end;
} | a.cc: In function 'int main()':
a.cc:6:46: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
6 | std::cout << i << "x" << j << "=" << i * j << std::end;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from ... |
s448368982 | p00000 | C++ | int main(){
int a,b;
for(a=1;a<=9;a++)
for(b=1;b<=9;b++)
printf("%dx%d=%d\n",a,b,a*b);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:13: error: 'printf' was not declared in this scope
5 | printf("%dx%d=%d\n",a,b,a*b);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | int ma... |
s684979790 | p00000 | C++ | class Main{
public static void main(String[] a){
int[] x = new int[];
int x[] = {1,2,3,4,5,6,7,8,9,};
int[] y = new int[];
int y[] = {1,2,3,4,5,6,7,8,9,};
??????
??????for (i=0;i<10;i++){
for (j=0;j<10;j++){
system.out.println{x[i]+"x"+y[j]+"="+x[i]*y[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 '..... |
s330277050 | p00000 | C++ | class Main{
public static void main(String[] a){
int[] x = new int[9];
int x[] = {1,2,3,4,5,6,7,8,9};
int[] y = new int[9];
int y[] = {1,2,3,4,5,6,7,8,9};
for(int i=0;i<10;i++){
for(int j=0;j<10;j++){
System.out.println{x[i]+"x"+y[j]+"="+x[i]*y[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 '..... |
s287405779 | p00000 | C++ | package volume0;
public class Main{
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: 'package' does not name a type
1 | package volume0;
| ^~~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main{
| ^~~~~~
|
s310479693 | p00000 | C++ | public class Main{
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: expected unqualified-id before 'public'
1 | public class Main{
| ^~~~~~
|
s423254136 | p00000 | C++ | using System;
namespace mul
{
class Program
{
static void Main(string[] args)
{
for (int cntX = 1; cntX < 10; cntX++)
{
for (int cntY = 1; cntY < 10; cntY++)
Console.WriteLine("{0}x{1}={2}", cntX, cntY, cntX * cntY);
}
... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:7:26: error: 'string' has not been declared
7 | static void Main(string[] args)
| ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
7 | static... |
s937742131 | p00000 | C++ | namespace mul
{
class Program
{
static void Main(string[] args)
{
for (int cntX = 1; cntX < 10; cntX++)
{
for (int cntY = 1; cntY < 10; cntY++)
System.Console.WriteLine("{0}x{1}={2}", cntX, cntY, cntX * cntY);
}
}
... | a.cc:5:26: error: 'string' has not been declared
5 | static void Main(string[] args)
| ^~~~~~
a.cc:5:35: error: expected ',' or '...' before 'args'
5 | static void Main(string[] args)
| ^~~~
a.cc:13:6: error: expected ';' aft... |
s467203146 | p00000 | C++ | #incldue <stdio.h>
int main(void)
{
int i, j;
for (i = 1; i <= 9; i++){
for (j = 1; j <= 9; j++) printf("%dx%d=%d\n", i, j, i * j);
}
return(0);
} | a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
1 | #incldue <stdio.h>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:7:34: error: 'printf' was not declared in this scope
7 | for (j = 1; j <= 9; j++) printf("%dx%d=%d\n", i, j, i * j);
| ... |
s113644333 | p00000 | C++ | #include <iostream>
#include <assert.h>
#include <list>
#include <vector>
#include <cmath>
void ff( std::list< std::vector< std::string > > & c )
{
// ??¢???
std::for_each( c.begin(), c.end(),
[]( std::vector< std::string> & elem )
{ }
) ;
// ?°????
std::for_each( c.begin(), c.end(... | a.cc: In function 'void ff(std::__cxx11::list<std::vector<std::__cxx11::basic_string<char> > >&)':
a.cc:10:10: error: 'for_each' is not a member of 'std'
10 | std::for_each( c.begin(), c.end(),
| ^~~~~~~~
a.cc:16:10: error: 'for_each' is not a member of 'std'
16 | std::for_each( c.begin(), ... |
s066549872 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for (int i =1; i < 10; i++){
for (int i2 = 1; i2 < 10; i2++{
cout << i << "x" << i2 << "=" << i * i2;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:32: error: expected ')' before '{' token
7 | for (int i2 = 1; i2 < 10; i2++{
| ~ ^
| )
|
s790639279 | p00000 | C++ | using System;
class AOJ{
static void Main(string[] args)
{
for(int i=1; i<=9; i++){
for(int j=1; j<=9; j++)
Console.WriteLine(i+"x"+j+"="+i*j);
}
}
} | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:4:20: error: 'string' has not been declared
4 | static void Main(string[] args)
| ^~~~~~
a.cc:4:29: error: expected ',' or '...' before 'args'
4 | static void Main(string[... |
s861586807 | p00000 | C++ | ! | a.cc:1:1: error: expected unqualified-id before '!' token
1 | !
| ^
|
s011880254 | p00000 | C++ | ! | a.cc:1:1: error: expected unqualified-id before '!' token
1 | !
| ^
|
s256650325 | p00000 | C++ | for i in 1...9for j in 1...9 print i,"x",j,"=",i*j,"\n" | a.cc:1:10: error: too many decimal points in number
1 | for i in 1...9for j in 1...9 print i,"x",j,"=",i*j,"\n"
| ^~~~~~~~
a.cc:1:24: error: too many decimal points in number
1 | for i in 1...9for j in 1...9 print i,"x",j,"=",i*j,"\n"
| ^~~~~
a.cc:1:1: error: expected... |
s155524884 | p00000 | C++ | for i in 1..9for j in 1..9 print i,"x",j,"=",i*j,"\n"end end | a.cc:1:10: error: too many decimal points in number
1 | for i in 1..9for j in 1..9 print i,"x",j,"=",i*j,"\n"end end
| ^~~~~~~
a.cc:1:23: error: too many decimal points in number
1 | for i in 1..9for j in 1..9 print i,"x",j,"=",i*j,"\n"end end
| ^~~~
a.cc:1:1: error: e... |
s506910499 | p00000 | C++ | using System;
class Program
{
static void Main()
{
int i, j;
for (i = 1; i < 10; i++){
for (j = 1; j < 10; j++){
Console.WriteLine(i+"x"+j+"="+i*j);
}
}
}
} | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:14:2: error: expected ';' after class definition
14 | }
| ^
| ;
a.cc: In static member function 'static void Program::Main()':
a.cc:10:9: error: 'Console' was not declared in this scope
10... |
s852937995 | p00000 | C++ | #include <cstdio>
#include <iostream>
using namespace std;
int main(void)
{
int i, j;
for (i = 1; i <= 9; i++; ) {
for (j = 1; j <=9; j++) {
printf("%dx%d=%d\n", i, j, i*j);
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:28: error: expected ')' before ';' token
9 | for (i = 1; i <= 9; i++; ) {
| ~ ^
| )
a.cc:9:30: error: expected primary-expression before ')' token
9 | for (i = 1; i <= 9; i++; ) {
| ... |
s733554712 | p00000 | C++ | #include<stdio.h>
int main(void)
{
int i,j;
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
print("%dx%d=%d",i,j,i*j);
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:25: error: 'print' was not declared in this scope; did you mean 'printf'?
7 | print("%dx%d=%d",i,j,i*j);
| ^~~~~
| printf
|
s131279699 | p00000 | C++ | include<stdio.h>
int main(){
int i,j;
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
printf("%d×%d=%d\n",i,j,i*j);
}
}
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<stdio.h>
| ^~~~~~~
|
s264639546 | p00000 | C++ | include<stdio.h>
int main(){
int i,j;
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
printf("%d×%d=%d\n",i,j,i*j);
}
}
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<stdio.h>
| ^~~~~~~
|
s971142307 | p00000 | C++ | using System;
namespace _0000_QQ {
public static class Program {
public static void Main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
Console.WriteLine("{0}x{1}={2}", i, j, i * j);
}
}
}
}
} | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:5:9: error: expected unqualified-id before 'public'
5 | public static class Program {
| ^~~~~~
|
s987724805 | p00000 | C++ | class Main{
public static void main(String[] a){
int d;
for(int x = 0,x < 10,x++){
for(int y = 0,y < 10,y++){
d = x * y;
System.out.print(x + "x" + y = d);
}
}
}
} | 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 '..... |
s110910675 | 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)+ \\n);
}
}
}
} | a.cc:5:63: error: stray '\' in program
5 | System.out.println(i + "x" + j + "=" + (i*j)+ \\n);
| ^
a.cc:5:64: error: stray '\' in program
5 | System.out.println(i + "x" + j + "=" + (i*j)+ \\n);
| ... |
s707175314 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(i = 1; i < 10; i++)
for(j = 1; j < 10; i++)
cout << i "x" j "=" i*j << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:21: error: 'i' was not declared in this scope
5 | for(i = 1; i < 10; i++)
| ^
a.cc:6:29: error: 'j' was not declared in this scope
6 | for(j = 1; j < 10; i++)
| ^
|
s364322549 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
int i;
int j;
for(i = 1; i < 10; i++){
for(j = 1; j < 10; i++){
cout << i "x" j "=" i*j << endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before string constant
9 | cout << i "x" j "=" i*j << endl;
| ^~~~
| ;
|
s442388679 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
QQ(9,9);
return 0;
}
void QQ(int i,int j){
if(1 <= i){ QQ(i - 1, j)};
if(1 <= j){ QQ(i, j - 1);
cout << i << "x" << j << "=" << i*j << endl;
} | a.cc: In function 'int main()':
a.cc:5:17: error: 'QQ' was not declared in this scope
5 | QQ(9,9);
| ^~
a.cc: In function 'void QQ(int, int)':
a.cc:10:33: error: expected ';' before '}' token
10 | if(1 <= i){ QQ(i - 1, j)};
| ^
... |
s768845350 | p00000 | C++ | #include<iostream>
using namespace std;
void QQ(int i,int j){
if(1 <= i){ QQ(i - 1, j)};
if(1 <= j){ QQ(i, j - 1)};
cout << i << "x" << j << "=" << i*j << endl;
}
int main(){
QQ(9,9);
return 0;
} | a.cc: In function 'void QQ(int, int)':
a.cc:5:33: error: expected ';' before '}' token
5 | if(1 <= i){ QQ(i - 1, j)};
| ^
| ;
a.cc:6:33: error: expected ';' before '}' token
6 | if(1 <= j){ QQ(i, j - 1)};
| ... |
s662290821 | p00000 | C++ | #include<iostream>
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 << endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:1: error: expected primary-expression before '?' token
5 | ??????int i, j;
| ^
a.cc:5:2: error: expected primary-expression before '?' token
5 | ??????int i, j;
| ^
a.cc:5:3: error: expected primary-expression before '?' token
5 | ??????int i, j;
| ... |
s751797816 | p00000 | C++ | #include <stdio.h>
int main(void)
{
int i,j;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
printf("%d ",ixj);
}
printf("\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:38: error: 'ixj' was not declared in this scope
11 | printf("%d ",ixj);
| ^~~
|
s267887332 | p00000 | C++ | #include <stdio.h>
int main(void)
{
int i,j;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
printf("%d ",i???j);
}
printf("\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:40: error: expected primary-expression before '?' token
11 | printf("%d ",i???j);
| ^
a.cc:11:41: error: expected primary-expression before '?' token
11 | printf("%d ",i???j);
... |
s792042244 | p00000 | C++ | #include <stdio.h>
int main(void)
{
int i,j;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
printf("%d ",i???j);
}
printf("\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:40: error: expected primary-expression before '?' token
11 | printf("%d ",i???j);
| ^
a.cc:11:41: error: expected primary-expression before '?' token
11 | printf("%d ",i???j);
... |
s748855771 | p00000 | C++ | #include<iostream>
int main(){
for(int j=1;j<10;j++){
for(int i=1;i<10;i++){
cout<<j<<"x"<<i<<"="<<i*j<<endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout<<j<<"x"<<i<<"="<<i*j<<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; ... |
s971252255 | p00000 | C++ | #include <stdio.h>
int main(void) {
int a, b;
for(a=1;a<10;a++){
for (b=1;b<10;b++) {
c= a * b;
printf("%dx%d=%d\n", a, b, c);
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'c' was not declared in this scope
6 | c= a * b;
| ^
|
s399708442 | p00000 | C++ | #include<stdio.h>
int main(void){
int a,b,c;
for(a=1;a>10;a++){
for(b=1;b>10;a++){
c=a*b;
printf("%dx%d=%d\n",a,b,c);
{
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:4:26: note: to match this '{'
4 | for(a=1;a>10;a++){
| ^
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:2:15: note: to match this '{'
2 | int ... |
s458445106 | p00000 | C++ | asdf | a.cc:1:1: error: 'asdf' does not name a type
1 | asdf
| ^~~~
|
s260145426 | p00000 | C++ | #include <stdio.h>
int main(void)
{
int i,j;
for(i=1;i<=9;i++)
for(j=1;j<=9;j++)
printf("%dx%d=%d\n",i,j,i*j)
return 0;
} | a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before 'return'
8 | printf("%dx%d=%d\n",i,j,i*j)
| ^
| ;
9 |
10 | return 0;
| ~~~~~~
|
s717526947 | p00000 | C++ | using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
class Program
{
static void Main()
{
for(int i = 1; i < 10 ; ++i)
{
for(int j = 1; j < 10 ; ++j)
{
Console.WriteLine("{0}x{1}={2}",... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:19:2: error: expected ';' after class definition
19 | }
| ^
| ;
a.cc: In static member function 'static void Program::Main()':
a.cc:15:17: error: 'Console' was not declared in this scope
1... |
s636501972 | p00000 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program
{
static void Main()
{
for(int i = 1; i < 10 ; ++i)
{
for(int j = 1; j < 10 ; ++j)
{
Console.WriteLine("{0}x{1}={2}",i,j,i*j)... | 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... |
s904438442 | p00000 | C++ | #include<iostream>
int main(){
int i,j;
for(i=0;i<9;i++)
for(j=0;j<9;j++)
cout<<(i+1)<<"??"<<(j+1)<<"="<<(i+1)*(j+1)<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout<<(i+1)<<"??"<<(j+1)<<"="<<(i+1)*(j+1)<<endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::co... |
s729922449 | p00000 | C++ | #include<iostream>
int main(){
int i,j;
for(i=0;i<9;i++)
for(j=0;j<9;j++)
std::cout<<(i+1)<<"??"<<(j+1)<<"="<<(i+1)*(j+1)<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:62: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
8 | std::cout<<(i+1)<<"??"<<(j+1)<<"="<<(i+1)*(j+1)<<endl;
| ^~~~
| ... |
s984136391 | p00000 | C++ | #include<iostream>
using namespace std;
int main() {
int m1, m2;
m1 = 1;
m2 = 1;
for (m1; m1 < 10; m1++) {
for (m2; m2 < 10; m2++) {
cout << m1 << "x" << m2 << "=" << m1*m2 << endl;
}
m2 = 1
}
return 0;
} | a.cc: In function 'int main()':
a.cc:12:7: error: expected ';' before '}' token
12 | m2 = 1
| ^
| ;
13 | }
| ~
|
s653213013 | p00000 | C++ | #include?? <cstdio>
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:1:9: error: #include expects "FILENAME" or <FILENAME>
1 | #include?? <cstdio>
| ^
a.cc: In function 'int main()':
a.cc:6:1: error: 'printf' was not declared in this scope
6 | printf("%dx%d=%d\n",i,j,i*j);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probabl... |
s840789026 | 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);
????????????????}
????????}
????????return 0;
} | a.cc:3:1: error: expected unqualified-id before '?' token
3 | ??
| ^
|
s949616427 | p00000 | C++ | #include<iostream>
using namespace std;
??
int main(){
????????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:3:1: error: expected unqualified-id before '?' token
3 | ??
| ^
|
s625618220 | p00000 | C++ | int main(){
int i,j;
for(i = 1; i < 10; i++)
for(j = 1; j < 10; j++)
printf("%dx%d=%d\n",i,j,i*j);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:13: 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 is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | int ma... |
s153796832 | p00000 | C++ | class Main{
public static void main(String[] a){
for(int i=1;i<9;i++){
for(int x=1;x<9;x++){
System.out.println(i+"x"+x+"="+i*x);
}
}
}
} | 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 '..... |
s889647060 | p00000 | C++ | class Main
{
public static void main(String[] args)
{
for (int i = 1; i <= 9; i ++)
{
for (int j = 1; j <= 9; j ++)
{
System.out.println(i+"x"+j+"="+i*j);
}
}
}
} | a.cc:3:11: error: expected ':' before 'static'
3 | public static void main(String[] args)
| ^~~~~~~
| :
a.cc:3:29: error: 'String' has not been declared
3 | public static void main(String[] args)
| ^~~~~~
a.cc:3:38: error: expected ',' or... |
s252863843 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for (int i=0; i<=9; ++i){
for (int j=0; j<=9; ++j){
cout << i << "x" << j << "=" << i*j endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:42: error: expected ';' before 'endl'
7 | cout << i << "x" << j << "=" << i*j endl;
| ^~~~~
| ;
|
s580287533 | p00000 | C++ | #include<stdio.h>
int main(){
int i, j;
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: 'cout' was not declared in this scope
7 | cout << i << "x" << j << "=" << i * j << endl;
| ^~~~
a.cc:7:54: error: 'endl' was not declared in this scope
7 | cout << i << "x" << j << "=" << i * j << endl;
| ... |
s868065942 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(i=1;i<10;i++){
for(j=1;j<10;i++){
std::cout << i << 'x' << j << '=' i*j <<std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'i' was not declared in this scope
5 | for(i=1;i<10;i++){
| ^
a.cc:6:6: error: 'j' was not declared in this scope
6 | for(j=1;j<10;i++){
| ^
a.cc:9:2: error: expected '}' at end of input
9 | }
| ^
a.cc:5:18: note: to match this '{... |
s180587434 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(int i=1;i<10;i++){
for(int j=1;j<10;i++){
std::cout << i << 'x' << j << '=' i*j <<std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:34: error: expected ';' before 'i'
7 | std::cout << i << 'x' << j << '=' i*j <<std::endl;
| ^~
| ;
a.cc:9:2: error: expected '}' at end of input
9 | }
| ^
a.cc:5:22: note: to match this '{... |
s617665562 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(int i=1;i<10;i++){
for(int j=1;j<10;i++){
std::cout << i << 'x' << j << '=' i*j <<std::endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:34: error: expected ';' before 'i'
7 | std::cout << i << 'x' << j << '=' i*j <<std::endl;
| ^~
| ;
|
s236439699 | p00000 | C++ | int main()
{
int a, b;
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: In function 'int main()':
a.cc:10:25: error: 'cout' was not declared in this scope
10 | cout << i << "x" << j << "=" << i*j << endl;
| ^~~~
a.cc:10:64: error: 'endl' was not declared in this scope
10 | cout << i << "x" << j << "="... |
s088646372 | p00000 | C++ | int main()
{
int a, b;
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: In function 'int main()':
a.cc:10:25: error: 'cout' was not declared in this scope
10 | cout << i << "x" << j << "=" << i*j << endl;
| ^~~~
a.cc:10:64: error: 'endl' was not declared in this scope
10 | cout << i << "x" << j << "="... |
s912135670 | p00000 | C++ | import itertools
for x, y in itertools.product(range(1, 10), range(1, 10)):
print("%dx%d=%d" % (x, y, x * y)) | a.cc:1:1: error: 'import' does not name a type
1 | import itertools
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
|
s960735303 | p00000 | C++ | int main() {
int a, b;
for (a = 1; a <= 9; a++) {
for (b = 1; b <= 9;b++) {
cout << a << "x" << b << "=" << a*b << "\n";
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:25: error: 'cout' was not declared in this scope
5 | cout << a << "x" << b << "=" << a*b << "\n";
| ^~~~
|
s401920384 | p00000 | C++ | #include<iostream>
int main(){
for(int i=1; i<=9; i++){
for(int j=1; j<=9; j++){
std::cout << i << "x" << j << "=" << i*j << std::endl
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:60: error: expected ';' before '}' token
6 | std::cout << i << "x" << j << "=" << i*j << std::endl
| ^
| ;
7 | }
| ~ ... |
s526433550 | p00000 | C++ | #include<stdio.h>
int main(void)
{
for(i=1,i<=10,i++)
{
for(j=1,i<=10,i++)
{
printf("%d",i*j);
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'i' was not declared in this scope
5 | for(i=1,i<=10,i++)
| ^
a.cc:13:5: error: expected primary-expression before 'return'
13 | return 0;
| ^~~~~~
a.cc:11:2: error: expected ';' before 'return'
11 | }
| ^
| ;
12 |
1... |
s010006860 | p00000 | C++ | #include<stdio.h>
int main(void)
{
for(i=1,i<=9,i++)
for(j=1,i<=9,i++)
printf("%dx%d=%d\n",i,j,i*j);
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'i' was not declared in this scope
5 | for(i=1,i<=9,i++)
| ^
a.cc:8:1: error: expected primary-expression before '}' token
8 | }
| ^
a.cc:7:30: error: expected ';' before '}' token
7 | printf("%dx%d=%d\n",i,j,i*j);
| ... |
s571215322 | p00000 | C++ | #include<stdio.h>
int main(void)
{
int i,j;
for(i=1,i<=9,i++)
{
for(j=1,j<=9,j++)
{
printf("%dx%d=%d",i,j,i*j)
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:25: error: expected ';' before ')' token
6 | for(i=1,i<=9,i++)
| ^
| ;
a.cc:13:9: error: expected primary-expression before 'return'
13 | return 0;
| ^~~~~~
a.cc:12:10: error: expected... |
s589569581 | p00000 | C++ | #include<stdio.h>
int main(){
for(num1=0;num1<10;num1++){
for(num2=0;num2<10;num2++){
printf("%dx%d=%d",num1,num2,num1*num2)
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:9: error: 'num1' was not declared in this scope
4 | for(num1=0;num1<10;num1++){
| ^~~~
a.cc:5:12: error: 'num2' was not declared in this scope
5 | for(num2=0;num2<10;num2++){
| ^~~~
|
s906752016 | p00000 | C++ | #include<stdio.h>
main() {
for(int i=1;i<=9;i++)
for(int j=1;j<=9;j++)
printf("%dx%d=%d",i,j,i*j):
} | a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main() {
| ^~~~
a.cc: In function 'int main()':
a.cc:6:35: error: expected ';' before ':' token
6 | printf("%dx%d=%d",i,j,i*j):
| ^
| ... |
s416511616 | p00000 | C++ | main(a,b){for(;a<10;a++){for(b=1;b<10;){printf("%dx%d=%d\n",a,b++,a*b);}}exit(0);} | a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(a,b){for(;a<10;a++){for(b=1;b<10;){printf("%dx%d=%d\n",a,b++,a*b);}}exit(0);}
| ^
|
s915115765 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(int i=1;i<=9;i++){
for(int i=j;j<=9;j++){
if(i>=j){
cout << i << "x" << j << "=" << i*j << endl;
}
else
{
break;
}
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:11: error: 'j' was not declared in this scope
6 | for(int i=j;j<=9;j++){
| ^
|
s461296495 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(int i=1;i<=9;i++){
for(int i=j;j<=9;j++){
cout << i << "x" << j << "=" << i*j << endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:11: error: 'j' was not declared in this scope
6 | for(int i=j;j<=9;j++){
| ^
|
s684310801 | p00000 | C++ | 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:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
1 | main() {
| ^~~~
a.cc: In function 'int main()':
a.cc:2:65: error: 'printf' was not declared in this scope
2 | for (int i = 1; i <= 9; i++)for (int j = 1; j <= 9; j++)printf("%dx%d=%d\n", i, j, i*j);
| ... |
s261376311 | p00000 | C++ | #include<stdio.h>
i,j;main(){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);} | a.cc:2:1: error: 'i' does not name a type
2 | i,j;main(){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);}
| ^
a.cc:2:5: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | i,j;main(){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);}
| ^~... |
s297124519 | p00000 | C++ | #include<stdio.h>
using namespace std;
int main() {
for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) {
for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) {
printf("%dx%d=%d\n", ???????????????, ???????????????, ???????????????*???????????????);
}
}
} | a.cc:7:109: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
7 | printf("%dx%d=%d\n", ???????????????, ???????????????, ???????????????*???????????????);
a.cc: In function 'int main()':
a.cc:5:18: error: expected unqualified-id before '?' token
5 | for (int ?... |
s060608316 | p00000 | C++ | object Main {
def main(args:Array[String]):Unit=for(i <- 1 to 9 ;j <- 1 to 9)println(i+"x"+j+"="+i*j)
} | a.cc:1:1: error: 'object' does not name a type
1 | object Main {
| ^~~~~~
|
s679034914 | p00000 | C++ | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include "boost/format.hpp"
using namespace std;
int main()
{
vector<string> sv;
for (int i = 1; i <= 9; i++){
for (int j = 1; j <= 9; j++){
string temp = (boost::format("%1%%2%%3%%4%%5%%6%") % i % '*' % j % '=' % (i*j) % '\n').str();... | a.cc:5:10: fatal error: boost/format.hpp: No such file or directory
5 | #include "boost/format.hpp"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
|
s532164574 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(int i=1;i<=9;i++){
for(int j=1;j<=9;j++){
cout<<i<<"*"<<j<<"="i*j<<endl;
}
}
} | a.cc: In function 'int main()':
a.cc:6:18: error: unable to find string literal operator 'operator""i' with 'const char [2]', 'long unsigned int' arguments
6 | cout<<i<<"*"<<j<<"="i*j<<endl;
| ^~~~
|
s158113067 | p00000 | C++ | #include<stdio.h>
int main(){
for(int ???=1;???<=9;???++)
for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???);
} | a.cc:3:10: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs]
3 | for(int ???=1;???<=9;???++)
a.cc:3:16: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs]
a.cc:4:10: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs]
4 | for(int ???=1;???<=9;???++)printf... |
s953738897 | p00000 | C++ | class Main{
public static void main(String[] a){
for(int x = 1; x <= 9; x++){
for(int y = 1; y <= 9; y++){
int z = x*y;
System.out.print(x + "x" + y + "=" + z);
}
}
}
} | a.cc:2:7: error: expected ':' before 'static'
2 | public static void main(String[] a){
| ^~~~~~~
| :
a.cc:2:25: error: 'String' has not been declared
2 | public static void main(String[] a){
| ^~~~~~
a.cc:2:34: error: expected ',' or '...' before 'a'
2 |... |
s136604302 | p00000 | C++ | #include<stdio.h>
int main(){
int i,j;
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
y = i * j;
printf("%d",i);
printf("x");
printf("%d",j);
printf("=");
printf("%d",y);
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:13: error: 'y' was not declared in this scope
7 | y = i * j;
| ^
|
s767726175 | p00000 | C++ | #include <iostream>
#include <Windows.h>
#define DEBUG 0
using namespace std;
int main(void)
{
for (int i = 1; i <= 9; ++i) {
for (int j = 1; j <= 9; ++j) {
cout << i << "x" << j << "=" << i*j << endl;
}
}
#if DEBUG
system("pause");
#endif
return 0;
} | a.cc:2:10: fatal error: Windows.h: No such file or directory
2 | #include <Windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s933243804 | p00000 | C++ | #include<iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) cout << i << "x" << j << "=" << i*j << endl; } } | a.cc:1:20: warning: extra tokens at end of #include directive
1 | #include<iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) cout << i << "x" << j << "=" << i*j << endl; } }
| ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../... |
s089299108 | p00000 | C++ |
using System;
public static void Main(String[] a){
int k;
for(int i=1;i<10;i++){
for(int j=1;j<10;j++){
k=i*j;
Console.WriteLine(i&"x"&j&"="&k);
}
}
} | a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System;
| ^~~~~~
a.cc:4:1: error: expected unqualified-id before 'public'
4 | public static void Main(String[] a){
| ^~~~~~
|
s523122577 | p00000 | C++ | public class Main {
public static void main(String[] a) {
StringBuilder sb = new StringBuilder();
for(int i = 1; i <= 9; i++) {
for(int j = 1; j <= 9; j++) {
sb.append(i + "x" + j + "=" + i*j + "\n");
}
}
System.out.print(sb);
}
} | a.cc:1:1: error: expected unqualified-id before 'public'
1 | public class Main {
| ^~~~~~
|
s791356716 | p00000 | C++ | #include<stdio.h>
int main(){
int i = 1; int n = 1;
for(; i < 10; i++) {
for(; n < 10; n++) {
printf("%dx%d=%d\n", i, n, i*n);
}
m = 0;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'm' was not declared in this scope
9 | m = 0;
| ^
|
s741525207 | p00000 | C++ | main(){
for(int i=1;i<=9;i++)
for(int j=1;j<=9;j++)
printf("%d*%d=%d",i,j,i*j);
} | 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:4:1: error: 'printf' was not declared in this scope
4 | printf("%d*%d=%d",i,j,i*j);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is... |
s428018290 | p00000 | C++ | main(){
for(int i=1;i<=9;i++)
for(int j=1;j<=9;j++)
printf("%dx%d=%d",i,j,i*j);
} | 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:4:1: error: 'printf' was not declared in this scope
4 | printf("%dx%d=%d",i,j,i*j);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is... |
s293583213 | p00000 | C++ | using System;
namespace _0000
{
class Program
{
static int Main ( string[] args )
{
for (int lp = 1; lp <= 9; lp++)
{
for (int lp2 = 1; lp2 <= 9; lp2++)
{
Console.WriteLine (lp + "x" + lp2 + "=" + (lp * lp2));
}
}
return 0;
}
}
} | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:8:35: error: 'string' has not been declared
8 | static int Main ( string[] args )
| ^~~~~~
a.cc:8:44: error: expected ',' or '...' before 'args'
... |
s444478585 | p00000 | C++ | 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: In function 'int main()':
a.cc:6:9: error: 'cout' was not declared in this scope
6 | cout << i << "x" << j << "=" << i * j << endl;
| ^~~~
a.cc:6:50: error: 'endl' was not declared in this scope
6 | cout << i << "x" << j << "=" << i * j << endl;
| ... |
s164180553 | p00000 | C++ | public class Main {
/**
* ????????????????????????
*
* @param args
*/
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: expected unqualified-id before 'public'
1 | public class Main {
| ^~~~~~
|
s424708554 | p00000 | C++ | #include<iostream>
using namespace std;
int main(){
for(first=1;first!=10;++first) {
for(second=1;second!=10;++second)
cout<< first << 'x' << second << '=' << first*second << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'first' was not declared in this scope
5 | for(first=1;first!=10;++first) {
| ^~~~~
a.cc:6:6: error: 'second' was not declared in this scope
6 | for(second=1;second!=10;++second)
| ^~~~~~
|
s256628349 | p00000 | C++ | main = putStr . unlines $zipWith (++) [(show a)++"x"++(show b)++"=" | a <- [1..9], b <- [1..9]] (map show x)
where x = [a * b | a <- [1..9], b <- [1..9]] | a.cc:1:77: error: too many decimal points in number
1 | main = putStr . unlines $zipWith (++) [(show a)++"x"++(show b)++"=" | a <- [1..9], b <- [1..9]] (map show x)
| ^~~~
a.cc:1:90: error: too many decimal points in number
1 | ma... |
s019615398 | p00000 | C++ | #include<ostream>
int main()
{
for(int i=1;i<=9;i++)
for(int j=1;j<=9;j++)
cout>>i<<'x'<<j<<'='<<i*j<<endl;
} | a.cc: In function 'int main()':
a.cc:6:7: error: 'cout' was not declared in this scope
6 | cout>>i<<'x'<<j<<'='<<i*j<<endl;
| ^~~~
a.cc:6:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
6 | cout>>i<<'x'<<j<<'='<<i*j<<endl;
| ... |
s158055825 | p00000 | C++ | #include<ostream>
int main()
{
for(int i=1;i<=9;i++)
for(int j=1;j<=9;j++)
cout>>i>>'x'>>j>>'='>>i*j>>endl;
} | a.cc: In function 'int main()':
a.cc:6:7: error: 'cout' was not declared in this scope
6 | cout>>i>>'x'>>j>>'='>>i*j>>endl;
| ^~~~
a.cc:6:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
6 | cout>>i>>'x'>>j>>'='>>i*j>>endl;
| ... |
s524785669 | p00000 | C++ | #include<ostream>
int main()
{
for(int i=1;i<=9;i++)
for(int j=1;j<=9;j++)
cout<<i<<'x'<<j<<'='<<i*j<<endl;
} | a.cc: In function 'int main()':
a.cc:6:7: error: 'cout' was not declared in this scope
6 | cout<<i<<'x'<<j<<'='<<i*j<<endl;
| ^~~~
a.cc:6:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
6 | cout<<i<<'x'<<j<<'='<<i*j<<endl;
| ... |
s754516875 | p00000 | C++ | #include<iostream>
int main()
{
for(int i=1;i<=9;i++)
for(int j=1;j<=9;j++)
cout<<i<<'x'<<j<<'='<<i*j<<endl;
} | a.cc: In function 'int main()':
a.cc:6:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
6 | cout<<i<<'x'<<j<<'='<<i*j<<endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern o... |
s245453795 | p00000 | C++ | #include<iostream>
using namespace std;
int main()
{
const kMax = 9;
for(int i = 1; i <= kMax; i++)
{
for(int j = 1; j <= kMax; j++)
{
cout << i << "x" << j << "=" << i * j << endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:15: error: 'kMax' does not name a type
6 | const kMax = 9;
| ^~~~
a.cc:7:29: error: 'kMax' was not declared in this scope
7 | for(int i = 1; i <= kMax; i++)
| ^~~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.