submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s239458215
p00000
C++
#include<stdio.h> int main(void){ int printf(1x1=1,1x2=2,..9x8=72,9x9=81) return 0; }
a.cc: In function 'int main()': a.cc:4:20: error: unable to find numeric literal operator 'operator""x1' 4 | int printf(1x1=1,1x2=2,..9x8=72,9x9=81) | ^~~ a.cc:4:26: error: unable to find numeric literal operator 'operator""x2' 4 | int printf(1x1=1,1x2=2,..9x8=72,9x9=81)...
s773809645
p00000
C++
output = function() { console.log.apply( console, arguments ); }; (function kuku( a, b ) { if ( a > 9 ) return; if ( b > 9 ) return kuku( a + 1, 0 ); output( '%dx%d=%d', a, b, a * b ); return kuku( a, b + 1 ); })( 1, 1 );
a.cc:10:17: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes 10 | output( '%dx%d=%d', a, b, a * b ); | ^~~~~~~~~~ a.cc:1:1: error: 'output' does not name a type 1 | output = function() { | ^~~~~~ a.cc:5:10: error: expected ')' before 'kuku' ...
s875638975
p00000
C++
#include <cstdio> 2 int main(){ 3 for(int i=1;i<10;i++){ 4 for(int j=1;j<10;j++){ 5 printf("%dx%d=%d\n",i,j,i*j); 6 } 7 } 8 return 0; 9 } 10 11
a.cc:2:3: error: expected unqualified-id before numeric constant 2 | 2 int main(){ | ^ a.cc:10:2: error: expected unqualified-id before numeric constant 10 | 10 | ^~
s932394565
p00000
C++
#include <stdio.h> int main(void){
a.cc: In function 'int main()': a.cc:3:16: error: expected '}' at end of input 3 | int main(void){ | ~^
s570833913
p00000
C++
using System; class Class1 { static void Main(string[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine("{0}x{1}={2}", i, j, i * j); } } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:4:22: error: 'string' has not been declared 4 | static void Main(string[] args) | ^~~~~~ a.cc:4:31: error: expected ',' or '...' before 'args' 4 | static void Main(s...
s073258495
p00000
C++
include
a.cc:1:1: error: 'include' does not name a type 1 | include | ^~~~~~~
s212311766
p00000
C++
#include <cstdio> #include <cstring> #include <algorithm> #include <map> #include <string> #include <iostream> using namespace std; #define Max 1000005 char a[Max][10]; map<string , int > mp; map<string , int > mp2; int mian() { int n; while(scanf("%d",&n)!=EOF) { mp.clear(); getchar(); for(int i=0...
a.cc: In function 'int mian()': a.cc:25:22: error: 'gets' was not declared in this scope; did you mean 'getw'? 25 | gets(a); | ^~~~ | getw
s121976721
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<<'*'<<j<<'='<<i*j<<endl; } return 0; }
a.cc:1:20: warning: extra tokens at end of #include directive 1 | #include<iostream> using namespace std; int main() { for(int i(1);i<10;i++) { for(int j(1);j<10;j++) cout<<i<<'*'<<j<<'='<<i*j<<endl; } return 0; } | ^~~~~ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-g...
s337461995
p00000
C++
#include<iostream> using namespace std; int main(){ for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ cout<<i<<"x"<<j<<"="<<endl; } } return 0; }
a.cc: In function 'int main()': a.cc:6:13: error: 'i' was not declared in this scope 6 | for(i=1;i<=9;i++){ | ^ a.cc:8:21: error: 'j' was not declared in this scope 8 | for(j=1;j<=9;j++){ | ^
s525316183
p00000
C++
#include<iostream> using namespace std; int main(){ for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ cout<<i<<"x"<<j<<"="<<i*j<<endl; } } return 0; }
a.cc: In function 'int main()': a.cc:6:13: error: 'i' was not declared in this scope 6 | for(i=1;i<=9;i++){ | ^ a.cc:8:21: error: 'j' was not declared in this scope 8 | for(j=1;j<=9;j++){ | ^
s022487493
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:7:21: error: extended character “ is not valid in an identifier 7 | cout << i << “x” << j << “=” << i*j << endl; | ^ a.cc:7:21: error: extended character ” is not valid in an identifier a.cc:7:33: error: extended character “ is not valid in an identifier 7 | cout << ...
s692301482
p00000
C++
//============================================================================ // Name : 3308.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <ios...
a.cc: In function 'int MinCostFlow(int, int, int)': a.cc:88:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 88 | int main() { | ^~ a.cc:88:9: note: remove parentheses to default-initialize a variable 88 | int main() { | ^~ | -- ...
s899220705
p00000
C++
(1..9).each do |i| (1..9).each do |j| puts "#{i}x#{j}=#{i*j}" end end
a.cc:1:2: error: too many decimal points in number 1 | (1..9).each do |i| | ^~~~ a.cc:2:4: error: too many decimal points in number 2 | (1..9).each do |j| | ^~~~ a.cc:1:2: error: expected unqualified-id before numeric constant 1 | (1..9).each do |i| | ^~~~ a.cc:1:2: error: expected ...
s034281709
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 + "x" + 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 '.....
s989885366
p00000
C++
i = 1 k = 1 while i < 10 while k < 10 t = i * k puts "#{i}x#{k}=#{t}" k = k + 1 end i = i + 1 k = 1 end
a.cc:1:1: error: 'i' does not name a type 1 | i = 1 | ^
s010898484
p00000
C++
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> #include<cstdlib> using namespace std; //#ifdef __int64 typedef __int64 LL; //#else //typedef long long LL; //#endif typedef double db; const int N = 200015; const int INF = ~0u>>2; char s[N],str[2*N]; int len[2*N]; inline int man...
a.cc:9:9: error: '__int64' does not name a type; did you mean '__int64_t'? 9 | typedef __int64 LL; | ^~~~~~~ | __int64_t a.cc: In function 'int main()': a.cc:47:5: error: 'LL' was not declared in this scope 47 | LL x = 1; | ^~
s862331588
p00000
C++
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> #include<cstdlib> using namespace std; #ifdef __int64 typedef __int64 LL; //#else //typedef long long LL; #endif //typedef double db; //const int N = 200015; //const int INF = ~0u>>2; //char s[N],str[2*N]; //int len[2*N]; //inline...
a.cc: In function 'int main()': a.cc:48:9: error: 'LL' was not declared in this scope 48 | for(LL i=1;i<=9;i++) | ^~ a.cc:48:16: error: 'i' was not declared in this scope 48 | for(LL i=1;i<=9;i++) | ^ a.cc:49:15: error: expected ';' before 'j' 49 | for(LL j=1;...
s670021516
p00000
C++
#include "StdAfx.h" #include<iostream> using namespace std; int main() { for(int m=1;m<=9;m++) { cout<<m<<"x"<<m<<"="<<m*m<<endl; } system("pause"); return 0; }
a.cc:1:10: fatal error: StdAfx.h: No such file or directory 1 | #include "StdAfx.h" | ^~~~~~~~~~ compilation terminated.
s263955253
p00000
C++
i;main(j){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);}
a.cc:1:1: error: 'i' does not name a type 1 | i;main(j){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);} | ^ a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token 1 | i;main(j){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);} | ^...
s372489515
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<<endl; } } return 0; }
a.cc: In function 'int main()': a.cc:6:57: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 6 | std::cout<<i<<'x'<<j<<'='<<i*j<<endl; | ^~~~ | st...
s467371635
p00000
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> using namespace std; #define MAXN 500010 struct _node { int u,v,w; bool operator < (const _node &b) const { return w<b.w; } }no[MAXN]; struct _query { int t,id; bool operator < (const _query &b) const { ...
a.cc:44:17: error: stray '\' in program 44 | while(scanf(\\\"%d%d\\\",&n,&m)==2) | ^ a.cc:44:18: error: stray '\' in program 44 | while(scanf(\\\"%d%d\\\",&n,&m)==2) | ^ a.cc:44:19: error: stray '\' in program 44 | while(scanf(\\\"%d%d\\\",&n,&m)==2) ...
s991569545
p00000
C++
test
a.cc:1:1: error: 'test' does not name a type 1 | test | ^~~~
s459426793
p00000
C++
#omc;ide <stdop.k?mr ,aイン(){オdpe()omro1;o1^;o++={ fpr)omt k~-0;lk<;k++{@炉mtg)”%fc%f&f¥。#、、お、l、おz:l=;}}tりぃtm−;}
a.cc:1:2: error: invalid preprocessing directive #omc 1 | #omc;ide <stdop.k?mr ,aイン(){オdpe()omro1;o1^;o++={ | ^~~ a.cc:2:27: error: stray '@' in program 2 | fpr)omt k~-0;lk<;k++{@炉mtg)”%fc%f&f¥。#、、お、l、おz:l=;}}tりぃtm−;} | ^ a.cc:2:28: error: extended character ” is not valid...
s354819052
p00000
C++
#include <iostream> using namespace std; int main(void){ for(int a = 1; a <= 9; a ++) for(int b = 1; b <= 9; b ++) cout << a << "x" << b << "=" << a * b << endl; return -; }
a.cc: In function 'int main()': a.cc:10:11: error: expected primary-expression before ';' token 10 | return -; | ^
s375947484
p00000
C++
#include <iostream> using namespace std; int main(){ for(int i = 1; i <=9; i++) for(int j = 1; j <= 9; j++) cout << i << "x" << j << "= " << i * j << endl; return 0; }
a.cc:8:34: warning: missing terminating " character 8 | cout << i << "x" << j << "= | ^ a.cc:8:34: error: missing terminating " character 8 | cout << i << "x" << j << "= | ^~ a.cc:9:1: warning: missing terminating " ch...
s940618234
p00000
C++
縲先怙蟆乗?蠖「蝗セ縲粗dmonds邂玲ウ?驍サ謗・髦オ蠖「蠑?螟肴揩蠎ヲO(n3), 霑泌屓譛?ー冗函謌先?逧?柄蠎ヲ,譫??螟ア雍・霑?蝗櫁エ溷?,莨??蝗セ逧?、ァ蟆熟蜥碁そ謗・髦オmat,荳咲嶌驍サ轤ケ霎ケ譚ナnf,蜿ッ譖エ謾ケ霎ケ譚?噪邀サ蝙?pre[]霑泌屓譬醍噪譫??,逕ィ 辷カ扈鍋せ陦ィ遉コ,莨??譌カpre[]謨ー扈?ク?峺,逕ィ-1譬??貅千せ. [豕ィ諢従豕ィ諢城怙隕∝?蛻、譁ュ譬ケ譏ッ蜷ヲ蜿ッ莉・蛻ー霎セ莨??蝗セ逧?ッ丈ク?クェ鬘カ轤ケ蜀堺スソ逕ィ [萓矩「肋 UVA 11865 Stream My Contest #include <string.h> #define MAXN 120 #define i...
a.cc:1:12: error: extended character 「 is not valid in an identifier 1 | 縲先怙蟆乗?蠖「蝗セ縲粗dmonds邂玲ウ?驍サ謗・髦オ蠖「蠑?螟肴揩蠎ヲO(n3), 霑泌屓譛?ー冗函謌先?逧?柄蠎ヲ,譫??螟ア雍・霑?蝗櫁エ溷?,莨??蝗セ逧?、ァ蟆熟蜥碁そ謗・髦オmat,荳咲嶌驍サ轤ケ霎ケ譚ナnf,蜿ッ譖エ謾ケ霎ケ譚?噪邀サ蝙?pre[]霑泌屓譬醍噪譫??,逕ィ | ^ a.cc:1:37: error: extended character 「 is not valid in an identifier 1 | ...
s061740250
p00000
C++
#include <stdio.h> int main() { for(int i=1; i<=9; i++) for(int j=1; j<=9; j++) }
a.cc: In function 'int main()': a.cc:8:1: error: expected primary-expression before '}' token 8 | } | ^
s649017839
p00000
C++
#include <stdio.h> int main() { for(i=1;i<10;i++) for(j=1;j<10;j++) printf("%dx%d=%d",i,j,i*j); return 0; }
a.cc: In function 'int main()': a.cc:4:10: error: 'i' was not declared in this scope 4 | for(i=1;i<10;i++) | ^ a.cc:5:15: error: 'j' was not declared in this scope 5 | for(j=1;j<10;j++) | ^
s566318465
p00000
C++
#include "iostream" #include "cstring" #include "cstdio" #include "set" #include "map" #include "algorithm" #include "vector" #include "queue" #include "cassert" using namespace std; #define F first #define S second #define MP make_pair #define PB push_back typedef long long ll; typedef pair<int, int> PII; const int N ...
a.cc: In function 'void dfs(int, int)': a.cc:24:9: error: reference to 'size' is ambiguous 24 | size[x] = 1; | ^~~~ In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:...
s250086117
p00000
C++
#include <stdio.h> int main(void) { int i; for 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:6:13: error: expected '(' before 'j' 6 | for j; | ^ | ( a.cc:6:13: error: 'j' was not declared in this scope a.cc:8:9: error: expected primary-expression before 'for' 8 | for(i = 1; i < 10; i++){ | ^~~ a.cc:6:...
s512069484
p00000
C++
<?php for(i=0;i<81;++i){a=i/9+1;b=i%9+1;print a.'x'.b.'='.(a*b).'\n';} ?>
a.cc:1:1: error: expected unqualified-id before '<' token 1 | <?php | ^ a.cc:2:9: error: 'i' does not name a type 2 | for(i=0;i<81;++i){a=i/9+1;b=i%9+1;print a.'x'.b.'='.(a*b).'\n';} | ^ a.cc:2:14: error: expected unqualified-id before '++' token 2 | for(i=0;i<81;++i){a=i/9+1;b=i%9+1;pri...
s936111927
p00000
C++
#include<stdio.h> int main(){ for(int i=0;i<10;i++) for(int j=0;j<10;j++) cout<<i<<"+"<<j<<"="<<j*i<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:1: error: 'cout' was not declared in this scope 8 | cout<<i<<"+"<<j<<"="<<j*i<<endl; | ^~~~ a.cc:8:28: error: 'endl' was not declared in this scope 8 | cout<<i<<"+"<<j<<"="<<j*i<<endl; | ^~~~
s675409863
p00000
C++
#include <iostream> using namespace std; int main(void) { for( int i=0; i<10; ++i) { for( int j=0; j<10; ++j ) { cout << i << "x" << j << "=" << i*j << endl; } } return 0; }
a.cc:11:20: error: extended character   is not valid in an identifier 11 | cout << i << "x" << j << "=" << i*j << endl; | ^ a.cc: In function 'int main()': a.cc:11:20: error: unable to find string literal operator 'operator""\U00003000' with 'const char [2]', 'long unsigned int' argume...
s033239023
p00000
C++
#include<iostream> using namespace std; int main(){ int i; for(int x=1;x<10;x++){ i=i*i cout << i; } return 0; }
a.cc: In function 'int main()': a.cc:7:10: error: expected ';' before 'cout' 7 | i=i*i | ^ | ; 8 | cout << i; | ~~~~
s445871716
p00000
C++
#include <iostream> using namespace std; int main(void){ int x,y; for(x<10;x++){ for(y<10;y++){ cout <<x*y; } } return 0; }
a.cc: In function 'int main()': a.cc:6:13: error: expected ';' before ')' token 6 | for(x<10;x++){ | ^ | ; a.cc:7:16: error: expected ';' before ')' token 7 | for(y<10;y++){ | ^ | ;
s653715506
p00000
C++
#include<stdio.h> int main(){ for( return 0; }
a.cc: In function 'int main()': a.cc:8:5: error: expected primary-expression before 'return' 8 | return 0; | ^~~~~~ a.cc:9:1: error: expected primary-expression before '}' token 9 | } | ^ a.cc:8:14: error: expected ';' before '}' token 8 | return 0; | ^ | ...
s658690951
p00000
C++
#include<stdio.h> int main(){ int a,b,c; for(a=1;a<=9;a++){ for(b=1;b<=9;b++){ c=a*b; printf("%dx%d=%d,a,b,c); } } return 0; }
a.cc:8:32: warning: missing terminating " character 8 | printf("%dx%d=%d,a,b,c); | ^ a.cc:8:32: error: missing terminating " character 8 | printf("%dx%d=%d,a,b,c); | ^~~~~~~~~~~~~~~~~ a.cc: ...
s264347266
p00000
C++
#include<stdio.h> int main(void){ int a,b,c; for(a=1;a<=9;a++){ for(b=1;b<=9;b++){ c=a*b; printf("%dx%d=%d,a,b,c); } } return 0; }
a.cc:8:32: warning: missing terminating " character 8 | printf("%dx%d=%d,a,b,c); | ^ a.cc:8:32: error: missing terminating " character 8 | printf("%dx%d=%d,a,b,c); | ^~~~~~~~~~~~~~~~~ a.cc: ...
s816795942
p00000
C++
#iinclude <iostream> int main() { for(int i=1;i<=9;i++) { for(int j=1;j<=9;i++) { cout << i << 'x' << j << '=' << i*j << endl; } } return 0; }
a.cc:1:2: error: invalid preprocessing directive #iinclude; did you mean #include? 1 | #iinclude <iostream> | ^~~~~~~~ | include a.cc: In function 'int main()': a.cc:8:1: error: 'cout' was not declared in this scope 8 | cout << i << 'x' << j << '=' << i*j << endl; | ^~~~ a.cc:8:40: error: 'e...
s705394640
p00000
C++
#iinclude <iostream> using namespace std; int main() { for(int i=1;i<=9;i++) { for(int j=1;j<=9;i++) { cout << i << 'x' << j << '=' << i*j << endl; } } return 0; }
a.cc:1:2: error: invalid preprocessing directive #iinclude; did you mean #include? 1 | #iinclude <iostream> | ^~~~~~~~ | include a.cc: In function 'int main()': a.cc:9:1: error: 'cout' was not declared in this scope 9 | cout << i << 'x' << j << '=' << i*j << endl; | ^~~~ a.cc:1:1: note: 'std...
s509857851
p00000
C++
#iinclude <iostream> using namespace std; int main() { int i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;i++) { cout << i << 'x' << j << '=' << i*j << endl; } } return 0; }
a.cc:1:2: error: invalid preprocessing directive #iinclude; did you mean #include? 1 | #iinclude <iostream> | ^~~~~~~~ | include a.cc: In function 'int main()': a.cc:10:1: error: 'cout' was not declared in this scope 10 | cout << i << 'x' << j << '=' << i*j << endl; | ^~~~ a.cc:1:1: note: 'st...
s607009486
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:15: error: expected ':' before 'static' 2 | public static void main(String[] args) { | ^~~~~~~ | : a.cc:2:33: error: 'String' has not been declared 2 | public static void main(String[] args) { | ^~~~~~ a.cc:2:42...
s517426525
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.println(i + "x" + j + "=" + (i * j)); } }
a.cc:2:1: error: expected unqualified-id before 'public' 2 | public class Main { | ^~~~~~
s979068968
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.println(i + "x" + j + "=" + (i * j)); } }
a.cc:1:1: error: expected unqualified-id before 'public' 1 | public class Main { | ^~~~~~
s364571204
p00000
C++
#include <iostream> using namespace std ; int main() { for(int i = 1 ; i <= 9 ; i ++) { for(int j = 1 ; j <= 9 ; j++) { cout << i << "x" << j << "=" << i*j ; } } return 0 }
a.cc: In function 'int main()': a.cc:14:9: error: expected ';' before '}' token 14 | return 0 | ^ | ; 15 | 16 | } | ~
s653337299
p00000
C++
#include<iostream> using namespace std; int main(){ for(int i=0;i=<9;i++){ for(int j=0;j=<9;j++){ cout << i << 'x' << j << '=' << i*j << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:5:23: error: expected primary-expression before '<' token 5 | for(int i=0;i=<9;i++){ | ^ a.cc:6:31: error: expected primary-expression before '<' token 6 | for(int j=0;j=<9;j++){ | ^
s548023146
p00000
C++
class Main { public static void main (String[] arge) { int a,b; for(a=1;a<=9 ;a++) { for(b=1;b<=9 ;b++){ System.out.println(a+"x"+b+"="+(a*b)); } } } }
a.cc:2:7: error: expected ':' before 'static' 2 | public static void main (String[] arge) { | ^~~~~~~ | : a.cc:2:26: error: 'String' has not been declared 2 | public static void main (String[] arge) { | ^~~~~~ a.cc:2:35: error: expected ',' or '...' before ...
s370937478
p00000
C++
#include<iostream> using namespace std; int main(){ for(int i=1;i<=9;i++){ for(int j=1;j<=9;j++){ cout << i << "x" << j << "=" << i*j << "\n";); } } return 0; }
a.cc: In function 'int main()': a.cc:7:45: error: expected primary-expression before ')' token 7 | cout << i << "x" << j << "=" << i*j << "\n";); | ^
s956052576
p00000
C++
public class QQ { 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:1:1: error: expected unqualified-id before 'public' 1 | public class QQ | ^~~~~~
s985844292
p00000
C++
#include <iostream> using namespace std; int main(){ for(int i=1;i<10;i++){ for(int j=0;j<10;j++){ cout<<i<<'x'<<j<<'='<<i*j<<endl; }
a.cc: In function 'int main()': a.cc:13:2: error: expected '}' at end of input 13 | } | ^ a.cc:6:22: note: to match this '{' 6 | for(int i=1;i<10;i++){ | ^ a.cc:13:2: error: expected '}' at end of input 13 | } | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ ...
s503463116
p00000
C++
class q0{ public static void main(String[] args){ int i, j; for(i=1; i<9; i++){ for(j=1; j<10; j++){ System.out.print(i); System.out.print("x"); System.out.print(j); System.out.print("="); System.out.println(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:2:38: error: expected ',' ...
s999816141
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 '...
s981291285
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.println(i+"x"+j+"="+i*j); } } } }
a.cc:1:1: error: expected unqualified-id before 'public' 1 | public class Main { | ^~~~~~
s837509060
p00000
C++
using System; namespace acm1000 { class Program { static void Main(string[] args) { int i, j; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { Console.Write("{0}*{1}={2} \r\n",i,j,i*j); ...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:7:26: error: 'string' has not been declared 7 | static void Main(string[] args) | ^~~~~~ a.cc:7:35: error: expected ',' or '...' before 'args' 7 | static...
s113512621
p00000
C++
#include <iostream> #include <cstdio> using namespace std; int main() { int i, j; int ans; for(i = 1; i < 10; i++) { for(j = 1; j < 10; j++) { ans = i * j cout << i << "x" << j << "=" << ans << endl; } return 0; }
a.cc: In function 'int main()': a.cc:14:36: error: expected ';' before 'cout' 14 | ans = i * j | ^ | ; 15 | cout << i << "x" << j << "=" << ans << endl; | ...
s380813410
p00000
C++
#include <iostream> #include <cstdio> using namespace std; int main() { int i, j; int ans; for(i = 1; i < 10; i++) { for(j = 1; j < 10; j++) { ans = i * j cout << i << "x" << j << "=" << ans << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:14:36: error: expected ';' before 'cout' 14 | ans = i * j | ^ | ; 15 | cout << i << "x" << j << "=" << ans << endl; | ...
s366420165
p00000
C++
http://www.cprogramdevelop.com/1099631/ http://www.cprogramdevelop.com/1099631/ http://www.cprogramdevelop.com/1099631/ http://www.cprogramdevelop.com/1099631/ http://www.cprogramdevelop.com/1099631/
a.cc:1:5: error: found ':' in nested-name-specifier, expected '::' 1 | http://www.cprogramdevelop.com/1099631/ | ^ | :: a.cc:1:1: error: 'http' does not name a type 1 | http://www.cprogramdevelop.com/1099631/ | ^~~~
s898559387
p00000
C++
include <iostream> using namespace std; int main() { for(int x = 1; x <= 9; ++x){ for(int y = 1; y <= 9; ++y){ cout << x << "x" << y << "=" << x*y << 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:7: error: 'cout' was not declared in this scope 9 | cout << x << "x" << y << "=" << x*y << endl; | ^~~~ a.cc:9:46: error: 'endl' was not declared in this scope 9 | ...
s893530651
p00000
C++
#include <iostream> using namespace std; int main(){ int a = 1, b = 1; for(int i = 1; i < 10; i++){ for(int j = 1; j < 10; j++){ cout << a << "x" << b << endl; b++; } b = 1; a++; } return 0; }v
a.cc:15:2: error: 'v' does not name a type 15 | }v | ^
s285449335
p00000
C++
#include<stdio.h> int main() { int a,i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%d x %d = %d",i,j,i*j); printf("\n"); } }
a.cc: In function 'int main()': a.cc:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:3:1: note: to match this '{' 3 | { | ^
s374845079
p00000
C++
class Main{ public static void main(String[] a){ for (i=1,i<10,i++){ for (j=1,j<10,j++){ System.out.println(i + "×" + 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 '.....
s280852715
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 + "×" + 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 '.....
s397354864
p00000
C++
#include<iostream> using mamespace 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:3:7: error: expected nested-name-specifier before 'mamespace' 3 | using mamespace std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:8:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | cout<<i<<"*"<<j<<"="<<i*j<<endl; | ...
s321474497
p00000
C++
#include <cstdio.h> #include <algorithm> using namespace std; int main(void) { int i, j; for (i = 1; i < 10; i++){ for (j = 1; j < 10; j++){ printf("%dx%d=%d"i, j, i * j); } } return (0); }
a.cc:1:10: fatal error: cstdio.h: No such file or directory 1 | #include <cstdio.h> | ^~~~~~~~~~ compilation terminated.
s036991012
p00000
C++
#include<iostream> using namespece std; int main() { int i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) cout << i << "x" << j << = << i*j << endl; } return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namespece' 2 | using namespece std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:9:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | cout << i << "x" << j << = << i*j << endl; | ^~...
s890952667
p00000
C++
#include<iostream> using namespace std; int main() { int i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) cout << i << "x" << j << = << i*j << endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:38: error: expected primary-expression before '=' token 9 | cout << i << "x" << j << = << i*j << endl; | ^ a.cc:9:40: error: expected primary-expression before '<<' token 9 | cout << i << "x" << j << = << i...
s829457272
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 '.....
s017381313
p00001
Java
import java.io.*; public class Main { public static void main(String args[]) throws IOException{ int[] height = new int[10]; int i,j; int temp; for(i = 0; i < 10; i++){ BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); height[i] = Integer.parseInt(input.readLine()); } ...
Main.java:28: error: class, interface, enum, or record expected import java.io.*; ^ 1 error
s233762745
p00001
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.Integer; import java.lang.String; import java.lang.System; class Main { public static void main(String[] a) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int [] mountains ...
Main.java:18: error: cannot find symbol Arrays.sort(mountains); ^ symbol: variable Arrays location: class Main 1 error
s436441387
p00001
Java
class Main { public static void main(String[] args) throws NumberFormatException, IOException { Integer[] input = new Integer[10]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); for(int i=0; i<10; i++){ input[i] = Integer.parseInt(br.readLine()); } Arrays.sort(input, Colle...
Main.java:2: error: cannot find symbol public static void main(String[] args) throws NumberFormatException, IOException { ^ symbol: class IOException location: class Main Main.java:5: error: cannot find symbol BufferedReader br = new Buffere...
s067405066
p00001
Java
public static void insertSort(int[] arr) { /*if(arr.length==1) { return arr; }*/ for(int n=1;n<arr.length;n++) { for(int i=n;i>0;i--) { if(arr[i-1]>arr[i]) { int temp=arr[i]; arr[i]=arr[i-1]; arr[i-1]=temp; } } } for(int j=arr.length-1;j>arr.length-4;j--); { Sy...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void insertSort(int[] arr) ^ (use --enable-preview to enable unnamed classes) 1 error
s984290139
p00001
Java
import java.io.*; import java.util.Arrays; public class ProgteamA { public static void main(String args[])throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter length"); int len = Integer.parseInt(br.readLine());...
Main.java:3: error: class ProgteamA is public, should be declared in a file named ProgteamA.java public class ProgteamA { ^ 1 error
s516682655
p00001
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import java.util.Scanner; /** * * @author sahil */ public class main { private static Scanner input; public static void ma...
Main.java:15: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s403467806
p00001
Java
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main (String[] args) { Scanner input = new Scanner(System.in); ArrayList<Integer> t = new ArrayList<Integer>(); for (int i=0; i<10; i++) t.add(input.nextInt()); Collections.sort(t); for (int i=...
Main.java:9: error: cannot find symbol Collections.sort(t); ^ symbol: variable Collections location: class Main 1 error
s773851382
p00001
Java
public class Main{ public static void main(String[] args) throws IOException { FileReader in = new FileReader("test.txt"); BufferedReader br = new BufferedReader(in); ArrayList<Integer> Al = new ArrayList<Integer>(); // Read in String line = br.readLine(); while (line != null) { // You mi...
Main.java:2: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:3: error: cannot find symbol FileReader in = new FileReader("test.txt"); ^ symbol: class FileReader ...
s510103337
p00001
Java
import java.util.Arrays; import java.util.Scanner; public class Sort { public static void main(String args[]){ Scanner in = new Scanner(System.in); int[] mylist = new int[10]; for(int i = 0; i<10; i++){ int a = in.nextInt(); mylist[i] = a; } Arrays.sort(mylist); System.out.println(mylist[9]); Sys...
Main.java:3: error: class Sort is public, should be declared in a file named Sort.java public class Sort { ^ 1 error
s977850584
p00001
Java
import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main{ public static void main(String[] args){ ArrayList<Integer> Al = new ArrayList<Integer>(); // Read in for (Integer i = 0; i < 10; i++){ Scanner user_input = new Scanner( System.in ); ...
Main.java:24: error: cannot find symbol System.out(Al.get(i)); ^ symbol: method out(Integer) location: class System 1 error
s110315868
p00001
Java
import java.util.Scanner; public class TopHills { public static void main(String[] args) { Scanner scan = new Scanner(System.in); //BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int[] tops = {0,0,0}; for (int i = 0;i < 10;i++) { int h = scan.nextInt(); // do nothing if equalit...
Main.java:2: error: class TopHills is public, should be declared in a file named TopHills.java public class TopHills { ^ 1 error
s856000337
p00001
Java
import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class topThree { public static void main(String[] args){ int[] input = new int[10]; Scanner s = new Scanner(System.in); for(int i=0; i<10; i++){ System.out.println("Please input the "+ (i+1) +"th number(integer)"); inpu...
Main.java:5: error: class topThree is public, should be declared in a file named topThree.java public class topThree { ^ 1 error
s770978337
p00001
Java
public class main{ public static void main(String args[]){ int largest=0; int largest2=0; int largest3=0; for(int i=0;i<args.length;i++){ if(Integer.parseInt(args[i])>largest){ largest3=largest2; largest2=largest; largest=Integer.parseInt(args[i]); } i++; } System.out.println(largest); Syste...
Main.java:3: error: class main is public, should be declared in a file named main.java public class main{ ^ 1 error
s203041803
p00001
Java
public class Main{ public static void main(String[] args) throws Exception { // buffer from input BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); // read by line until the end of file String line; String thisToken; ArrayList<Integer> heightMountain = new ArrayList<In...
Main.java:5: error: cannot find symbol BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:5: error: cannot find symbol BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); ...
s533932887
p00001
Java
public class Question2 { public static void main(String[] args) { int[] array = { 1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922 }; for (int i = 0; i < array.length; i += 1) { for (int j = i + 1; j < array.length; j += 1) { if (array[i] < array[j]) { int temporary = array[i]; array[i] =...
Main.java:1: error: class Question2 is public, should be declared in a file named Question2.java public class Question2 { ^ 1 error
s264780869
p00001
Java
public class Question2 { public static void main(String[] args) { int[] array = { 1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922 }; for (int i = 0; i < array.length; i += 1) { for (int j = i + 1; j < array.length; j += 1) { if (array[i] < array[j]) { int temporary = array[i]; array[i...
Main.java:1: error: class Question2 is public, should be declared in a file named Question2.java public class Question2 { ^ 1 error
s388034189
p00001
Java
public class { public static void main(String[] args) { int[] array = { 1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922 }; for (int i = 0; i < array.length; i += 1) { for (int j = i + 1; j < array.length; j += 1) { if (array[i] < array[j]) { int temporary = array[i]; array[i] = array[...
Main.java:1: error: <identifier> expected public class { ^ 1 error
s432781126
p00001
Java
int[] array = { 256, 3456, 4377, 6472, 4356, 467, 3456, 346, 2345, 589 }; for (int i = 0; i < array.length; i += 1) { for (int j = i + 1; j < array.length; j += 1) { if (array[i] < array[j]) { int temporary = array[i]; array[i] = array[j]; array[j] = temporary; } } } for (int x = 0; x...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int[] array = { 256, 3456, 4377, 6472, 4356, 467, 3456, 346, 2345, 589 }; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected for (int i = 0; i < array.length; i += 1)...
s890598171
p00001
Java
int[] array = { 256, 3456, 4377, 6472, 4356, 467, 3456, 346, 2345, 589 }; for (int i = 0; i < array.length; i += 1) { for (int j = i + 1; j < array.length; j += 1) { if (array[i] < array[j]) { int temporary = array[i]; array[i] = array[j]; array[j] = temporary; } } } for (int x = 0; x...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int[] array = { 256, 3456, 4377, 6472, 4356, 467, 3456, 346, 2345, 589 }; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected for (int i = 0; i < array.length; i += 1)...
s731982110
p00001
Java
public class Main { public static void main(String[] args) { int[] input = new int[10]; Scanner sc = new Scanner(System.in); for(int i = 0; i < input.length; i++) { System.out.println((i + 1) + "番目の読み込み"); input[i] = sc.nextInt(); System.out.println("値:" + input[i]); } for(int i = 0; i < input.le...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s052273970
p00001
Java
import java.util.Scanner; public class Volume1 { public static void main(String[] args) { int[] takasa; takasa = new int[10]; Scanner n=new Scanner(System.in); for (int i = 0; i < 10;i++){ takasa[i]=n.nextInt(); } int max=0; int max2=0; int max3=0; for (int a = 0; a < 10; a++){ if (max < taka...
Main.java:28: error: reached end of file while parsing } ^ 1 error
s723632887
p00001
Java
import java.util.Scanner; public class Volume1 { public static void main(String[] args) { int[] takasa; takasa = new int[10]; Scanner n=new Scanner(System.in); for (int i = 0; i < 10;i++){ takasa[i]=n.nextInt(); } int max=0; int max2=0; int max3=0; for (int a = 0; a < 10; a++){ if (max < taka...
Main.java:2: error: class Volume1 is public, should be declared in a file named Volume1.java public class Volume1 { ^ 1 error
s850526878
p00001
Java
import java.io.*; class hills{ public static void main(String args[]){ String buf = ""; int save; int n = 10; int data[]; data = new int[10]; BufferedReader lineread = new BufferedReader( new InputStreamReader(System.in)); for(int i=0;i<10;i++){ int a =i+1; System.out.println("第"+a+"の山の高さを入力しなさい");...
Main.java:29: error: <identifier> expected returun 0; ^ 1 error
s919980153
p00001
Java
class Main{ public static void main(String[] a){ Scanner scan = new Scanner(System.in); int[] data = new int[3]; int tmp; for(int i=0;i<10;i++){ tmp=scan.nextInt(); for(j=0;j<3;j++){ if(data[j]<=tmp){ for(int k=2;k>j;k--){ data[k]=data[k-1]; } ...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: error: can...
s035057901
p00001
Java
import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner scan = new Scanner(System.in); int[] data = new int[3]={0}; int tmp; for(int i=0;i<10;i++){ tmp=scan.nextInt(); for(int j=0;j<3;j++){ if(data[j]<=tmp){ for(int k=2;k>j;k--){ da...
Main.java:6: error: illegal start of expression int[] data = new int[3]={0}; ^ Main.java:6: error: not a statement int[] data = new int[3]={0}; ^ Main.java:6: error: ';' expected int[] data = new int[3]={0}; ^ 3 err...
s474746860
p00001
Java
import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner scan = new Scanner(System.in); int[] data = new int[3]{0}; int tmp; for(int i=0;i<10;i++){ tmp=scan.nextInt(); for(int j=0;j<3;j++){ if(data[j]<=tmp){ for(int k=2;k>j;k--){ dat...
Main.java:6: error: array creation with both dimension expression and initialization is illegal int[] data = new int[3]{0}; ^ 1 error
s277685677
p00001
Java
import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner scan = new Scanner(System.in); int[] data; data = new int[3]{0,0,0}; int tmp; for(int i=0;i<10;i++){ tmp=scan.nextInt(); for(int j=0;j<3;j++){ if(data[j]<=tmp){ for(int k=2;k>j;k--...
Main.java:7: error: array creation with both dimension expression and initialization is illegal data = new int[3]{0,0,0}; ^ 1 error
s885918528
p00001
Java
import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner scan = new Scanner(System.in); int[] data; data = new int[3]{0,0,0}; int tmp; for(int i=0;i<10;i++){ tmp=scan.nextInt(); for(int j=0;j<3;j++){ if(data[j]<=tmp){ for(int k=2;k>j;k--...
Main.java:7: error: array creation with both dimension expression and initialization is illegal data = new int[3]{0,0,0}; ^ 1 error
s912402836
p00001
Java
import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner scan = new Scanner(System.in); int[] data; data = new int[3]{0,0,0}; int tmp; for(int i=0;i<10;i++){ tmp=scan.nextInt(); for(int j=0;j<3;j++){ if(data[j]<=tmp){ for(int k=2;k>j;k--...
Main.java:7: error: array creation with both dimension expression and initialization is illegal data = new int[3]{0,0,0}; ^ 1 error
s265894362
p00001
Java
import java.util.*; class Q2 { public static void main(String[] av) { Scanner sc = new Scanner( System.in ); ArrayList<Integer> al = new ArrayList<Integer>(); while( sc.hasNextInt() ) { al.add( sc.nextInt() ) } Collections.sort( al ); Collections.reverse( al ); for ( int i = 0; i < 3; ++i...
Main.java:10: error: ';' expected al.add( sc.nextInt() ) ^ Main.java:17: error: reached end of file while parsing } ^ 2 errors
s882073322
p00001
Java
class q2 { public static void main(string[] av) { java.util.scanner sc = new java.util.scanner(system.in); java.util.arraylist<integer> vec = new java.util.arraylist<>(); while( sc.hasnextint() ) { vec.add( sc.nextint() ); } java.util.collections.sort( vec ); java.util.collections.reverse( vec ); ...
Main.java:4: error: cannot find symbol public static void main(string[] av) ^ symbol: class string location: class q2 Main.java:6: error: cannot find symbol java.util.scanner sc = new java.util.scanner(system.in); ^ symbol: class scanner location: package java.util Mai...
s654682041
p00001
Java
import java.io.*; import java.util.Arrays; public class { public static void main(String[] args) throws IOException { BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); int[] num = new int[10]; for(int i=0; i<10; i++){ num[i] = Integer.parseInt(br.readLine()); } Arrays.sort(num)...
Main.java:6: error: <identifier> expected public class { ^ Main.java:17: error: reached end of file while parsing } ^ 2 errors
s914303057
p00001
Java
import java.io.*; import java.util.Arrays; public class Main{ public static void main(String[] args) throws IOException { BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); int[] num = new int[10]; for(int i=0; i<10; i++){ num[i] = Integer.parseInt(br.readLine()); } Arrays.sort(...
Main.java:17: error: reached end of file while parsing } ^ 1 error