submission_id
stringlengths 10
10
| problem_id
stringlengths 6
6
| language
stringclasses 3
values | code
stringlengths 1
522k
| compiler_output
stringlengths 43
10.2k
|
|---|---|---|---|---|
s355680430
|
p00000
|
C++
|
#include <stdio.h>
#include <iostream>
void main() {
for (int i = 1; i < 9; i++)
{
std::cout << i * i << std::endl;
}
return;
}
|
a.cc:4:1: error: '::main' must return 'int'
4 | void main() {
| ^~~~
a.cc: In function 'int main()':
a.cc:9:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
9 | return;
| ^~~~~~
|
s883730981
|
p00000
|
C++
|
sss
|
a.cc:1:1: error: 'sss' does not name a type
1 | sss
| ^~~
|
s070609928
|
p00000
|
C++
|
sss
|
a.cc:1:1: error: 'sss' does not name a type
1 | sss
| ^~~
|
s720890433
|
p00000
|
C++
|
#include<bits/stdc++.h>
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;
}
}
return(0);
}
Compile Error Logs:
Status
Judge: 1/1 C++ CPU: 00.00 sec Memory: 3036 KB Length: 193 B 2017-03-15 15:52 2017-03-15 15:52
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
|
a.cc:25:6: error: stray '#' in program
25 | Case # Verdict CPU Time Memory In Out Case Name
| ^
a.cc:17:1: error: 'Compile' does not name a type
17 | Compile Error Logs:
| ^~~~~~~
|
s358043915
|
p00000
|
C++
|
#include<bits/stdc++.h>
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;
}
}
return(0);
}
Compile Error Logs:
Status
Judge: 1/1 C++ CPU: 00.00 sec Memory: 3036 KB Length: 193 B 2017-03-15 15:52 2017-03-15 15:52
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
|
a.cc:25:6: error: stray '#' in program
25 | Case # Verdict CPU Time Memory In Out Case Name
| ^
a.cc:17:1: error: 'Compile' does not name a type
17 | Compile Error Logs:
| ^~~~~~~
|
s338962881
|
p00000
|
C++
|
#include<bits/stdc++.h>
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;
}
}
return(0);
}
Compile Error Logs:
Status
Judge: 1/1 C++ CPU: 00.00 sec Memory: 3036 KB Length: 193 B 2017-03-15 15:52 2017-03-15 15:52
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
|
a.cc:25:6: error: stray '#' in program
25 | Case # Verdict CPU Time Memory In Out Case Name
| ^
a.cc:17:1: error: 'Compile' does not name a type
17 | Compile Error Logs:
| ^~~~~~~
|
s618537668
|
p00000
|
C++
|
#include <bits/stds++.h>
using namespace std;
int main() {
for(int i=1;i<10;i++){
for(int j=i;j<10;j++){
cout<<i<<"x"<<J"="<<i*j<<endl;
}
}
return (0);
}
|
a.cc:1:10: fatal error: bits/stds++.h: No such file or directory
1 | #include <bits/stds++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s427742343
|
p00000
|
C++
|
#include<bits/stdc++.h>
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;
}
}
return(0);
}
Compile Error Logs:
Status
Judge: 1/1 C++ CPU: 00.00 sec Memory: 3036 KB Length: 193 B 2017-03-15 15:52 2017-03-15 15:52
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
Case #1: : Accepted 00.00 sec 3036 KB
< prev | 1 / 1 | next > : Accepted 00.00 sec 3036 KB
Judge Input #1 ( | ) Judge Output #1 ( | )
Comments
Under Construction.
Categories
Add Category: 100: Ordering 110: Searching 200: Brute Force 210: Backtracking 220: Heuristic Search 300: Divide and Conquer 310: Dynamic Programming 320: Greedy Methods 330: Randomized Algorithm 400: Graph Algorithms 410: Flow Algorithms 420: Algorithms with Numbers 430: Numerical Algorithms 440: Geometric Algorithms 450: String Algorithms 500: List 510: Hash 520: Set 530: Tree
* Note for the classification
|
a.cc:23:6: error: stray '#' in program
23 | Case # Verdict CPU Time Memory In Out Case Name
| ^
a.cc:24:7: error: stray '#' in program
24 | Case #1: : Accepted 00.00 sec 3036 KB
| ^
a.cc:32:13: error: stray '#' in program
32 | Judge Input #1 ( | ) Judge Output #1 ( | )
| ^
a.cc:32:37: error: stray '#' in program
32 | Judge Input #1 ( | ) Judge Output #1 ( | )
| ^
a.cc:15:1: error: 'Compile' does not name a type
15 | Compile Error Logs:
| ^~~~~~~
|
s680560064
|
p00000
|
C++
|
#include<bits/stdc++.h>
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;
}
}
return(0);
}
Compile Error Logs:
Status
Judge: 1/1 C++ CPU: 00.00 sec Memory: 3036 KB Length: 193 B 2017-03-15 15:52 2017-03-15 15:52
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
|
a.cc:25:6: error: stray '#' in program
25 | Case # Verdict CPU Time Memory In Out Case Name
| ^
a.cc:17:1: error: 'Compile' does not name a type
17 | Compile Error Logs:
| ^~~~~~~
|
s384759276
|
p00000
|
C++
|
#include<stdio.h>main(){int j,i=0;for(;++i<=9;)for(j=1;j<=9;)printf("%dx%d=%d\n",i,j++,i*j);}
|
a.cc:1:22: warning: extra tokens at end of #include directive
1 | #include<stdio.h>main(){int j,i=0;for(;++i<=9;)for(j=1;j<=9;)printf("%dx%d=%d\n",i,j++,i*j);}
| ^
a.cc:1:9: fatal error: stdio.h>mai: No such file or directory
1 | #include<stdio.h>main(){int j,i=0;for(;++i<=9;)for(j=1;j<=9;)printf("%dx%d=%d\n",i,j++,i*j);}
| ^~~~~~~~~~~~~
compilation terminated.
|
s415717284
|
p00000
|
C++
|
#include<stdio.h> main(){int j,i=0;for(;++i<=9;)for(j=1;j<=9;)printf("%dx%d=%d\n",i,j++,i*j);}
|
a.cc:1:19: warning: extra tokens at end of #include directive
1 | #include<stdio.h> main(){int j,i=0;for(;++i<=9;)for(j=1;j<=9;)printf("%dx%d=%d\n",i,j++,i*j);}
| ^~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s072254853
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
// your code goes here
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:8:56: error: expected ';' before '}' token
8 | cout<<i<<"x"<<j<<"="<<i*j<<endl
| ^
| ;
9 | }
| ~
|
s976735682
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
for (int a=0,a<9,a=a+1){
for(int b=0,b<9,b=b+1){
cout<<a+1<<"??"<<b+1<<"="<<(a+1)*(b+1)<<endl;
}
}
}
|
a.cc: In function 'int main()':
a.cc:5:23: error: expected ';' before '<' token
5 | for (int a=0,a<9,a=a+1){
| ^
| ;
a.cc:5:23: error: expected primary-expression before '<' token
a.cc:5:31: error: expected ';' before ')' token
5 | for (int a=0,a<9,a=a+1){
| ^
| ;
a.cc:6:30: error: expected ';' before '<' token
6 | for(int b=0,b<9,b=b+1){
| ^
| ;
a.cc:6:30: error: expected primary-expression before '<' token
a.cc:6:38: error: expected ';' before ')' token
6 | for(int b=0,b<9,b=b+1){
| ^
| ;
|
s930973444
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main(void){
for(i=1;i<10;i++){
for(int j=1;j<10;j++){
cout << i << "??" << j << "=" << i*j << endl;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:5:9: error: 'i' was not declared in this scope
5 | for(i=1;i<10;i++){
| ^
|
s053735755
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main(){
for(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:4:9: error: 'i' was not declared in this scope
4 | for(i=1;i<10;i++){
| ^
|
s642156014
|
p00000
|
C++
|
using System;
namespace multiApplication{
class Program{
static void Main(){
int i, j;
for(i=1;i<10;i++){
for(j=1;j<10;j++){
Console.WriteLine("{0}*{1}={2}",i, j, i*j);
}
}
}
}
}
|
a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:12:6: error: expected ';' after class definition
12 | }
| ^
| ;
a.cc: In static member function 'static void multiApplication::Program::Main()':
a.cc:8:17: error: 'Console' was not declared in this scope
8 | Console.WriteLine("{0}*{1}={2}",i, j, i*j);
| ^~~~~~~
|
s399500960
|
p00000
|
C++
|
#include "stdafx.h"
#include "iostream"
using namespace std;
int main()
{
for (int i = 1; i < 10; i++)
{
for (int c = 1; c < 10; c++)
{
cout << i << "x" << c << "=" << i*c << endl;
}
}
return(0);
}
|
a.cc:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s640078275
|
p00000
|
C++
|
for(int z = 1; z != 9; z++){
for(int y = 1; y != 9; y++){
cout << z << "x" << y << "=" << z * y << endl;
}
}
|
a.cc:2:1: error: expected unqualified-id before 'for'
2 | for(int z = 1; z != 9; z++){
| ^~~
a.cc:2:16: error: 'z' does not name a type
2 | for(int z = 1; z != 9; z++){
| ^
a.cc:2:24: error: 'z' does not name a type
2 | for(int z = 1; z != 9; z++){
| ^
|
s704412381
|
p00000
|
C++
|
#include <iostream>
#include <cstdio>
int main(){
for(int i = 1 i i < 10; i++){
fo(int j = 1; j < 10; j++){
printf("%dx%d=%d?\b", i, j, i*j);
}
}
}
|
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'i'
6 | for(int i = 1 i i < 10; i++){
| ^~
| ;
a.cc:6:16: error: expected ';' before 'i'
6 | for(int i = 1 i i < 10; i++){
| ^~
| ;
a.cc:6:23: error: expected ')' before ';' token
6 | for(int i = 1 i i < 10; i++){
| ~ ^
| )
a.cc:6:25: error: 'i' was not declared in this scope
6 | for(int i = 1 i i < 10; i++){
| ^
|
s978347460
|
p00000
|
C++
|
#include <iostream>
#include <cstdio>
int main(){
for(int i = 1 ; i < 10; i++){
fo(int j = 1; j < 10; j++){
printf("%dx%d=%d?\b", i, j, i*j);
}
}
}
|
a.cc: In function 'int main()':
a.cc:7:4: error: expected primary-expression before 'int'
7 | fo(int j = 1; j < 10; j++){
| ^~~
a.cc:7:15: error: 'j' was not declared in this scope
7 | fo(int j = 1; j < 10; j++){
| ^
|
s010961591
|
p00000
|
C++
|
for(var i = 1; i <= 9; i++)
for(var j = 1; j <= 9; j++)
print(i + "x" + j + "=" + (i * j));
|
a.cc:1:1: error: expected unqualified-id before 'for'
1 | for(var i = 1; i <= 9; i++)
| ^~~
a.cc:1:16: error: 'i' does not name a type
1 | for(var i = 1; i <= 9; i++)
| ^
a.cc:1:24: error: 'i' does not name a type
1 | for(var i = 1; i <= 9; i++)
| ^
a.cc:2:16: error: 'j' does not name a type
2 | for(var j = 1; j <= 9; j++)
| ^
a.cc:2:24: error: 'j' does not name a type
2 | for(var j = 1; j <= 9; j++)
| ^
|
s646244081
|
p00000
|
C++
|
#include<stdio.h>
int 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: In function 'int main()':
a.cc:5:10: error: 'j' was not declared in this scope
5 | for(int (j=1;j<10;j++){
| ^
|
s966580909
|
p00000
|
C++
|
int 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: 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 is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 |
|
s485296961
|
p00000
|
C++
|
#include<stdio.h>
int 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: In function 'int main()':
a.cc:5:10: error: 'j' was not declared in this scope
5 | for(int (j=1;j<10;j++){
| ^
|
s833332574
|
p00000
|
C++
|
#include<stdio.h>
??
int 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:2:1: error: expected unqualified-id before '?' token
2 | ??
| ^
|
s022027378
|
p00000
|
C++
|
#include <bits/stdc++.h>
int main(void)
{
??????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: In function 'int main()':
a.cc:5:1: error: expected primary-expression before '?' token
5 | ??????for(int i = 1; i <= 9; i++){
| ^
a.cc:5:2: error: expected primary-expression before '?' token
5 | ??????for(int i = 1; i <= 9; i++){
| ^
a.cc:5:3: error: expected primary-expression before '?' token
5 | ??????for(int i = 1; i <= 9; i++){
| ^
a.cc:5:4: error: expected primary-expression before '?' token
5 | ??????for(int i = 1; i <= 9; i++){
| ^
a.cc:5:5: error: expected primary-expression before '?' token
5 | ??????for(int i = 1; i <= 9; i++){
| ^
a.cc:5:6: error: expected primary-expression before '?' token
5 | ??????for(int i = 1; i <= 9; i++){
| ^
a.cc:5:7: error: expected primary-expression before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
a.cc:5:7: error: expected ':' before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
| :
a.cc:5:7: error: expected primary-expression before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
a.cc:5:7: error: expected ':' before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
| :
a.cc:5:7: error: expected primary-expression before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
a.cc:5:7: error: expected ':' before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
| :
a.cc:5:7: error: expected primary-expression before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
a.cc:5:7: error: expected ':' before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
| :
a.cc:5:7: error: expected primary-expression before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
a.cc:5:7: error: expected ':' before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
| :
a.cc:5:7: error: expected primary-expression before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
a.cc:5:7: error: expected ':' before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
| :
a.cc:5:7: error: expected primary-expression before 'for'
5 | ??????for(int i = 1; i <= 9; i++){
| ^~~
a.cc:5:22: error: 'i' was not declared in this scope
5 | ??????for(int i = 1; i <= 9; i++){
| ^
|
s988470184
|
p00000
|
C++
|
int main() {
for (int i = 1; i < 10; i++) {
for (int b = 1; b < 10; b++) {
cout << i<<"*"<<b<<"="<<i*b<<endl;
}
}
return 1;
}
|
a.cc: In function 'int main()':
a.cc:5:25: error: 'cout' was not declared in this scope
5 | cout << i<<"*"<<b<<"="<<i*b<<endl;
| ^~~~
a.cc:5:54: error: 'endl' was not declared in this scope
5 | cout << i<<"*"<<b<<"="<<i*b<<endl;
| ^~~~
|
s131466907
|
p00000
|
C++
|
#include<iostream>
int main() {
for (int i = 1; i < 10; i++) {
for (int b = 1; b < 10; b++) {
cout << i<<"*"<<b<<"="<<i*b<<endl;
}
}
return 1;
}
|
a.cc: In function 'int main()':
a.cc:7:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout << i<<"*"<<b<<"="<<i*b<<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; ///< Linked to standard output
| ^~~~
a.cc:7:54: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | cout << i<<"*"<<b<<"="<<i*b<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s092451440
|
p00000
|
C++
|
for i in 1..9 do
for 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..9 do
| ^~~~
a.cc:2:18: error: too many decimal points in number
2 | for j in 1..9
| ^~~~
a.cc:1:1: error: expected unqualified-id before 'for'
1 | for i in 1..9 do
| ^~~
|
s750572116
|
p00000
|
C++
|
#include<stdio.h>
int main(void){
/*?????? 1*1=1???9*9=81?????§/
int i;
for(i=1;i<10;i++){
printf("%d*1=%d",i,i*1);
printf("%d*2=%d",i,i*2);
printf("%d*3=%d",i,i*3);
printf("%d*4=%d",i,i*4);
printf("%d*5=%d",i,i*5);
printf("%d*6=%d",i,i*6);
printf("%d*7=%d",i,i*7);
printf("%d*8=%d",i,i*8);
printf("%d*9=%d",i,i*9);
}
return 0;
}
|
a.cc:3:3: error: unterminated comment
3 | /*?????? 1*1=1???9*9=81?????§/
| ^
a.cc: In function 'int main()':
a.cc:2:16: error: expected '}' at end of input
2 | int main(void){
| ~^
|
s307061103
|
p00000
|
C++
|
for(int i=1; i<=9; ++i){
for(int j=1; j<=9; ++j){
int x = i*j;
printf("%dx%d=%d\n",i,j,x);
}
}
|
a.cc:1:1: error: expected unqualified-id before 'for'
1 | for(int i=1; i<=9; ++i){
| ^~~
a.cc:1:14: error: 'i' does not name a type
1 | for(int i=1; i<=9; ++i){
| ^
a.cc:1:20: error: expected unqualified-id before '++' token
1 | for(int i=1; i<=9; ++i){
| ^~
|
s721845143
|
p00000
|
C++
|
package HelloWorld;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
for (int i = 1; i < 10 ; i++) {
for (int j = 1; j < 10; j++)
{
System.out.println(i + "*" + j + "=" + i*j);
}
}
}
}
|
a.cc:1:1: error: 'package' does not name a type
1 | package HelloWorld;
| ^~~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s538773444
|
p00000
|
C++
|
#include<stdio.h>
int main(void) {
int i, x;
for (x = 1;x < 10;x++) {}
for (i = 1;i < 10;i++) {
printf("%dx%d=%d\n", x, i, x*i);
}
}
return 0;
}
|
a.cc:9:9: error: expected unqualified-id before 'return'
9 | return 0;
| ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
10 | }
| ^
|
s545939126
|
p00000
|
C++
|
#include<stdio.h>
int main(void) {
int i, x;
for (x = 1;x < 10;x++) {
for (i = 1;i < 10;i++) {
printf("%dx%d=%d\n", x, i, x*i);
}
}
return 0;
}#include<stdio.h>
int main(void) {
int i;
char ch;
ch = getchar();
if (ch =='A') {
i = 1;
}
else if (ch=='B') {
i = 2;
}
else if (ch=='C') {
i = 3;
}
else if (ch=='D') {
i = 4;
}
else if (ch =='E') {
i = 5;
}
printf("%d\n",i);
return 0;
}
|
a.cc:10:2: error: stray '#' in program
10 | }#include<stdio.h>
| ^
a.cc:10:3: error: 'include' does not name a type
10 | }#include<stdio.h>
| ^~~~~~~
|
s190835463
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
for(int i = 1;i < 10; i++) {
for(int j = 1; j < 10; j++) {
cout << j << 'x' << i << '=' << j * i << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:6:31: note: to match this '{'
6 | for(int i = 1;i < 10; i++) {
| ^
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s090135667
|
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;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:6:31: note: to match this '{'
6 | for(int i = 1;i < 10; i++) {
| ^
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s474533683
|
p00000
|
C++
|
test
|
a.cc:1:1: error: 'test' does not name a type
1 | test
| ^~~~
|
s660831455
|
p00000
|
C++
|
int main(){
for(int i=1;i<10;++i)for(int j=1;j<10;++j)
printf("%dx%d=%d",i,j,i*j);
return 0;
}
|
a.cc: In function 'int main()':
a.cc:3:5: error: 'printf' was not declared in this scope
3 | printf("%dx%d=%d",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 main(){
|
s594749236
|
p00000
|
C++
|
?????????
|
a.cc:1:1: error: expected unqualified-id before '?' token
1 | ?????????
| ^
|
s862889795
|
p00000
|
C++
|
#include<iostream>
using namespace std;
int main(){
for(int a=1;a <= 9;a++) cout <<a<<"x"<<a<<=<<(a*a)<<endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:44: error: expected primary-expression before '<<' token
6 | for(int a=1;a <= 9;a++) cout <<a<<"x"<<a<<=<<(a*a)<<endl;
| ^~
|
s473723928
|
p00000
|
C++
|
#include<stdio.h>
int main(){
int i,n;
for(i=1;1<=9;i++){
for(n=1;n<=9;n++){
printf("%dx%d=%d\n",i,n,i*n);
}
]
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before ']' token
9 | ]
| ^
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s373358131
|
p00000
|
C++
|
#include "stdio.h"
#include "conio.h"
void main()
{
int i, j;
for(i = 1; i <= 9; i++)
{
for(j = 1; j <= 9; j++)
{
printf("\n%d x %d = %d", i, j, i*j);
}
printf("\n========================");
}
getch();
}
|
a.cc:2:10: fatal error: conio.h: No such file or directory
2 | #include "conio.h"
| ^~~~~~~~~
compilation terminated.
|
s800739972
|
p00000
|
C++
|
class Main{
public static void main(String[] a){
for (int i=1; i<10; i++) {
for (int j=1; j<10; 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 '...' before 'a'
2 | public static void main(String[] a){
| ^
a.cc:9:2: error: expected ';' after class definition
9 | }
| ^
| ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:17: error: 'System' was not declared in this scope
5 | System.out.println(i & "x" & j & "=" & i*j);
| ^~~~~~
a.cc:5:38: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator&'
5 | System.out.println(i & "x" & j & "=" & i*j);
| ~ ^ ~~~
| | |
| int const char [2]
|
s816628655
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for ( a == 9 && b == 10) {
cout << a << "x" << b << "=" << a*b << endl;
++b;
if ( b = 10) {
++a;
int b = 1;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before ')' token
7 | for ( a == 9 && b == 10) {
| ^
| ;
a.cc:17:3: error: expected primary-expression before 'return'
17 | return 0;
| ^~~~~~
a.cc:15:4: error: expected ';' before 'return'
15 | }
| ^
| ;
16 |
17 | return 0;
| ~~~~~~
a.cc:17:3: error: expected primary-expression before 'return'
17 | return 0;
| ^~~~~~
a.cc:15:4: error: expected ')' before 'return'
15 | }
| ^
| )
16 |
17 | return 0;
| ~~~~~~
a.cc:7:7: note: to match this '('
7 | for ( a == 9 && b == 10) {
| ^
|
s120518612
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for ( a == 9 && b == 10;) {
cout << a << "x" << b << "=" << a*b << endl;
++b;
if ( b = 10) {
++a;
int b = 1;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before ')' token
7 | for ( a == 9 && b == 10;) {
| ^
a.cc:7:27: error: expected ';' before ')' token
7 | for ( a == 9 && b == 10;) {
| ^
| ;
|
s476484348
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for ( a == 9 && b == 10) {
cout << a << "x" << b << "=" << a*b << endl;
++b;
if ( b = 10) {
++a;
int b = 1;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before ')' token
7 | for ( a == 9 && b == 10) {
| ^
| ;
a.cc:17:3: error: expected primary-expression before 'return'
17 | return 0;
| ^~~~~~
a.cc:15:4: error: expected ';' before 'return'
15 | }
| ^
| ;
16 |
17 | return 0;
| ~~~~~~
a.cc:17:3: error: expected primary-expression before 'return'
17 | return 0;
| ^~~~~~
a.cc:15:4: error: expected ')' before 'return'
15 | }
| ^
| )
16 |
17 | return 0;
| ~~~~~~
a.cc:7:7: note: to match this '('
7 | for ( a == 9 && b == 10) {
| ^
|
s193991802
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for ( a == 9 && b == 10) {
cout << a << "x" << b << "=" << a*b << endl;
++b;
if ( b = 10) {
++a;
int b = 1;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before ')' token
7 | for ( a == 9 && b == 10) {
| ^
| ;
a.cc:17:3: error: expected primary-expression before 'return'
17 | return 0;
| ^~~~~~
a.cc:15:4: error: expected ';' before 'return'
15 | }
| ^
| ;
16 |
17 | return 0;
| ~~~~~~
a.cc:17:3: error: expected primary-expression before 'return'
17 | return 0;
| ^~~~~~
a.cc:15:4: error: expected ')' before 'return'
15 | }
| ^
| )
16 |
17 | return 0;
| ~~~~~~
a.cc:7:7: note: to match this '('
7 | for ( a == 9 && b == 10) {
| ^
|
s617987597
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for () {
cout << a << "x" << b << "=" << a*b << endl;
++b;
if ( b = 10) {
++a;
int b = 1;
} else if ( a == 9 && b == 10) {
break;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before ')' token
7 | for () {
| ^
a.cc:19:3: error: expected primary-expression before 'return'
19 | return 0;
| ^~~~~~
a.cc:17:4: error: expected ';' before 'return'
17 | }
| ^
| ;
18 |
19 | return 0;
| ~~~~~~
a.cc:19:3: error: expected primary-expression before 'return'
19 | return 0;
| ^~~~~~
a.cc:17:4: error: expected ')' before 'return'
17 | }
| ^
| )
18 |
19 | return 0;
| ~~~~~~
a.cc:7:7: note: to match this '('
7 | for () {
| ^
|
s817953696
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for () {
cout << a << "x" << b << "=" << a*b << endl;
++b;
if ( b = 10;) {
++a;
int b = 1;
} else if ( a == 9 && b == 10;) {
break;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before ')' token
7 | for () {
| ^
a.cc:19:3: error: expected primary-expression before 'return'
19 | return 0;
| ^~~~~~
a.cc:17:4: error: expected ';' before 'return'
17 | }
| ^
| ;
18 |
19 | return 0;
| ~~~~~~
a.cc:19:3: error: expected primary-expression before 'return'
19 | return 0;
| ^~~~~~
a.cc:17:4: error: expected ')' before 'return'
17 | }
| ^
| )
18 |
19 | return 0;
| ~~~~~~
a.cc:7:7: note: to match this '('
7 | for () {
| ^
|
s122213556
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for () {
cout << a << "x" << b << "=" << a*b << endl;
++b;
if ( b = 10;) {
++a;
int b = 1;
} else if ( a == 9 && b == 10;) {
break;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before ')' token
7 | for () {
| ^
a.cc:19:3: error: expected primary-expression before 'return'
19 | return 0;
| ^~~~~~
a.cc:17:4: error: expected ';' before 'return'
17 | }
| ^
| ;
18 |
19 | return 0;
| ~~~~~~
a.cc:19:3: error: expected primary-expression before 'return'
19 | return 0;
| ^~~~~~
a.cc:17:4: error: expected ')' before 'return'
17 | }
| ^
| )
18 |
19 | return 0;
| ~~~~~~
a.cc:7:7: note: to match this '('
7 | for () {
| ^
|
s605529553
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for (???;) {
cout << a << "x" << b << "=" << a*b << endl;
++b;
if ( b = 10;) {
++a;
int b = 1;
} else if ( a == 9 && b == 10;) {
break;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before '?' token
7 | for (???;) {
| ^
a.cc:7:9: error: expected primary-expression before '?' token
7 | for (???;) {
| ^
a.cc:7:10: error: expected primary-expression before '?' token
7 | for (???;) {
| ^
a.cc:7:11: error: expected primary-expression before ';' token
7 | for (???;) {
| ^
a.cc:7:11: error: expected ':' before ';' token
7 | for (???;) {
| ^
| :
a.cc:7:11: error: expected primary-expression before ';' token
a.cc:7:11: error: expected ':' before ';' token
7 | for (???;) {
| ^
| :
a.cc:7:11: error: expected primary-expression before ';' token
a.cc:7:11: error: expected ':' before ';' token
7 | for (???;) {
| ^
| :
a.cc:7:11: error: expected primary-expression before ';' token
a.cc:7:12: error: expected primary-expression before ')' token
7 | for (???;) {
| ^
a.cc:7:12: error: expected ';' before ')' token
7 | for (???;) {
| ^
| ;
a.cc:10:17: error: expected primary-expression before ')' token
10 | if ( b = 10;) {
| ^
a.cc:13:35: error: expected primary-expression before ')' token
13 | } else if ( a == 9 && b == 10;) {
| ^
|
s178124909
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for (a < 10 && b < 9) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if (a == 10 && b <= 8)
++b;
int a = 1;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before ')' token
8 | for (a < 10 && b < 9) {
| ^
| ;
a.cc:15:3: error: expected primary-expression before 'return'
15 | return 0;
| ^~~~~~
a.cc:14:4: error: expected ';' before 'return'
14 | }
| ^
| ;
15 | return 0;
| ~~~~~~
a.cc:15:3: error: expected primary-expression before 'return'
15 | return 0;
| ^~~~~~
a.cc:14:4: error: expected ')' before 'return'
14 | }
| ^
| )
15 | return 0;
| ~~~~~~
a.cc:8:7: note: to match this '('
8 | for (a < 10 && b < 9) {
| ^
|
s726608569
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for (a < 10 && b < 9) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if (a == 10 && b <= 8)
++b;
int a = 1;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before ')' token
8 | for (a < 10 && b < 9) {
| ^
| ;
a.cc:15:3: error: expected primary-expression before 'return'
15 | return 0;
| ^~~~~~
a.cc:14:4: error: expected ';' before 'return'
14 | }
| ^
| ;
15 | return 0;
| ~~~~~~
a.cc:15:3: error: expected primary-expression before 'return'
15 | return 0;
| ^~~~~~
a.cc:14:4: error: expected ')' before 'return'
14 | }
| ^
| )
15 | return 0;
| ~~~~~~
a.cc:8:7: note: to match this '('
8 | for (a < 10 && b < 9) {
| ^
|
s782812694
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for (a < 10 && b < 9) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if (a == 10 && b <= 8)
++b;
a = 1;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before ')' token
8 | for (a < 10 && b < 9) {
| ^
| ;
a.cc:15:3: error: expected primary-expression before 'return'
15 | return 0;
| ^~~~~~
a.cc:14:4: error: expected ';' before 'return'
14 | }
| ^
| ;
15 | return 0;
| ~~~~~~
a.cc:15:3: error: expected primary-expression before 'return'
15 | return 0;
| ^~~~~~
a.cc:14:4: error: expected ')' before 'return'
14 | }
| ^
| )
15 | return 0;
| ~~~~~~
a.cc:8:7: note: to match this '('
8 | for (a < 10 && b < 9) {
| ^
|
s263457075
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for (a < 10 && b < 9) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if (a == 10 && b <= 8)
++b;
a = 1;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:23: error: expected ';' before ')' token
7 | for (a < 10 && b < 9) {
| ^
| ;
a.cc:14:3: error: expected primary-expression before 'return'
14 | return 0;
| ^~~~~~
a.cc:13:4: error: expected ';' before 'return'
13 | }
| ^
| ;
14 | return 0;
| ~~~~~~
a.cc:14:3: error: expected primary-expression before 'return'
14 | return 0;
| ^~~~~~
a.cc:13:4: error: expected ')' before 'return'
13 | }
| ^
| )
14 | return 0;
| ~~~~~~
a.cc:7:7: note: to match this '('
7 | for (a < 10 && b < 9) {
| ^
|
s395925616
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for(a < 10 && b < 9) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if(a == 10 && b <= 8)
++b;
a = 1;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before ')' token
7 | for(a < 10 && b < 9) {
| ^
| ;
a.cc:14:3: error: expected primary-expression before 'return'
14 | return 0;
| ^~~~~~
a.cc:13:4: error: expected ';' before 'return'
13 | }
| ^
| ;
14 | return 0;
| ~~~~~~
a.cc:14:3: error: expected primary-expression before 'return'
14 | return 0;
| ^~~~~~
a.cc:13:4: error: expected ')' before 'return'
13 | }
| ^
| )
14 | return 0;
| ~~~~~~
a.cc:7:6: note: to match this '('
7 | for(a < 10 && b < 9) {
| ^
|
s062245790
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for (a < 10 && b < 9;) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if (a == 10 && b <= 8;)
++b;
a = 1;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:24: error: expected primary-expression before ')' token
7 | for (a < 10 && b < 9;) {
| ^
a.cc:7:24: error: expected ';' before ')' token
7 | for (a < 10 && b < 9;) {
| ^
| ;
a.cc:10:27: error: expected primary-expression before ')' token
10 | if (a == 10 && b <= 8;)
| ^
|
s427737696
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for (a < 10 && b < 9) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if (a == 10 && b <= 8) {
++b;
a = 1;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:23: error: expected ';' before ')' token
7 | for (a < 10 && b < 9) {
| ^
| ;
a.cc:15:2: error: expected primary-expression at end of input
15 | }
| ^
a.cc:15:2: error: expected ';' at end of input
15 | }
| ^
| ;
a.cc:15:2: error: expected primary-expression at end of input
a.cc:15:2: error: expected ')' at end of input
15 | }
| ^
| )
a.cc:7:7: note: to match this '('
7 | for (a < 10 && b < 9) {
| ^
a.cc:15:2: error: expected statement at end of input
15 | }
| ^
a.cc:15:2: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s717978172
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a = 1;
int b = 1;
for (a < 10 && b < 9) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if (a == 10 && b <= 8) {
++b;
a = 1;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:23: error: expected ';' before ')' token
7 | for (a < 10 && b < 9) {
| ^
| ;
a.cc:15:2: error: expected primary-expression at end of input
15 | }
| ^
a.cc:15:2: error: expected ';' at end of input
15 | }
| ^
| ;
a.cc:15:2: error: expected primary-expression at end of input
a.cc:15:2: error: expected ')' at end of input
15 | }
| ^
| )
a.cc:7:7: note: to match this '('
7 | for (a < 10 && b < 9) {
| ^
a.cc:15:2: error: expected statement at end of input
15 | }
| ^
a.cc:15:2: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s726520436
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a;
int b;
a = 1;
b = 1;
for (a < 10 && b < 9) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if (a == 10 && b <= 8) {
++b;
a = 1;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before ')' token
9 | for (a < 10 && b < 9) {
| ^
| ;
a.cc:17:2: error: expected primary-expression at end of input
17 | }
| ^
a.cc:17:2: error: expected ';' at end of input
17 | }
| ^
| ;
a.cc:17:2: error: expected primary-expression at end of input
a.cc:17:2: error: expected ')' at end of input
17 | }
| ^
| )
a.cc:9:7: note: to match this '('
9 | for (a < 10 && b < 9) {
| ^
a.cc:17:2: error: expected statement at end of input
17 | }
| ^
a.cc:17:2: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s730873921
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a;
int b;
a = 1;
b = 1;
for (a < 10 && b < 9) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if (a == 10 && b <= 8) {
++b;
a = 1;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before ')' token
9 | for (a < 10 && b < 9) {
| ^
| ;
a.cc:17:3: error: expected primary-expression before 'return'
17 | return 0;
| ^~~~~~
a.cc:16:4: error: expected ';' before 'return'
16 | }
| ^
| ;
17 | return 0;
| ~~~~~~
a.cc:17:3: error: expected primary-expression before 'return'
17 | return 0;
| ^~~~~~
a.cc:16:4: error: expected ')' before 'return'
16 | }
| ^
| )
17 | return 0;
| ~~~~~~
a.cc:9:7: note: to match this '('
9 | for (a < 10 && b < 9) {
| ^
|
s121430298
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a;
int b;
a = 1;
b = 1;
for (a < 10 && b < 9) {
cout << b << "x" << a << "=" << a*b << endl;
++a;
if (a == 10 && b <= 8)
++b;
a = 1;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before ')' token
9 | for (a < 10 && b < 9) {
| ^
| ;
a.cc:16:3: error: expected primary-expression before 'return'
16 | return 0;
| ^~~~~~
a.cc:15:4: error: expected ';' before 'return'
15 | }
| ^
| ;
16 | return 0;
| ~~~~~~
a.cc:16:3: error: expected primary-expression before 'return'
16 | return 0;
| ^~~~~~
a.cc:15:4: error: expected ')' before 'return'
15 | }
| ^
| )
16 | return 0;
| ~~~~~~
a.cc:9:7: note: to match this '('
9 | for (a < 10 && b < 9) {
| ^
|
s746460779
|
p00000
|
C++
|
for i in range (1, 10):
for j in range (1, 10):
print str(i) + 'x' + str(j) + '=' + str(i*j)
|
a.cc:1:1: error: expected unqualified-id before 'for'
1 | for i in range (1, 10):
| ^~~
|
s531951873
|
p00000
|
C++
|
include<iostream>
using namespace std;
int main(){
for(int i = 1; i <=9; i++){
for(int k = 1; k <=9; k++){
cout << k << "x" << i <<"=" <<i*k << endl;
}}
return 0;
}
|
a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: 'cout' was not declared in this scope
9 | cout << k << "x" << i <<"=" <<i*k << endl;
| ^~~~
a.cc:9:38: error: 'endl' was not declared in this scope
9 | cout << k << "x" << i <<"=" <<i*k << endl;
| ^~~~
|
s236244854
|
p00000
|
C++
|
for i in 1..9 do
for j in 1..9 do
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..9 do
| ^~~~
a.cc:2:18: error: too many decimal points in number
2 | for j in 1..9 do
| ^~~~
a.cc:1:1: error: expected unqualified-id before 'for'
1 | for i in 1..9 do
| ^~~
|
s836220077
|
p00000
|
C++
|
#include<bits/stdc++.h>
#define ll long long int
#define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n)
/*--------------------template--------------------*/
int main(){
REP1(i,10){
REP1(j,10){
cout << i << 'x' << j << '=' << i*j << endl;
}
}
}
|
a.cc: In function 'int main()':
a.cc:12:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout << i << 'x' << j << '=' << i*j << endl;
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
12 | cout << i << 'x' << j << '=' << i*j << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s455612145
|
p00000
|
C++
|
#include<bits/stdc++.h>
#define ll long long int
#define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n)
/*--------------------template--------------------*/
int main(){
REP1(i,10){
REP1(j,10){
cout << i << 'x' << j << '=' << i*j << endl;
}
}
}
|
a.cc: In function 'int main()':
a.cc:12:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout << i << 'x' << j << '=' << i*j << endl;
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
12 | cout << i << 'x' << j << '=' << i*j << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s204491508
|
p00000
|
C++
|
??¨??????
|
a.cc:1:1: error: expected unqualified-id before '?' token
1 | ??¨??????
| ^
|
s835766737
|
p00000
|
C++
|
#include <iostream>
using namespase 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:7: error: expected nested-name-specifier before 'namespase'
3 | using namespase 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++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
8 | cout << i<<"x"<<j<<"="<<i*j<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s393789466
|
p00000
|
C++
|
#include <iostream>
using namespase 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:7: error: expected nested-name-specifier before 'namespase'
3 | using namespase 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++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
8 | cout << i<<"x"<<j<<"="<<i*j<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s971123991
|
p00000
|
C++
|
import scala.io.StdIn
object Main {
def main(args: Array[String]): Unit = {
for{ i <- 1 to 10
j <- 1 to 10}{
println (i + "*" + j + "=" + i*j)
}
}
}
|
a.cc:1:1: error: 'import' does not name a type
1 | import scala.io.StdIn
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
|
s797562154
|
p00000
|
C++
|
#include <iostream>
using namespace std;
int main() {
for(int i=1;i<=9;i++)
for(itn j=1;j<=9;j++)
cout << i <<'x' << j <<'=' << i*j<<endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:9: error: 'itn' was not declared in this scope; did you mean 'int'?
6 | for(itn j=1;j<=9;j++)
| ^~~
| int
a.cc:6:17: error: 'j' was not declared in this scope
6 | for(itn j=1;j<=9;j++)
| ^
|
s380231038
|
p00000
|
C++
|
#include<iostream>
using namespce std;
int main(){
for(int i=1;i<=9;i++){
for(int j=1;j<=9;j++){
cout<<i<<"??"<<j<<"="<<i*j<<endl;
}
}
return 0;
}
|
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
2 | using namespce std;
| ^~~~~~~~
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<<i<<"??"<<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 cout; ///< Linked to standard output
| ^~~~
a.cc:7:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | cout<<i<<"??"<<j<<"="<<i*j<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s573310491
|
p00000
|
C++
|
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:2:9: error: expected ':' before 'static'
2 | public static void main(String[] args) {
| ^~~~~~~
| :
a.cc:2:27: error: 'String' has not been declared
2 | public static void main(String[] args) {
| ^~~~~~
a.cc:2:36: error: expected ',' or '...' before 'args'
2 | public static void main(String[] args) {
| ^~~~
a.cc:5:2: error: expected ';' after class definition
5 | }
| ^
| ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:3:54: error: 'System' was not declared in this scope
3 | for(int i = 1;i<10;i++){for(int j = 1; j<10;j++){System.out.println(i + "x" + j + "=" + i*j)}}
| ^~~~~~
a.cc:3:85: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
3 | for(int i = 1;i<10;i++){for(int j = 1; j<10;j++){System.out.println(i + "x" + j + "=" + i*j)}}
| ~~~~~~~~~~~ ^ ~~~
| | |
| | const char [2]
| const char*
|
s314844892
|
p00000
|
C++
|
#include<stdio.h>
#include<string.h>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
using namespace std;
int main() {
int n, m, i, j,h=0, cnt = 0,m,p, k = 3, l[10], S, L, s[10], a[10];
scanf("%d %d% d", &n,&m,&p);
for (i = 1; i <= 9; i++) {
for (j = 1; j <= 9; j++) {
int seki = i*j;
printf("%dx%d=%d\n", i, j, seki);
}
}
|
a.cc: In function 'int main()':
a.cc:9:37: error: redeclaration of 'int m'
9 | int n, m, i, j,h=0, cnt = 0,m,p, k = 3, l[10], S, L, s[10], a[10];
| ^
a.cc:9:16: note: 'int m' previously declared here
9 | int n, m, i, j,h=0, cnt = 0,m,p, k = 3, l[10], S, L, s[10], a[10];
| ^
a.cc:16:10: error: expected '}' at end of input
16 | }
| ^
a.cc:8:12: note: to match this '{'
8 | int main() {
| ^
|
s709923733
|
p00000
|
C++
|
class Main{
public static void main(String[] a){
int i =9;
for(m=1;m<=9;m++)
{
for(x=1;x<=9;x++)
{
System.out.println(m+"x"+x+"="+x*m);
}
}
}
}
|
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 '...' before 'a'
2 | public static void main(String[] a){
| ^
a.cc:16:2: error: expected ';' after class definition
16 | }
| ^
| ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:7: error: 'm' was not declared in this scope
6 | for(m=1;m<=9;m++)
| ^
a.cc:8:10: error: 'x' was not declared in this scope
8 | for(x=1;x<=9;x++)
| ^
a.cc:11:8: error: 'System' was not declared in this scope
11 | System.out.println(m+"x"+x+"="+x*m);
| ^~~~~~
|
s518314575
|
p00000
|
C++
|
for i in 1..9;for 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..9;for j in 1..9;print i,"x",j,"=",i*j,"\n"end end
| ^~~~
a.cc:1:24: error: too many decimal points in number
1 | for i in 1..9;for j in 1..9;print i,"x",j,"=",i*j,"\n"end end
| ^~~~
a.cc:1:1: error: expected unqualified-id before 'for'
1 | for i in 1..9;for j in 1..9;print i,"x",j,"=",i*j,"\n"end end
| ^~~
a.cc:1:15: error: expected unqualified-id before 'for'
1 | for i in 1..9;for j in 1..9;print i,"x",j,"=",i*j,"\n"end end
| ^~~
a.cc:1:29: error: 'print' does not name a type; did you mean 'int'?
1 | for i in 1..9;for j in 1..9;print i,"x",j,"=",i*j,"\n"end end
| ^~~~~
| int
|
s814463888
|
p00000
|
C++
|
#include<iostream>
using namespace std;
int main(){
for(ini i = 0;i < 9;i++){
for(int j = 0;j < 9;j++){
cout << i << "??" << j "=" <<i*j << endl;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:5:5: error: 'ini' was not declared in this scope; did you mean 'int'?
5 | for(ini i = 0;i < 9;i++){
| ^~~
| int
a.cc:5:15: error: 'i' was not declared in this scope
5 | for(ini i = 0;i < 9;i++){
| ^
|
s170660354
|
p00000
|
C++
|
#include<stdio.h>
int main(){
??????int i;
for(i=1;i<=9;i++){
printf("%dx%d=%d\n",i,i,i*i);
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
4 | ??????int i;
| ^
a.cc:4:2: error: expected primary-expression before '?' token
4 | ??????int i;
| ^
a.cc:4:3: error: expected primary-expression before '?' token
4 | ??????int i;
| ^
a.cc:4:4: error: expected primary-expression before '?' token
4 | ??????int i;
| ^
a.cc:4:5: error: expected primary-expression before '?' token
4 | ??????int i;
| ^
a.cc:4:6: error: expected primary-expression before '?' token
4 | ??????int i;
| ^
a.cc:4:7: error: expected primary-expression before 'int'
4 | ??????int i;
| ^~~
a.cc:4:7: error: expected ':' before 'int'
4 | ??????int i;
| ^~~
| :
a.cc:4:7: error: expected primary-expression before 'int'
4 | ??????int i;
| ^~~
a.cc:4:7: error: expected ':' before 'int'
4 | ??????int i;
| ^~~
| :
a.cc:4:7: error: expected primary-expression before 'int'
4 | ??????int i;
| ^~~
a.cc:4:7: error: expected ':' before 'int'
4 | ??????int i;
| ^~~
| :
a.cc:4:7: error: expected primary-expression before 'int'
4 | ??????int i;
| ^~~
a.cc:4:7: error: expected ':' before 'int'
4 | ??????int i;
| ^~~
| :
a.cc:4:7: error: expected primary-expression before 'int'
4 | ??????int i;
| ^~~
a.cc:4:7: error: expected ':' before 'int'
4 | ??????int i;
| ^~~
| :
a.cc:4:7: error: expected primary-expression before 'int'
4 | ??????int i;
| ^~~
a.cc:4:7: error: expected ':' before 'int'
4 | ??????int i;
| ^~~
| :
a.cc:4:7: error: expected primary-expression before 'int'
4 | ??????int i;
| ^~~
a.cc:6:7: error: 'i' was not declared in this scope
6 | for(i=1;i<=9;i++){
| ^
|
s790371561
|
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 '...' before 'a'
2 | public static void main(String[] a){
| ^
a.cc:10:2: error: expected ';' after class definition
10 | }
| ^
| ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:17: error: 'System' was not declared in this scope
5 | System.out.println(i+"x"+j+"="+(i*j));
| ^~~~~~
a.cc:5:43: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
5 | System.out.println(i+"x"+j+"="+(i*j));
| ~~~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s558231005
|
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 '...' before 'a'
2 | public static void main(String[] a){
| ^
a.cc:8:2: error: expected ';' after class definition
8 | }
| ^
| ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:17: error: 'System' was not declared in this scope
5 | System.out.println(i+"x"+j+"="+(i*j));
| ^~~~~~
a.cc:5:43: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
5 | System.out.println(i+"x"+j+"="+(i*j));
| ~~~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s032905944
|
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:3:17: error: '$i' does not name a type
3 | for($i = 1; $i <= 9; $i++){
| ^~
a.cc:3:26: error: '$i' does not name a type
3 | for($i = 1; $i <= 9; $i++){
| ^~
a.cc:9:1: error: expected unqualified-id before '?' token
9 | ?>
| ^
|
s967214335
|
p00000
|
C++
|
#include<iostream>
int main(){
for(int i=1,i<10,i++){
for (int j=1,j<10,j++){
std:cout << i << 'x' << j << '=' << i*j; << std::endl;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:5:16: error: expected ';' before '<' token
5 | for(int i=1,i<10,i++){
| ^
| ;
a.cc:5:16: error: expected primary-expression before '<' token
a.cc:5:23: error: expected ';' before ')' token
5 | for(int i=1,i<10,i++){
| ^
| ;
a.cc:6:19: error: expected ';' before '<' token
6 | for (int j=1,j<10,j++){
| ^
| ;
a.cc:6:19: error: expected primary-expression before '<' token
a.cc:6:26: error: expected ';' before ')' token
6 | for (int j=1,j<10,j++){
| ^
| ;
a.cc:7:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | std:cout << i << 'x' << j << '=' << i*j; << std::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; ///< Linked to standard output
| ^~~~
a.cc:7:48: error: expected primary-expression before '<<' token
7 | std:cout << i << 'x' << j << '=' << i*j; << std::endl;
| ^~
|
s058355062
|
p00000
|
C++
|
for(int i=1;i<10;i++){
for(int j=1;j<10;j++){
printf("%d+%d=%d", i, j, i*j);
}
}
|
a.cc:2:5: error: expected unqualified-id before 'for'
2 | for(int i=1;i<10;i++){
| ^~~
a.cc:2:17: error: 'i' does not name a type
2 | for(int i=1;i<10;i++){
| ^
a.cc:2:22: error: 'i' does not name a type
2 | for(int i=1;i<10;i++){
| ^
|
s094102855
|
p00000
|
C++
|
#include <studio.h>
int
main(void)
{
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:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h>
| ^~~~~~~~~~
compilation terminated.
|
s294585862
|
p00000
|
C++
|
#include <stdio.h>
int
main(void)
{
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:11:33: error: expected ')' before 'i'
11 | printf("%dx%d=%d\n" i, j, i+j);
| ~ ^~
| )
|
s759025008
|
p00000
|
C++
|
#include<iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j< 10; ++) {
cout << i << "x" << j << "=" << i*j << endl;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:42: error: expected primary-expression before ')' token
7 | for (int j = 1; j< 10; ++) {
| ^
|
s285890902
|
p00000
|
C++
|
class Main{
public static void main(String[] a){
for(int a=1;a<=9;a++){
for(int b=1;b<=9;b++){
System.out.println(a+"??"+b+"="+a*b);
}
}
}
}
|
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 '...' before 'a'
2 | public static void main(String[] a){
| ^
a.cc:9:2: error: expected ';' after class definition
9 | }
| ^
| ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:25: error: 'System' was not declared in this scope
5 | System.out.println(a+"??"+b+"="+a*b);
| ^~~~~~
a.cc:5:52: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
5 | System.out.println(a+"??"+b+"="+a*b);
| ~~~~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s548810582
|
p00000
|
C++
|
package Main;
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:1:1: error: 'package' does not name a type
1 | package Main;
| ^~~~~~~
a.cc:5:11: error: expected ':' before 'static'
5 | public static void main(String[] a){
| ^~~~~~~
| :
a.cc:5:29: error: 'String' has not been declared
5 | public static void main(String[] a){
| ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'a'
5 | public static void main(String[] a){
| ^
a.cc:12:2: error: expected ';' after class definition
12 | }
| ^
| ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:8:25: error: 'System' was not declared in this scope
8 | System.out.println(i+"x"+j+"="+i*j);
| ^~~~~~
a.cc:8:51: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | System.out.println(i+"x"+j+"="+i*j);
| ~~~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s164242918
|
p00000
|
C++
|
#include <stdio>
int main(){
int i,j,k;
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:1:10: fatal error: stdio: No such file or directory
1 | #include <stdio>
| ^~~~~~~
compilation terminated.
|
s546374689
|
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 {
| ^~~~~~
|
s273433104
|
p00000
|
C++
|
#include<stdio.h>
void main(void) {
for (int i = 1;i < 10;i++)for (int j = 1;j < 10;j++,printf("\n"))printf("%dx%d=%d", i, j, i*j);
}
|
a.cc:4:1: error: '::main' must return 'int'
4 | void main(void) {
| ^~~~
|
s032018315
|
p00000
|
C++
|
#include<iostream>
using namespace std;
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:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s722904015
|
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 {
| ^~~~~~
|
s295330728
|
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 {
| ^~~~~~
|
s376178250
|
p00000
|
C++
|
#include<stdio.h>
int main(void){
for(i=0;i<10;i++){
for(j=0;j<10;j++){
printf("%dx%d=%d",i,j,i*j);
return 0;
}}}
|
a.cc: In function 'int main()':
a.cc:4:5: error: 'i' was not declared in this scope
4 | for(i=0;i<10;i++){
| ^
a.cc:5:5: error: 'j' was not declared in this scope
5 | for(j=0;j<10;j++){
| ^
|
s865047607
|
p00000
|
C++
|
#include<stdio.h>
int main(void){
for(i=0;i<10;i++){
for(j=0;j<10;j++){
printf("%dx%d=%d\n",i,j,i*j);
return 0;
}}}
|
a.cc: In function 'int main()':
a.cc:4:5: error: 'i' was not declared in this scope
4 | for(i=0;i<10;i++){
| ^
a.cc:5:5: error: 'j' was not declared in this scope
5 | for(j=0;j<10;j++){
| ^
|
s546140544
|
p00000
|
C++
|
test
|
a.cc:1:1: error: 'test' does not name a type
1 | test
| ^~~~
|
s276612285
|
p00000
|
C++
|
hawawa
|
a.cc:1:1: error: 'hawawa' does not name a type
1 | hawawa
| ^~~~~~
|
s709836263
|
p00000
|
C++
|
#include<iostream>
using namespace std;
int main(){
for(int i =1; i<10; i++)
for(int j =1; j<10; j++)
println(i+"x"+j+"="+(i*j));
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | println(i+"x"+j+"="+(i*j));
| ~~~~~~~^~~~
| | |
| | const char [2]
| const char*
a.cc:8:10: error: 'println' was not declared in this scope; did you mean 'printf'?
8 | println(i+"x"+j+"="+(i*j));
| ^~~~~~~
| printf
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.