submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s485631063
p00000
C++
a
a.cc:1:1: error: 'a' does not name a type 1 | a | ^
s013747905
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 | ^~~~ a.cc:2:14: 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 | ^~~
s315515845
p00000
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i, s, n) for(int i = s; i < (int)n; i++) #define per(i, n) for(int i = n; i >= 0; i--) #define ROF(i, s, n) for(int i = s; i >= (int)n; i--) #define FORIT(i, A) for (auto i : A) #define PRINT(x) cout << (x) << "\n" #define ALL(a) (a).begin(),(a).end() #define RALL(a) (a).rbegin(), (a).rend() #define MP make_pair #define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i) #define SZ(a) int((a).size()) #define EXIST(s,e) ((s).find(e)!=(s).end()) #define SORT(c) sort((c).begin(),(c).end()) #define CLR(a) memset((a), 0 ,sizeof(a)) #define NCLR(a) memset((a), -1 ,sizeof(a)) #define dump(x) cout << #x << " = " << (x) << "\n"; #define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n"; #define sq(n) (n) * (n) typedef vector<int> VI; typedef vector<VI> VVI; typedef vector<string> VS; typedef pair<int, int> PII; typedef long long LL; typedef vector<LL> VLL; typedef vector<VLL> VVLL; typedef unsigned int uint; typedef unsigned long long ull; typedef priority_queue<int> maxpq; typedef priority_queue< int, vector<int>, greater<int> > minpq; typedef complex<double> P; static const double EPS = 1e-10; static const double PI = acos( -1.0 ); static const int mod = 1000000007; static const int INF = 1 << 29; static const LL LL_INF = 1152921504606846976; static const int dx[] = { -1, 0, 1, 0, 1, -1, 1, -1 }; static const int dy[] = { 0, -1, 0, 1, 1, 1, -1, -1 }; int main() { //繧ウ繝。繝ウ繝医ユ繧ケ繝?#ifdef _DEBUG printf( "debug\n" ); #endif 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:44:2: error: #endif without #if 44 | #endif | ^~~~~
s888586347
p00000
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i, s, n) for(int i = s; i < (int)n; i++) #define per(i, n) for(int i = n; i >= 0; i--) #define ROF(i, s, n) for(int i = s; i >= (int)n; i--) #define FORIT(i, A) for (auto i : A) #define PRINT(x) cout << (x) << "\n" #define ALL(a) (a).begin(),(a).end() #define RALL(a) (a).rbegin(), (a).rend() #define MP make_pair #define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i) #define SZ(a) int((a).size()) #define EXIST(s,e) ((s).find(e)!=(s).end()) #define SORT(c) sort((c).begin(),(c).end()) #define CLR(a) memset((a), 0 ,sizeof(a)) #define NCLR(a) memset((a), -1 ,sizeof(a)) #define dump(x) cout << #x << " = " << (x) << "\n"; #define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n"; #define sq(n) (n) * (n) typedef vector<int> VI; typedef vector<VI> VVI; typedef vector<string> VS; typedef pair<int, int> PII; typedef long long LL; typedef vector<LL> VLL; typedef vector<VLL> VVLL; typedef unsigned int uint; typedef unsigned long long ull; typedef priority_queue<int> maxpq; typedef priority_queue< int, vector<int>, greater<int> > minpq; typedef complex<double> P; static const double EPS = 1e-10; static const double PI = acos( -1.0 ); static const int mod = 1000000007; static const int INF = 1 << 29; static const LL LL_INF = 1152921504606846976; static const int dx[] = { -1, 0, 1, 0, 1, -1, 1, -1 }; static const int dy[] = { 0, -1, 0, 1, 1, 1, -1, -1 }; int main() { //繝?せ繝医さ繝。繝ウ繝?#ifdef _DEBUG printf( "debug\n" ); #endif 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:44:2: error: #endif without #if 44 | #endif | ^~~~~
s840032045
p00000
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i, s, n) for(int i = s; i < (int)n; i++) #define per(i, n) for(int i = n; i >= 0; i--) #define ROF(i, s, n) for(int i = s; i >= (int)n; i--) #define FORIT(i, A) for (auto i : A) #define PRINT(x) cout << (x) << "\n" #define ALL(a) (a).begin(),(a).end() #define RALL(a) (a).rbegin(), (a).rend() #define MP make_pair #define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i) #define SZ(a) int((a).size()) #define EXIST(s,e) ((s).find(e)!=(s).end()) #define SORT(c) sort((c).begin(),(c).end()) #define CLR(a) memset((a), 0 ,sizeof(a)) #define NCLR(a) memset((a), -1 ,sizeof(a)) #define dump(x) cout << #x << " = " << (x) << "\n"; #define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n"; #define sq(n) (n) * (n) typedef vector<int> VI; typedef vector<VI> VVI; typedef vector<string> VS; typedef pair<int, int> PII; typedef long long LL; typedef vector<LL> VLL; typedef vector<VLL> VVLL; typedef unsigned int uint; typedef unsigned long long ull; typedef priority_queue<int> maxpq; typedef priority_queue< int, vector<int>, greater<int> > minpq; typedef complex<double> P; static const double EPS = 1e-10; static const double PI = acos( -1.0 ); static const int mod = 1000000007; static const int INF = 1 << 29; static const LL LL_INF = 1152921504606846976; static const int dx[] = { -1, 0, 1, 0, 1, -1, 1, -1 }; static const int dy[] = { 0, -1, 0, 1, 1, 1, -1, -1 }; int main() { //繝?せ繝医さ繝。繝ウ繝?#ifdef _DEBUG printf( "debug\n" ); #endif 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:44:2: error: #endif without #if 44 | #endif | ^~~~~
s928376359
p00000
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i, s, n) for(int i = s; i < (int)n; i++) #define per(i, n) for(int i = n; i >= 0; i--) #define ROF(i, s, n) for(int i = s; i >= (int)n; i--) #define FORIT(i, A) for (auto i : A) #define PRINT(x) cout << (x) << "\n" #define ALL(a) (a).begin(),(a).end() #define RALL(a) (a).rbegin(), (a).rend() #define MP make_pair #define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i) #define SZ(a) int((a).size()) #define EXIST(s,e) ((s).find(e)!=(s).end()) #define SORT(c) sort((c).begin(),(c).end()) #define CLR(a) memset((a), 0 ,sizeof(a)) #define NCLR(a) memset((a), -1 ,sizeof(a)) #define dump(x) cout << #x << " = " << (x) << "\n"; #define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n"; #define sq(n) (n) * (n) typedef vector<int> VI; typedef vector<VI> VVI; typedef vector<string> VS; typedef pair<int, int> PII; typedef long long LL; typedef vector<LL> VLL; typedef vector<VLL> VVLL; typedef unsigned int uint; typedef unsigned long long ull; typedef priority_queue<int> maxpq; typedef priority_queue< int, vector<int>, greater<int> > minpq; typedef complex<double> P; static const double EPS = 1e-10; static const double PI = acos( -1.0 ); static const int mod = 1000000007; static const int INF = 1 << 29; static const LL LL_INF = 1152921504606846976; static const int dx[] = { -1, 0, 1, 0, 1, -1, 1, -1 }; static const int dy[] = { 0, -1, 0, 1, 1, 1, -1, -1 }; int main() { #ifdef _DEBUG printf( "debug\n" ); #endif 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:46:49: error: expected primary-expression before ']' token 46 | for ( int j = 1; j < 10; j++ ) {] | ^
s902511253
p00000
C++
#include
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include | ^
s452321288
p00000
C++
#include
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include | ^
s822497817
p00000
C++
for i in 1..9 for j in 1..9 puts(i.to_s()+"x"+j.to_s()+"="+(i*j).to_s()); end end
a.cc:1:10: error: too many decimal points in number 1 | for i in 1..9 | ^~~~ a.cc:2:14: 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 | ^~~ a.cc:4:5: error: 'end' does not name a type 4 | end | ^~~
s752093875
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:2:11: error: expected ':' before 'static' 2 | public static void main(String args[]){ | ^~~~~~~ | : a.cc:2:29: error: 'String' has not been declared 2 | public static void main(String args[]){ | ^~~~~~ 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: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*
s371820355
p00000
C++
class Main{ public static void main(String[] a){ for(int i=1;i<=9;i++){ for (int n=1;n <=9;n++){ System.out.println(i + "x" + n + "=" + (i *n)); } } } }
a.cc:2:15: error: expected ':' before 'static' 2 | public static void main(String[] a){ | ^~~~~~~ | : a.cc:2:33: error: 'String' has not been declared 2 | public static void main(String[] a){ | ^~~~~~ a.cc:2:42: 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(i + "x" + n + "=" + (i *n)); | ^~~~~~ a.cc:5:56: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 5 | System.out.println(i + "x" + n + "=" + (i *n)); | ~~~~~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*
s034134377
p00000
C++
class qq{ public static void main(String a) { for(int i = 1;i<10;i++){ for(int j = 1 ;j<10;j++){ int k = i *j; System.out.printf("%d x %d = %d\n",i,j,k); } } } }
a.cc:2:23: error: expected ':' before 'static' 2 | public static void main(String a) { | ^~~~~~~ | : a.cc:2:41: error: 'String' has not been declared 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 qq::main(int)': a.cc:6:65: error: 'System' was not declared in this scope 6 | System.out.printf("%d x %d = %d\n",i,j,k); | ^~~~~~
s297627104
p00000
C++
#include <stdio> int main() { int i,j,k; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ k=i*j; printf("%d x %d = %d\n",i,j,k); } } return 0; }
a.cc:1:10: fatal error: stdio: No such file or directory 1 | #include <stdio> | ^~~~~~~ compilation terminated.
s172211578
p00000
C++
#include <iostream> using namespace std; int main(){ for(int i=10;i++<100)cout<<i/10<<"x"<<i%10<<i/10*1%10<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:21: error: expected ';' before ')' token 5 | for(int i=10;i++<100)cout<<i/10<<"x"<<i%10<<i/10*1%10<<endl; | ^ | ;
s016855124
p00000
C++
for i in range(9): for j in range(9): print str(i+1)+"x"+str(j+1)+"="+str(i*j)
a.cc:1:1: error: expected unqualified-id before 'for' 1 | for i in range(9): | ^~~
s085124262
p00000
C++
for i in range(9): for j in range(9): print str(i+1)+"x"+str(j+1)+"="+str(i*j)
a.cc:1:1: error: expected unqualified-id before 'for' 1 | for i in range(9): | ^~~
s333107536
p00000
C++
#include<iostream> int main(){ int i,j; for (i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%dx%d=%d\n",i,j,i*j); } } return0; }
a.cc: In function 'int main()': a.cc:9:5: error: 'return0' was not declared in this scope 9 | return0; | ^~~~~~~
s203642949
p00000
C++
//QQ class Main{ public static void main(String[] a){ int i = 1; int j = 1; for(;i<10;i++) { for(j=1;j<10;j++) { System.out.println(i+"x"+j+"="+(i*j)); } } } }
a.cc:3:11: error: expected ':' before 'static' 3 | public static void main(String[] a){ | ^~~~~~~ | : a.cc:3:29: error: 'String' has not been declared 3 | public static void main(String[] a){ | ^~~~~~ a.cc:3:38: error: expected ',' or '...' before 'a' 3 | 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:17: error: 'System' was not declared in this scope 8 | System.out.println(i+"x"+j+"="+(i*j)); | ^~~~~~ a.cc:8:43: 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*
s155613693
p00000
C++
include<iostream> using namespace std; int main(){ int a = 1,b = 1,c; while(a != 9 and b != 9){ c=a*b; cout<<a<<"x"<<b<<"="c<<endl; b++; if(b == 10){ a++; b = 1; } } return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:8:1: error: 'cout' was not declared in this scope 8 | cout<<a<<"x"<<b<<"="c<<endl; | ^~~~ a.cc:8:18: error: unable to find string literal operator 'operator""c' with 'const char [2]', 'long unsigned int' arguments 8 | cout<<a<<"x"<<b<<"="c<<endl; | ^~~~ a.cc:8:24: error: 'endl' was not declared in this scope 8 | cout<<a<<"x"<<b<<"="c<<endl; | ^~~~
s831480814
p00000
C++
#include<iostream> using namespace std; int main(){ int a = 1,b = 1,c; while(a != 9 and b != 9){ c=a*b; cout<<a<<"x"<<b<<"="c<<endl; b++; if(b == 10){ a++; b = 1; } } return 0; }
a.cc: In function 'int main()': a.cc:8:18: error: unable to find string literal operator 'operator""c' with 'const char [2]', 'long unsigned int' arguments 8 | cout<<a<<"x"<<b<<"="c<<endl; | ^~~~
s682740481
p00000
C++
#include <iostream> #include <string> using namespace std; int main(){ int a = 1,b = 1,c; while(a != 9 and b != 9){ c=a*b; cout<<a<<"x"<<b<<"="c<<endl; b++; if(b == 10){ a++; b = 1; } } return 0; }
a.cc: In function 'int main()': a.cc:9:18: error: unable to find string literal operator 'operator""c' with 'const char [2]', 'long unsigned int' arguments 9 | cout<<a<<"x"<<b<<"="c<<endl; | ^~~~
s093746768
p00000
C++
#include <iostream> using namespace std; int main(){ int a = 1,b = 1,c; while(a != 9 and b != 9){ c=a*b; cout<<a<<"x"<<b<<"="c<<endl; b++; if(b == 10){ a++; b = 1; } } return 0; }
a.cc: In function 'int main()': a.cc:8:18: error: unable to find string literal operator 'operator""c' with 'const char [2]', 'long unsigned int' arguments 8 | cout<<a<<"x"<<b<<"="c<<endl; | ^~~~
s809089484
p00000
C++
#include <iostream> using namespace std; int main(){ int a = 1,b = 1,c; while(a != 9 and b != 9){ c=a*b; cout<<a<<"x"<<b<<"="c<<endl; b++; if(b == 10){ a++; b = 1; } } return 0; }
a.cc: In function 'int main()': a.cc:8:18: error: unable to find string literal operator 'operator""c' with 'const char [2]', 'long unsigned int' arguments 8 | cout<<a<<"x"<<b<<"="c<<endl; | ^~~~
s756060188
p00000
C++
ohoho
a.cc:1:1: error: 'ohoho' does not name a type 1 | ohoho | ^~~~~
s407828212
p00000
C++
rgrgrgrgr
a.cc:1:1: error: 'rgrgrgrgr' does not name a type 1 | rgrgrgrgr | ^~~~~~~~~
s205197913
p00000
C++
ergergergsegserge
a.cc:1:1: error: 'ergergergsegserge' does not name a type 1 | ergergergsegserge | ^~~~~~~~~~~~~~~~~
s139415264
p00000
C++
f
a.cc:1:1: error: 'f' does not name a type 1 | f | ^
s203199916
p00000
C++
#include <stdioi.h> int main(void) { int i,j; for(i=0;i<10;i++){ for(j=0;j<10;j++){ printf("%dx%d=%d",i,j,i*j); } } return 0; }
a.cc:1:10: fatal error: stdioi.h: No such file or directory 1 | #include <stdioi.h> | ^~~~~~~~~~ compilation terminated.
s719442780
p00000
C++
#include<boost\graph\edge_coloring.hpp> #include<cstdio> using namespace std; using namespace boost; 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: fatal error: boost\graph\edge_coloring.hpp: No such file or directory 1 | #include<boost\graph\edge_coloring.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s212101116
p00000
C++
#include<boost\graph\edge_coloring.hpp> #include<cstdio> using namespace std; using namespace boost; 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: fatal error: boost\graph\edge_coloring.hpp: No such file or directory 1 | #include<boost\graph\edge_coloring.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s900327090
p00000
C++
hoge
a.cc:1:1: error: 'hoge' does not name a type 1 | hoge | ^~~~
s375204014
p00000
C++
#include <iostream> int main() { for(int j=1;j<=9;j++){ a=j; for(int i=1;i<=9;i++){ b=i; cout<<a<<`x`<<b<<`=`<<a*b<<endl; } } }
a.cc:9:26: error: stray '`' in program 9 | cout<<a<<`x`<<b<<`=`<<a*b<<endl; | ^ a.cc:9:28: error: stray '`' in program 9 | cout<<a<<`x`<<b<<`=`<<a*b<<endl; | ^ a.cc:9:34: error: stray '`' in program 9 | cout<<a<<`x`<<b<<`=`<<a*b<<endl; | ^ a.cc:9:36: error: stray '`' in program 9 | cout<<a<<`x`<<b<<`=`<<a*b<<endl; | ^ a.cc: In function 'int main()': a.cc:6:17: error: 'a' was not declared in this scope 6 | a=j; | ^ a.cc:8:17: error: 'b' was not declared in this scope 8 | b=i; | ^ a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | cout<<a<<`x`<<b<<`=`<<a*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:9:27: error: 'x' was not declared in this scope 9 | cout<<a<<`x`<<b<<`=`<<a*b<<endl; | ^ a.cc:9:35: error: expected primary-expression before '=' token 9 | cout<<a<<`x`<<b<<`=`<<a*b<<endl; | ^ a.cc:9:37: error: expected primary-expression before '<<' token 9 | cout<<a<<`x`<<b<<`=`<<a*b<<endl; | ^~ a.cc:9:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | cout<<a<<`x`<<b<<`=`<<a*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) | ^~~~
s278234027
p00000
C++
#include <iostream> int main() { for(int j=1;j<=9;j++){ a=j; for(int i=1;i<=9;i++){ b=i; cout<<a<<"x"<<b<<"="<<a*b<<endl; } } }
a.cc: In function 'int main()': a.cc:6:17: error: 'a' was not declared in this scope 6 | a=j; | ^ a.cc:8:17: error: 'b' was not declared in this scope 8 | b=i; | ^ a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | cout<<a<<"x"<<b<<"="<<a*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:9:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | cout<<a<<"x"<<b<<"="<<a*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) | ^~~~
s602583874
p00000
C++
#include <iostream> using namespace int main(){ int a,b,x; for(int j=1;j<=9;j++){ a=j; for(int i=1;i<=9;i++){ b=i; cout<<a<<"x"<<b<<"="<<a*b<<endl; } } }
a.cc:3:1: error: expected identifier before 'int' 3 | int main(){ | ^~~ a.cc:2:16: error: expected ';' before 'int' 2 | using namespace | ^ | ; 3 | int main(){ | ~~~ a.cc: In function 'int main()': a.cc:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 11 | cout<<a<<"x"<<b<<"="<<a*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:11:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 11 | cout<<a<<"x"<<b<<"="<<a*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) | ^~~~
s172042179
p00000
C++
public class Main { public static void main(String[] args){ for(int i=1; i<=9; ++i) for(int n=1; n<=9; ++n) System.out.println(i+"x"+n+"="+i*n); } }
a.cc:1:1: error: expected unqualified-id before 'public' 1 | public class Main { | ^~~~~~
s113295634
p00000
C++
#include<iostream> using namespace std; int main() { int a; int b; for(a=1,a<10,a++) { for(b=1,b<10,b++) { cout << a << "x" << b << "=" << a*b << endl } } return 0; }
a.cc: In function 'int main()': a.cc:8:25: error: expected ';' before ')' token 8 | for(a=1,a<10,a++) { | ^ | ; a.cc:13:9: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:10: error: expected ';' before 'return' 12 | } | ^ | ; 13 | return 0; | ~~~~~~ a.cc:13:9: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:10: error: expected ')' before 'return' 12 | } | ^ | ) 13 | return 0; | ~~~~~~ a.cc:8:12: note: to match this '(' 8 | for(a=1,a<10,a++) { | ^
s803404705
p00000
C++
#include<iostream> using namespace std; int main() { int a; int b; for(a=1,a<10,a++) { for(b=1,b<10,b++) { cout << a << "x" << b << "=" << a*b << endl??? } } return 0; }
a.cc: In function 'int main()': a.cc:8:25: error: expected ';' before ')' token 8 | for(a=1,a<10,a++) { | ^ | ; a.cc:13:9: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:10: error: expected ';' before 'return' 12 | } | ^ | ; 13 | return 0; | ~~~~~~ a.cc:13:9: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:10: error: expected ')' before 'return' 12 | } | ^ | ) 13 | return 0; | ~~~~~~ a.cc:8:12: note: to match this '(' 8 | for(a=1,a<10,a++) { | ^
s691487906
p00000
C++
#include<iostream> using namespace std; int main() { int a; int b; for(a=1,a<10,a++) { for(b=1,b<10,b++) { cout << a << "x" << b << "=" << a*b << "%n"??? } } return 0; }
a.cc: In function 'int main()': a.cc:8:25: error: expected ';' before ')' token 8 | for(a=1,a<10,a++) { | ^ | ; a.cc:13:9: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:10: error: expected ';' before 'return' 12 | } | ^ | ; 13 | return 0; | ~~~~~~ a.cc:13:9: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:10: error: expected ')' before 'return' 12 | } | ^ | ) 13 | return 0; | ~~~~~~ a.cc:8:12: note: to match this '(' 8 | for(a=1,a<10,a++) { | ^
s265445106
p00000
C++
#include<iostream> using namespace std; int main() { int a; int b; for (a=1,a<10,a++) { for (b=1,b<10,b++) { cout << a << "x" << b << "=" << a*b << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:8:26: error: expected ';' before ')' token 8 | for (a=1,a<10,a++) { | ^ | ; a.cc:13:9: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:10: error: expected ';' before 'return' 12 | } | ^ | ; 13 | return 0; | ~~~~~~ a.cc:13:9: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:10: error: expected ')' before 'return' 12 | } | ^ | ) 13 | return 0; | ~~~~~~ a.cc:8:13: note: to match this '(' 8 | for (a=1,a<10,a++) { | ^
s233336011
p00000
C++
#include<iostream> using namespace std; int main() { int a; int b; for (a=1,a<10,a++) { for (b=1,b<10,b++) { cout << a << "x" << b << "=" << a*b << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:7:26: error: expected ';' before ')' token 7 | for (a=1,a<10,a++) { | ^ | ; a.cc:12:9: error: expected primary-expression before 'return' 12 | return 0; | ^~~~~~ a.cc:11:10: error: expected ';' before 'return' 11 | } | ^ | ; 12 | return 0; | ~~~~~~ a.cc:12:9: error: expected primary-expression before 'return' 12 | return 0; | ^~~~~~ a.cc:11:10: error: expected ')' before 'return' 11 | } | ^ | ) 12 | return 0; | ~~~~~~ a.cc:7:13: note: to match this '(' 7 | for (a=1,a<10,a++) { | ^
s842152200
p00000
C++
#include<iostream> int main(){ int a,b; for(a=1;a<=9;a++){ for(b=1;b<=9;b++){ std::cout<<a<<"x"<<b<<"="<<a*b<<std::endl; } } sys return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: 'sys' was not declared in this scope 10 | sys | ^~~
s607015870
p00000
C++
#include<iostream> int main(){ int a,b; for(a=1;a<=9;a++){ for(b=1;b<=9;b++){ std::cout<<a<<"x"<<b<<"="<<a*b<<std::endl; } } sys return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: 'sys' was not declared in this scope 10 | sys | ^~~
s009750933
p00000
C++
#include <iostream> using namespace std; int main(){ int a,b,c; for(a=1;a<10;++a){ for(b=1;b<10;++b){ c=a*b; std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; } } system("pause"); return 0; }
a.cc:8:59: warning: missing terminating " character 8 | std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; | ^ a.cc:8:59: error: missing terminating " character 8 | std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; | ^~~~~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:9:33: error: expected primary-expression before '}' token 9 | } | ^
s731638468
p00000
C++
#include <iostream> using namespace std; int main(){ int a,b,c; for(a=1;a<10;++a){ for(b=1;b<10;++b){ c=a*b; std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; } } system("pause"); return 0; }
a.cc:8:59: warning: missing terminating " character 8 | std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; | ^ a.cc:8:59: error: missing terminating " character 8 | std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; | ^~~~~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:9:33: error: expected primary-expression before '}' token 9 | } | ^
s219409768
p00000
C++
#include <iostream> using namespace std; int main(){ int a,b,c; for(a=1;a<10;++a){ for(b=1;b<10;++b){ c=a*b; std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; } } return 0; }
a.cc:8:59: warning: missing terminating " character 8 | std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; | ^ a.cc:8:59: error: missing terminating " character 8 | std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; | ^~~~~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:9:33: error: expected primary-expression before '}' token 9 | } | ^
s917262298
p00000
C++
#include <iostream> int main(){ int a,b,c; for(a=1;a<10;++a){ for(b=1;b<10;++b){ c=a*b; std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; } } return 0; }
a.cc:7:59: warning: missing terminating " character 7 | std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; | ^ a.cc:7:59: error: missing terminating " character 7 | std::cout<<a<<"テδ?<<b<<"="<<c<<std::endl; | ^~~~~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:8:33: error: expected primary-expression before '}' token 8 | } | ^
s867956516
p00000
C++
int main(){ int a,b; for(a=1;a<=9;a++){ for(b=1;b<=9;b++) std::cout<< a << "x" << b << "=" << a*b <<std::endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:22: error: 'cout' is not a member of 'std' 5 | std::cout<< a << "x" << b << "=" << a*b <<std::endl; | ^~~~ a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | int main(){ a.cc:5:64: error: 'endl' is not a member of 'std' 5 | std::cout<< a << "x" << b << "=" << a*b <<std::endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | int main(){
s517765344
p00000
C++
int main(){ int a,b; for(a=1;a<=9;a++){ for(b=1;b<=9;b++) std::cout<< a << "x" << b << "=" << a*b <<std::endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:22: error: 'cout' is not a member of 'std' 5 | std::cout<< a << "x" << b << "=" << a*b <<std::endl; | ^~~~ a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | int main(){ a.cc:5:64: error: 'endl' is not a member of 'std' 5 | std::cout<< a << "x" << b << "=" << a*b <<std::endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | int main(){
s214488807
p00000
C++
int main(){ int a,b; for(a=1;a<=9;a++){ for(b=1;b<=9;b++) std::cout<< a << "x" << b << "=" << a*b <<std::endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:22: error: 'cout' is not a member of 'std' 5 | std::cout<< a << "x" << b << "=" << a*b <<std::endl; | ^~~~ a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | int main(){ a.cc:5:64: error: 'endl' is not a member of 'std' 5 | std::cout<< a << "x" << b << "=" << a*b <<std::endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | int main(){
s983685351
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; } } }
a.cc: In function 'int main()': a.cc:6:37: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 6 | cout << i <<"x" << j << "=" <i*j << endl; | ~~~~^~~~~~~
s598469120
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; } } }
a.cc: In function 'int main()': a.cc:7:38: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 7 | cout << i <<"x" << j << "=" <i*j << endl; | ~~~~^~~~~~~
s312495833
p00000
C++
class Main{ public static void main(String[] a){ int i,j, k; for(i=1; i<=9; ){ for(j=1; j<=9; j++){ k = i*j; System.out.println(i + "x" + j + "=" + k); } i++; } } }
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:15:2: error: expected ';' after class definition 15 | } | ^ | ; a.cc: In static member function 'static void Main::main(int*)': a.cc:8:33: error: 'System' was not declared in this scope 8 | System.out.println(i + "x" + j + "=" + k); | ^~~~~~ a.cc:8:64: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 8 | System.out.println(i + "x" + j + "=" + k); | ~~~~~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*
s790268799
p00000
C++
#include<iostream> using namespace std; int main(){ for(int i=1;i<10;i++){ for(int j=1;j<10;j++){ count << i << "x" << j << "=" << (i*j); } } return 0; }
a.cc: In function 'int main()': a.cc:7:25: error: 'count' was not declared in this scope 7 | count << i << "x" << j << "=" << (i*j); | ^~~~~
s906819952
p00000
C++
#include<iostream> using namespace std; int main(){ for(int i=1;i<10;i++){ for(int j=1;j<10;j++){ count << i << "x" << j << "=" << (i*j); } } return 0; }
a.cc: In function 'int main()': a.cc:7:25: error: 'count' was not declared in this scope 7 | count << i << "x" << j << "=" << (i*j); | ^~~~~
s656787026
p00000
C++
#include<iostream> using namespace std; int main(){ for(int i=1;i<10;i++){ for(int j=1;j<10;j++){ count << i << "x" << j << "=" << (i*j); } } return 0; }
a.cc: In function 'int main()': a.cc:7:25: error: 'count' was not declared in this scope 7 | count << i << "x" << j << "=" << (i*j); | ^~~~~
s218963134
p00000
C++
#include<stdio.h> int main() { int i; float s, a; s = 1 a = 2 for (s = 1; s <= 10; s = s + 1) { for (a = 2; a <=10; a = a + 1) { i=s*a; printf("i=%d, i=%f\n",i ); } }}
a.cc: In function 'int main()': a.cc:7:6: error: expected ';' before 'a' 7 | s = 1 | ^ | ; 8 | a = 2 | ~ a.cc:9:31: error: expected ';' before ')' token 9 | for (s = 1; s <= 10; s = s + 1) { | ^ | ;
s920141624
p00000
C++
<?php for($i=1;$i<10;$i++) { for($j=1;$j<10;$j++) { echo $i."x".$j."=".$i*$j."\n"; } }
a.cc:1:1: error: expected unqualified-id before '<' token 1 | <?php | ^ a.cc:2:10: error: '$i' does not name a type 2 | for($i=1;$i<10;$i++) { | ^~ a.cc:2:16: error: '$i' does not name a type 2 | for($i=1;$i<10;$i++) { | ^~
s963371414
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.print( i*j + " "); } System.out.println(" "); } } }
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:14:2: error: expected ';' after class definition 14 | } | ^ | ; a.cc: In static member function 'static void Main::main(int*)': a.cc:7:25: error: 'System' was not declared in this scope 7 | System.out.print( i*j + " "); | ^~~~~~ a.cc:9:17: error: 'System' was not declared in this scope 9 | System.out.println(" "); | ^~~~~~
s987463091
p00000
C++
include <stdio.h> int main(void){ int num=0; int i=0; for(i=1;i<10;i++){ num=i*i; printf("%dx%d=%d\n", i, i, num); } return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include <stdio.h> | ^~~~~~~
s947488768
p00000
C++
i = 1 s = 1 while i < 10 while s < 10 t = i*s puts i.to_s + 'x' + s.to_s + '=' + t.to_s s += 1 end s = 1 i += 1 end
a.cc:1:1: error: 'i' does not name a type 1 | i = 1 | ^
s415565282
p00000
C++
for num1 in 1..9 for num2 in 1..9 puts "#{num1}x#{num2}=#{num1*num2}" end end
a.cc:1:13: error: too many decimal points in number 1 | for num1 in 1..9 | ^~~~ a.cc:2:13: error: too many decimal points in number 2 | for num2 in 1..9 | ^~~~ a.cc:1:1: error: expected unqualified-id before 'for' 1 | for num1 in 1..9 | ^~~
s522014985
p00000
C++
#include<iostream> using namespace std; int main(){ for(i = 0; i < 9; ++i){ for(i = 0; i < 9; ++i){ cout << i << "x" << 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 = 0; i < 9; ++i){ | ^ a.cc:7:29: error: 'j' was not declared in this scope 7 | cout << i << "x" << j << "=" << i * j << endl; | ^
s857350399
p00000
C++
#include<iostream> using namespace std; int main(){ for(i = 0; i < 9; ++i){ for(j = 0; j < 9; ++j){ cout << i << "x" << 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 = 0; i < 9; ++i){ | ^ a.cc:6:11: error: 'j' was not declared in this scope 6 | for(j = 0; j < 9; ++j){ | ^
s028571389
p00000
C++
using System.Collections; using System.Collections.Generic; int main(){ for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { int re = i * j; Console.WriteLine(re); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System.Collections; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc: In function 'int main()': a.cc:11:1: error: 'Console' was not declared in this scope 11 | Console.WriteLine(re); | ^~~~~~~
s538718863
p00000
C++
class Test { static void Main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { int re = i * j; Console.Write(i); Console.Write("+"); Console.Write(j); Console.Write("="); Console.Write(re); } } } }
a.cc:19:2: error: expected ';' after class definition 19 | } | ^ | ; a.cc: In static member function 'static void Test::Main()': a.cc:10:1: error: 'Console' was not declared in this scope 10 | Console.Write(i); | ^~~~~~~
s831388901
p00000
C++
#!/usr/bin/env python # -*- coding: utf-8 -*- for i in range(10): for j in range(10): print str(i) + "x" + str(j) + "=" + str(i*j)
a.cc:1:2: error: invalid preprocessing directive #! 1 | #!/usr/bin/env python | ^ a.cc:2:3: error: invalid preprocessing directive #- 2 | # -*- coding: utf-8 -*- | ^ a.cc:3:1: error: expected unqualified-id before 'for' 3 | for i in range(10): | ^~~
s876894308
p00000
C++
#!/usr/bin/env python # -*- coding: utf-8 -*- for i in range(1, 10): for j in range(1, 10): print str(i) + "x" + str(j) + "=" + str(i*j)
a.cc:1:2: error: invalid preprocessing directive #! 1 | #!/usr/bin/env python | ^ a.cc:2:3: error: invalid preprocessing directive #- 2 | # -*- coding: utf-8 -*- | ^ a.cc:3:1: error: expected unqualified-id before 'for' 3 | for i in range(1, 10): | ^~~
s908283892
p00000
C++
#include <iostream> int mian() { 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; }
/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
s362184426
p00000
C++
#include <iostream> int mian() { 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; }
/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
s100238678
p00000
C++
</textarea><h1>
a.cc:1:1: error: expected unqualified-id before '<' token 1 | </textarea><h1> | ^
s237384891
p00000
C++
aaaa
a.cc:1:1: error: 'aaaa' does not name a type 1 | aaaa | ^~~~
s177373909
p00000
C++
#include <stdio.h> //10個のデータを入力し、大きい順で3つのデータを取り出すプログラム int main(void) { int i, j; //繰り返し変数 int h[10]; //データ格納スペース int n = 0; //一時変数 int rank[3]; //順位付けしたデータを格納 for (i = 0; i < 10; i++){ scanf("%d", &h[i]); } for (j = 0; j < 3; j++){ for (i = 0; i < 10; i++){ if (h[n] < h[i]){ n = i; } } rank[j] = h[n]; h[n] = -1; n = 0; } h[first] = -1; for (i = 0; i < 10; i++){ if (h[second] < h[i]){ second = i; } } h[second] = -1; for (i = 0; i < 10; i++){ if (h[third] < h[i]){ third = i; } } printf("%d\n", rank[0]); printf("%d\n", rank[1]); printf("%d\n", rank[2]); return (0); }
a.cc: In function 'int main()': a.cc:27:11: error: 'first' was not declared in this scope 27 | h[first] = -1; | ^~~~~ a.cc:30:23: error: 'second' was not declared in this scope 30 | if (h[second] < h[i]){ | ^~~~~~ a.cc:35:11: error: 'second' was not declared in this scope 35 | h[second] = -1; | ^~~~~~ a.cc:37:23: error: 'third' was not declared in this scope 37 | if (h[third] < h[i]){ | ^~~~~
s081373448
p00000
C++
using System; class latte { 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:5:11: error: expected ':' before 'static' 5 | public static void Main() | ^~~~~~~ | : a.cc:17:2: error: expected ';' after class definition 17 | } | ^ | ; a.cc: In static member function 'static void latte::Main()': a.cc:11:17: error: 'Console' was not declared in this scope 11 | Console.WriteLine(i+"x"+j+"="+i*j); | ^~~~~~~ a.cc:11:42: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 11 | Console.WriteLine(i+"x"+j+"="+i*j); | ~~~~~~~^~~~ | | | | | const char [2] | const char*
s670601659
p00000
C++
#include<iostream> using namespace std; int main(){ int i,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:7:5: error: expected initializer before 'for' 7 | for(i=1,i<10,i++) | ^~~
s924531669
p00000
C++
piyo
a.cc:1:1: error: 'piyo' does not name a type 1 | piyo | ^~~~
s848179566
p00000
C++
aaaa
a.cc:1:1: error: 'aaaa' does not name a type 1 | aaaa | ^~~~
s836283658
p00000
C++
9.times do |i| 9.times do |j| puts "#{i}x#{j}=#{i * j}" end end
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 9.times do |i| | ^~~~~~~
s770380787
p00000
C++
source
a.cc:1:1: error: 'source' does not name a type 1 | source | ^~~~~~
s319698651
p00000
C++
null
a.cc:1:1: error: 'null' does not name a type 1 | null | ^~~~
s914655263
p00000
C++
null
a.cc:1:1: error: 'null' does not name a type 1 | null | ^~~~
s460852478
p00000
C++
null
a.cc:1:1: error: 'null' does not name a type 1 | null | ^~~~
s325574519
p00000
C++
null
a.cc:1:1: error: 'null' does not name a type 1 | null | ^~~~
s143870011
p00000
C++
????????????????????????????????????????????????
a.cc:1:1: error: expected unqualified-id before '?' token 1 | ???????????????????????????????????????????????? | ^
s978306765
p00000
C++
????????????????????????????????????
a.cc:1:1: error: expected unqualified-id before '?' token 1 | ???????????????????????????????????? | ^
s343041866
p00000
C++
??????
a.cc:1:1: error: expected unqualified-id before '?' token 1 | ?????? | ^
s843443572
p00000
C++
#include <bits/stdc++.h> #include <memory> using namespace std; class C { int a[32][32]; }; class D { public: D() : a(28, std::vector<int>(28)){} private: std::vector<std::vector<int>> a; }; int main() { C *p = new C[10000]; p[9999][31][31] = 1; // D *q = new D[10000]; // q[9999][27][27] = 1; }
a.cc: In function 'int main()': a.cc:19:16: error: no match for 'operator[]' (operand types are 'C' and 'int') 19 | p[9999][31][31] = 1; | ^
s898886110
p00000
C++
#include <bits/stdc++.h> #include <memory> using namespace std; class C { public: int a[32][32]; }; class D { public: D() : a(28, std::vector<int>(28)){} std::vector<std::vector<int> > a; }; int main() { // C *p = new C[10000]; // p[9999].a[31][31] = 1; D *q = new D[10000]; q[9999][27][27] = 1; }
a.cc: In function 'int main()': a.cc:21:16: error: no match for 'operator[]' (operand types are 'D' and 'int') 21 | q[9999][27][27] = 1; | ^
s315179613
p00000
C++
#include <stdio.h> ?? 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:2:1: error: expected unqualified-id before '?' token 2 | ?? | ^
s340571385
p00000
C++
int x, y; for (x=1;x<=9;x++) { for (y=1;y<=9;y++) { System.out.println(x + "x" + y + "=" + (x * y)); } }
a.cc:2:1: error: expected unqualified-id before 'for' 2 | for (x=1;x<=9;x++) { | ^~~ a.cc:2:10: error: 'x' does not name a type 2 | for (x=1;x<=9;x++) { | ^ a.cc:2:15: error: 'x' does not name a type 2 | for (x=1;x<=9;x++) { | ^
s444027227
p00000
C++
#include <iostream> 2 using namespace std; 3 4 int main(){ 5 for(int i=1;i<10;++i){ 6 for(int j=1;j<10;++j){ 7 cout << i << "x" << j << "=" << i*j << endl; 8 } 9 } 10 return 0; 11 }
a.cc:2:3: error: expected unqualified-id before numeric constant 2 | 2 using namespace std; | ^ a.cc:3:3: error: expected unqualified-id before numeric constant 3 | 3 | ^
s569798255
p00000
C++
#include<stdio.h> int main(){ int i,j; for(i=1;i<10;i++){ for(j=1;j<10;j++){ printf("i*j"/n); } } return 0; }
a.cc: In function 'int main()': a.cc:6:14: error: 'n' was not declared in this scope 6 | printf("i*j"/n); | ^
s425614917
p00000
C++
i=1 9.times ( puts i"*"i"="i*i i+=i )
a.cc:1:1: error: 'i' does not name a type 1 | i=1 | ^
s664835242
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; } } }
a.cc: In function 'int main()': a.cc:9:10: error: expected ';' before string constant 9 | cout << i "x" j "=" i * j << endl; | ^~~~ | ;
s617961646
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; } } }
a.cc: In function 'int main()': a.cc:9:22: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 9 | cout << i + "x" + j + "=" + (i * j) << endl; | ~~~~~~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*
s164809141
p00000
C++
#include<iostream> using namespace std; int main(){   for (int i = 1; i <= 9; i++){ cout << i << "x1=" << i*1 << endl; cout << i << "x2=" << i*2 << endl; cout << i << "x3=" << i*3 << endl; cout << i << "x4=" << i*4 << endl; cout << i << "x5=" << i*5 << endl; cout << i << "x6=" << i*6 << endl; cout << i << "x7=" << i*7 << endl; cout << i << "x8=" << i*8 << endl; cout << i << "x9=" << i*9 << endl; }  return 0; }
a.cc:6:1: error: extended character   is not valid in an identifier 6 |   for (int i = 1; i <= 9; i++){ | ^ a.cc:6:1: error: extended character   is not valid in an identifier a.cc:17:6: error: extended character   is not valid in an identifier 17 | }  | ^ a.cc: In function 'int main()': a.cc:6:10: error: expected primary-expression before 'int' 6 |   for (int i = 1; i <= 9; i++){ | ^~~ a.cc:6:21: error: 'i' was not declared in this scope 6 |   for (int i = 1; i <= 9; i++){ | ^ a.cc:17:6: error: '\U00003000' was not declared in this scope 17 | }  | ^~
s383889073
p00000
C++
#include<bits/stdc++.h> using namestace std; int mian(){ int a = 1; for(int i = 0; i < 1e9; i++){ a *= 10; a %= 10000; } return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namestace' 2 | using namestace std; | ^~~~~~~~~
s291619592
p00000
C++
#include<bits/stdc++.h> using namespace std; int mian(){ int a = 1; for(int i = 0; i < 1e9; i++){ a *= 10; a %= 10000; } return 0; }
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s796731209
p00000
C++
public class Main { public static void main(String[] args) { for(int i = 1; i <= 9; i++) { for(int j = 1; j <= 9; j++) { System.out.printf("%dx%d=%d\n", i, j, i*j); } } } }
a.cc:1:1: error: expected unqualified-id before 'public' 1 | public class Main { | ^~~~~~
s056374959
p00000
C++
#include<iostream> using namespace std; int main() { int i, j, x; for (i = 1; i <= 9; i++){ for (j = 1; j <= 9; j++){ x = i * j; printf("%6d", x); } printf("\n"); } return ; }
a.cc: In function 'int main()': a.cc:15:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 15 | return ; | ^~~~~~
s361169848
p00000
C++
<?php foreach(range(1,9) as $ele1){ foreach(range(1,9) as $ele2){ /* echo "{$ele1}x{$ele2}=".$ele1*$ele2."\n"; */ echo $ele1."x".$ele2."=".$ele1i*$ele2."\n"; } } ?>
a.cc:1:1: error: expected unqualified-id before '<' token 1 | <?php | ^ a.cc:8:1: error: expected unqualified-id before '?' token 8 | ?> | ^