submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s106553174
p00000
C++
#include <cstdio> #include<iostream> using namespace std; int main(void){ int ans,i,j; for(i=1;i<10;i++){ for(j=1;j<10;j++){ ans=i*j; cout<<i<<"x"<<j<<"="<<ans<<endl; } }
a.cc: In function 'int main()': a.cc:17:2: error: expected '}' at end of input 17 | } | ^ a.cc:5:15: note: to match this '{' 5 | int main(void){ | ^
s709853044
p00000
C++
using System; public class Program { public static void Main() { for(int i = 1; i <= 9; i++) { for(int j = 1; j <= 9; j++) { Console.WriteLine(i + "x" + j + "=" + (i * j)); } } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:1: error: expected unqualified-id before 'public' 2 | public class Program { | ^~~~~~
s455555129
p00000
C++
#include<iostream> const int X99 9 const int Y99 9 int main() { for(int x=1;x<=X99;x++){ for(int y=1;y<=Y99;y++){ cout << x << 'x' << y << '='<< x*y << '\n'; } } }
a.cc:2:15: error: expected initializer before numeric constant 2 | const int X99 9 | ^
s174728762
p00000
C++
#include<iostream> const int X99 9 const int Y99 9 int main() { for(int x=1;x<=X99;x++){ ??for(int y=1;y<=Y99;y++){ ??????std::cout << x << 'x' << y << '='<< x*y << '\n'; ????} ??} return 0; }
a.cc:2:15: error: expected initializer before numeric constant 2 | const int X99 9 | ^
s574616516
p00000
C++
#include<iostream> const int X99 9 const int Y99 9 int main() { for(int x=1;x<=X99;x++){ for(int y=1;y<=Y99;y++){ std::cout << x << 'x' << y << '='<< x*y << '\n'; } } return 0; }
a.cc:2:15: error: expected initializer before numeric constant 2 | const int X99 9 | ^
s169126519
p00000
C++
#include <iostream> int main(){ for(int i = 1; i < 10; i++){ for(int j = 1; j < 10; j++){ cout << i << "x" << j << "=" << i*j << endl; } } }
a.cc: In function 'int main()': a.cc:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 6 | cout << i << "x" << j << "=" << i*j << endl; | ^~~~ | std::cout In file included from a.cc:1: /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:6:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 6 | 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) | ^~~~
s019471269
p00000
C++
#include<iostream> using namespace std; int main(){ for(i=1;i<9;i++){ for(j=1;j<9;j++){ cout << i << "x" << j << "=" << i*j << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'i' was not declared in this scope 6 | for(i=1;i<9;i++){ | ^ a.cc:7:7: error: 'j' was not declared in this scope 7 | for(j=1;j<9;j++){ | ^
s611765189
p00000
C++
#include <iostream> using namespace std; int main() { int multiplier,multiplicand; for( multiplicand = 1; multiplicand < 10 ; multiplicand++) { for(multiplier = 1; multiplier < 10 ; multiplier++) cout << multiplicand << "x" << multiplier << "=" multiplicand * multiplier << endl; } return 0; }
a.cc: In function 'int main()': a.cc:11:60: error: expected ';' before 'multiplicand' 11 | cout << multiplicand << "x" << multiplier << "=" multiplicand * multiplier << endl; | ^~~~~~~~~~~~~ | ;
s758906668
p00000
C++
#include <iostream> int main() { for(int i = 1; i <= 9; ++i) for(int j = 1; j <= 9; ++j) std::cout << i << "x" << j << "=" << i * j << std::end; }
a.cc: In function 'int main()': a.cc:6:46: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 6 | std::cout << i << "x" << j << "=" << i * j << std::end; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 301 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*' 301 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]' 306 | operator<<(nullptr_t) | ^~~~~~~~ /usr/include/c++/14/ostream:306:18: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to
s448368982
p00000
C++
int main(){ int a,b; for(a=1;a<=9;a++) for(b=1;b<=9;b++) printf("%dx%d=%d\n",a,b,a*b); return 0; }
a.cc: In function 'int main()': a.cc:5:13: error: 'printf' was not declared in this scope 5 | printf("%dx%d=%d\n",a,b,a*b); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | int main(){
s684979790
p00000
C++
class Main{ public static void main(String[] a){ int[] x = new int[]; int x[] = {1,2,3,4,5,6,7,8,9,}; int[] y = new int[]; int y[] = {1,2,3,4,5,6,7,8,9,}; ?????? ??????for (i=0;i<10;i++){ for (j=0;j<10;j++){ system.out.println{x[i]+"x"+y[j]+"="+x[i]*y[j]}; } } }
a.cc:2:11: error: expected ':' before 'static' 2 | public static void main(String[] a){ | ^~~~~~~ | : a.cc:2:29: error: 'String' has not been declared 2 | public static void main(String[] a){ | ^~~~~~ a.cc:2:38: error: expected ',' or '...' before 'a' 2 | public static void main(String[] a){ | ^ a.cc:14:5: error: expected '}' at end of input 14 | } | ^ a.cc:1:11: note: to match this '{' 1 | class Main{ | ^ a.cc: In static member function 'static void Main::main(int*)': a.cc:4:8: error: structured binding declaration cannot have type 'int' 4 | int[] x = new int[]; | ^~ a.cc:4:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:4:8: error: empty structured binding declaration a.cc:4:11: error: expected initializer before 'x' 4 | int[] x = new int[]; | ^ a.cc:6:8: error: structured binding declaration cannot have type 'int' 6 | int[] y = new int[]; | ^~ a.cc:6:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:6:8: error: empty structured binding declaration a.cc:6:11: error: expected initializer before 'y' 6 | int[] y = new int[]; | ^ a.cc:8:1: error: expected primary-expression before '?' token 8 | ?????? | ^ a.cc:8:2: error: expected primary-expression before '?' token 8 | ?????? | ^ a.cc:8:3: error: expected primary-expression before '?' token 8 | ?????? | ^ a.cc:8:4: error: expected primary-expression before '?' token 8 | ?????? | ^ a.cc:8:5: error: expected primary-expression before '?' token 8 | ?????? | ^ a.cc:8:6: error: expected primary-expression before '?' token 8 | ?????? | ^ a.cc:9:1: error: expected primary-expression before '?' token 9 | ??????for (i=0;i<10;i++){ | ^ a.cc:9:2: error: expected primary-expression before '?' token 9 | ??????for (i=0;i<10;i++){ | ^ a.cc:9:3: error: expected primary-expression before '?' token 9 | ??????for (i=0;i<10;i++){ | ^ a.cc:9:4: error: expected primary-expression before '?' token 9 | ??????for (i=0;i<10;i++){ | ^ a.cc:9:5: error: expected primary-expression before '?' token 9 | ??????for (i=0;i<10;i++){ | ^ a.cc:9:6: error: expected primary-expression before '?' token 9 | ??????for (i=0;i<10;i++){ | ^ a.cc:9:7: error: expected primary-expression before 'for' 9 | ??????for (i=0;i<10;i++){ | ^~~ a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:7: error: expected ':' before 'for' a.cc:9:7: error: expected primary-expression before 'for' a.cc:9:16: error: 'i' was not declared in this scope 9 | ??????for (i=0;i<10;i++){ | ^ a.cc: At global scope: a.cc:14:5: error: expected unqualified-id at end of input 14 | } | ^
s330277050
p00000
C++
class Main{ public static void main(String[] a){ int[] x = new int[9]; int x[] = {1,2,3,4,5,6,7,8,9}; int[] y = new int[9]; int y[] = {1,2,3,4,5,6,7,8,9}; for(int i=0;i<10;i++){ for(int j=0;j<10;j++){ System.out.println{x[i]+"x"+y[j]+"="+x[i]*y[j]}; } } } }
a.cc:2:11: error: expected ':' before 'static' 2 | public static void main(String[] a){ | ^~~~~~~ | : a.cc:2:29: error: 'String' has not been declared 2 | public static void main(String[] a){ | ^~~~~~ a.cc:2:38: error: expected ',' or '...' before 'a' 2 | public static void main(String[] a){ | ^ a.cc:14:4: error: expected ';' after class definition 14 | } | ^ | ; a.cc: In static member function 'static void Main::main(int*)': a.cc:4:8: error: structured binding declaration cannot have type 'int' 4 | int[] x = new int[9]; | ^~ a.cc:4:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:4:8: error: empty structured binding declaration a.cc:4:11: error: expected initializer before 'x' 4 | int[] x = new int[9]; | ^ a.cc:6:8: error: structured binding declaration cannot have type 'int' 6 | int[] y = new int[9]; | ^~ a.cc:6:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:6:8: error: empty structured binding declaration a.cc:6:11: error: expected initializer before 'y' 6 | int[] y = new int[9]; | ^ a.cc:10:8: error: 'System' was not declared in this scope 10 | System.out.println{x[i]+"x"+y[j]+"="+x[i]*y[j]}; | ^~~~~~
s287405779
p00000
C++
package volume0; public class Main{ public static void main(String[] args) { for(int i=1;i<10;i++){ for(int j=1; j<10;j++){ System.out.println(i+"x"+j+"="+i*j); } } } }
a.cc:1:1: error: 'package' does not name a type 1 | package volume0; | ^~~~~~~ a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main{ | ^~~~~~
s310479693
p00000
C++
public class Main{ public static void main(String[] args) { for(int i=1;i<10;i++){ for(int j=1; j<10;j++){ System.out.println(i+"x"+j+"="+i*j); } } } }
a.cc:1:1: error: expected unqualified-id before 'public' 1 | public class Main{ | ^~~~~~
s423254136
p00000
C++
using System; namespace mul { class Program { static void Main(string[] args) { for (int cntX = 1; cntX < 10; cntX++) { for (int cntY = 1; cntY < 10; cntY++) Console.WriteLine("{0}x{1}={2}", cntX, cntY, cntX * cntY); } } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:7:26: error: 'string' has not been declared 7 | static void Main(string[] args) | ^~~~~~ a.cc:7:35: error: expected ',' or '...' before 'args' 7 | static void Main(string[] args) | ^~~~ a.cc:15:6: error: expected ';' after class definition 15 | } | ^ | ; a.cc: In static member function 'static void mul::Program::Main(int*)': a.cc:12:21: error: 'Console' was not declared in this scope 12 | Console.WriteLine("{0}x{1}={2}", cntX, cntY, cntX * cntY); | ^~~~~~~
s937742131
p00000
C++
namespace mul { class Program { static void Main(string[] args) { for (int cntX = 1; cntX < 10; cntX++) { for (int cntY = 1; cntY < 10; cntY++) System.Console.WriteLine("{0}x{1}={2}", cntX, cntY, cntX * cntY); } } } }
a.cc:5:26: error: 'string' has not been declared 5 | static void Main(string[] args) | ^~~~~~ a.cc:5:35: error: expected ',' or '...' before 'args' 5 | static void Main(string[] args) | ^~~~ a.cc:13:6: error: expected ';' after class definition 13 | } | ^ | ; a.cc: In static member function 'static void mul::Program::Main(int*)': a.cc:10:21: error: 'System' was not declared in this scope 10 | System.Console.WriteLine("{0}x{1}={2}", cntX, cntY, cntX * cntY); | ^~~~~~
s467203146
p00000
C++
#incldue <stdio.h> int main(void) { int i, j; for (i = 1; i <= 9; i++){ for (j = 1; j <= 9; j++) printf("%dx%d=%d\n", i, j, i * j); } return(0); }
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include? 1 | #incldue <stdio.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:7:34: error: 'printf' was not declared in this scope 7 | for (j = 1; j <= 9; j++) printf("%dx%d=%d\n", i, j, i * j); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | #incldue <stdio.h>
s113644333
p00000
C++
#include <iostream> #include <assert.h> #include <list> #include <vector> #include <cmath> void ff( std::list< std::vector< std::string > > & c ) { // ??¢??? std::for_each( c.begin(), c.end(), []( std::vector< std::string> & elem ) { } ) ; // ?°???? std::for_each( c.begin(), c.end(), []( auto & elem ) { } ) ; } template < typename Printer > void f( Printer && p ) { p( 123 ) ; p( 1.23 ) ; p( "123" ) ; } void operator delete( void *, std::size_t ) noexcept ; void operator delete[]( void *, std::size_t ) noexcept ; template < typename T > constexpr T sqrt( T s ) { T x = s / 2.0 ; // ?????????????????? T prev = 0.0 ; while ( x != prev ) { // ???????????????????????????????????§????????????2?????°????????? prev = x ; x = (x + s / x ) / 2.0 ; // ????????????2 } return x ; } // 1927426???1927428???WA???????????????????????????????????§??? auto dodo() { assert(std::abs(sqrt(2.0) - std::sqrt(2)) < 1e-9); f( []( auto && elem ){ assert(1 && elem) ; } ) ; auto x = 0b101; assert(x == 5); auto k = 1.2'3'4'5'6'789; assert(![ x = 0 ](){ return x ; }()) ; auto f = []( auto x ) { return x ; } ; f( 0 ) ; f( 0.0 ) ; f( 'A' ) ; f( "hello" ) ; int i = 10; decltype(auto) a = i ; assert(1.23456789==k); for(auto i=0; i<9; i++) for(auto j=0; j<9; j++) std::cout << i+1 << 'x' << j+1 << '=' << (i+1)*(j+1) << std::endl; } int main() { dodo(); return 0; }
a.cc: In function 'void ff(std::__cxx11::list<std::vector<std::__cxx11::basic_string<char> > >&)': a.cc:10:10: error: 'for_each' is not a member of 'std' 10 | std::for_each( c.begin(), c.end(), | ^~~~~~~~ a.cc:16:10: error: 'for_each' is not a member of 'std' 16 | std::for_each( c.begin(), c.end(), | ^~~~~~~~
s066549872
p00000
C++
#include<iostream> using namespace std; int main(){ for (int i =1; i < 10; i++){ for (int i2 = 1; i2 < 10; i2++{ cout << i << "x" << i2 << "=" << i * i2; } } return 0; }
a.cc: In function 'int main()': a.cc:7:32: error: expected ')' before '{' token 7 | for (int i2 = 1; i2 < 10; i2++{ | ~ ^ | )
s790639279
p00000
C++
using System; class AOJ{ static void Main(string[] args) { for(int i=1; i<=9; i++){ for(int j=1; j<=9; j++) Console.WriteLine(i+"x"+j+"="+i*j); } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:4:20: error: 'string' has not been declared 4 | static void Main(string[] args) | ^~~~~~ a.cc:4:29: error: expected ',' or '...' before 'args' 4 | static void Main(string[] args) | ^~~~ a.cc:11:2: error: expected ';' after class definition 11 | } | ^ | ; a.cc: In static member function 'static void AOJ::Main(int*)': a.cc:8:9: error: 'Console' was not declared in this scope 8 | Console.WriteLine(i+"x"+j+"="+i*j); | ^~~~~~~ a.cc:8:34: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 8 | Console.WriteLine(i+"x"+j+"="+i*j); | ~~~~~~~^~~~ | | | | | const char [2] | const char*
s861586807
p00000
C++
!
a.cc:1:1: error: expected unqualified-id before '!' token 1 | ! | ^
s011880254
p00000
C++
!
a.cc:1:1: error: expected unqualified-id before '!' token 1 | ! | ^
s256650325
p00000
C++
for i in 1...9for j in 1...9 print i,"x",j,"=",i*j,"\n"
a.cc:1:10: error: too many decimal points in number 1 | for i in 1...9for j in 1...9 print i,"x",j,"=",i*j,"\n" | ^~~~~~~~ a.cc:1:24: error: too many decimal points in number 1 | for i in 1...9for j in 1...9 print i,"x",j,"=",i*j,"\n" | ^~~~~ a.cc:1:1: error: expected unqualified-id before 'for' 1 | for i in 1...9for j in 1...9 print i,"x",j,"=",i*j,"\n" | ^~~
s155524884
p00000
C++
for i in 1..9for j in 1..9 print i,"x",j,"=",i*j,"\n"end end
a.cc:1:10: error: too many decimal points in number 1 | for i in 1..9for j in 1..9 print i,"x",j,"=",i*j,"\n"end end | ^~~~~~~ a.cc:1:23: error: too many decimal points in number 1 | for i in 1..9for j in 1..9 print i,"x",j,"=",i*j,"\n"end end | ^~~~ a.cc:1:1: error: expected unqualified-id before 'for' 1 | for i in 1..9for j in 1..9 print i,"x",j,"=",i*j,"\n"end end | ^~~
s506910499
p00000
C++
using System; class Program { static void Main() { int i, j; for (i = 1; i < 10; i++){ for (j = 1; j < 10; j++){ Console.WriteLine(i+"x"+j+"="+i*j); } } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:14:2: error: expected ';' after class definition 14 | } | ^ | ; a.cc: In static member function 'static void Program::Main()': a.cc:10:9: error: 'Console' was not declared in this scope 10 | Console.WriteLine(i+"x"+j+"="+i*j); | ^~~~~~~ a.cc:10:34: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 10 | Console.WriteLine(i+"x"+j+"="+i*j); | ~~~~~~~^~~~ | | | | | const char [2] | const char*
s852937995
p00000
C++
#include <cstdio> #include <iostream> using namespace std; int main(void) { int i, j; for (i = 1; i <= 9; i++; ) { for (j = 1; j <=9; j++) { printf("%dx%d=%d\n", i, j, i*j); } } return 0; }
a.cc: In function 'int main()': a.cc:9:28: error: expected ')' before ';' token 9 | for (i = 1; i <= 9; i++; ) { | ~ ^ | ) a.cc:9:30: error: expected primary-expression before ')' token 9 | for (i = 1; i <= 9; i++; ) { | ^
s733554712
p00000
C++
#include<stdio.h> int main(void) { int i,j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ print("%dx%d=%d",i,j,i*j); } } return 0; }
a.cc: In function 'int main()': a.cc:7:25: error: 'print' was not declared in this scope; did you mean 'printf'? 7 | print("%dx%d=%d",i,j,i*j); | ^~~~~ | printf
s131279699
p00000
C++
include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%d×%d=%d\n",i,j,i*j); } } return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<stdio.h> | ^~~~~~~
s264639546
p00000
C++
include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%d×%d=%d\n",i,j,i*j); } } return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<stdio.h> | ^~~~~~~
s971142307
p00000
C++
using System; namespace _0000_QQ { public static class Program { public static void Main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine("{0}x{1}={2}", i, j, i * j); } } } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:5:9: error: expected unqualified-id before 'public' 5 | public static class Program { | ^~~~~~
s987724805
p00000
C++
class Main{ public static void main(String[] a){ int d; for(int x = 0,x < 10,x++){ for(int y = 0,y < 10,y++){ d = x * y; System.out.print(x + "x" + y = d); } } } }
a.cc:2:11: error: expected ':' before 'static' 2 | public static void main(String[] a){ | ^~~~~~~ | : a.cc:2:29: error: 'String' has not been declared 2 | public static void main(String[] a){ | ^~~~~~ a.cc:2:38: error: expected ',' or '...' before 'a' 2 | 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:4:17: error: expected ';' before '<' token 4 | for(int x = 0,x < 10,x++){ | ^ a.cc:4:17: error: expected primary-expression before '<' token a.cc:4:25: error: expected ';' before ')' token 4 | for(int x = 0,x < 10,x++){ | ^ a.cc:5:17: error: expected ';' before '<' token 5 | for(int y = 0,y < 10,y++){ | ^ a.cc:5:17: error: expected primary-expression before '<' token a.cc:5:25: error: expected ';' before ')' token 5 | for(int y = 0,y < 10,y++){ | ^ a.cc:7:1: error: 'System' was not declared in this scope 7 | System.out.print(x + "x" + y = d); | ^~~~~~ a.cc:7:26: error: lvalue required as left operand of assignment 7 | System.out.print(x + "x" + y = d); | ~~~~~~~~^~~
s110910675
p00000
C++
class Main{ public static void main(String[] a){ for(int i=1;i<=9;i++){ for(int j=1;j<=9;j++){ System.out.println(i + "x" + j + "=" + (i*j)+ \\n); } } } }
a.cc:5:63: error: stray '\' in program 5 | System.out.println(i + "x" + j + "=" + (i*j)+ \\n); | ^ a.cc:5:64: error: stray '\' in program 5 | System.out.println(i + "x" + j + "=" + (i*j)+ \\n); | ^ 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)+ \\n); | ^~~~~~ a.cc:5:48: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 5 | System.out.println(i + "x" + j + "=" + (i*j)+ \\n); | ~~~~~~~~~~~ ^ ~~~ | | | | | const char [2] | const char* a.cc:5:65: error: 'n' was not declared in this scope 5 | System.out.println(i + "x" + j + "=" + (i*j)+ \\n); | ^
s707175314
p00000
C++
#include<iostream> using namespace std; int main(){ for(i = 1; i < 10; i++) for(j = 1; j < 10; i++) cout << i "x" j "=" i*j << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:21: error: 'i' was not declared in this scope 5 | for(i = 1; i < 10; i++) | ^ a.cc:6:29: error: 'j' was not declared in this scope 6 | for(j = 1; j < 10; i++) | ^
s364322549
p00000
C++
#include<iostream> using namespace std; int main(){ int i; int j; for(i = 1; i < 10; i++){ for(j = 1; j < 10; i++){ cout << i "x" j "=" i*j << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:9:26: error: expected ';' before string constant 9 | cout << i "x" j "=" i*j << endl; | ^~~~ | ;
s442388679
p00000
C++
#include<iostream> using namespace std; int main(){ QQ(9,9); return 0; } void QQ(int i,int j){ if(1 <= i){ QQ(i - 1, j)}; if(1 <= j){ QQ(i, j - 1); cout << i << "x" << j << "=" << i*j << endl; }
a.cc: In function 'int main()': a.cc:5:17: error: 'QQ' was not declared in this scope 5 | QQ(9,9); | ^~ a.cc: In function 'void QQ(int, int)': a.cc:10:33: error: expected ';' before '}' token 10 | if(1 <= i){ QQ(i - 1, j)}; | ^ | ; a.cc:13:2: error: expected '}' at end of input 13 | } | ^ a.cc:9:21: note: to match this '{' 9 | void QQ(int i,int j){ | ^
s768845350
p00000
C++
#include<iostream> using namespace std; void QQ(int i,int j){ if(1 <= i){ QQ(i - 1, j)}; if(1 <= j){ QQ(i, j - 1)}; cout << i << "x" << j << "=" << i*j << endl; } int main(){ QQ(9,9); return 0; }
a.cc: In function 'void QQ(int, int)': a.cc:5:33: error: expected ';' before '}' token 5 | if(1 <= i){ QQ(i - 1, j)}; | ^ | ; a.cc:6:33: error: expected ';' before '}' token 6 | if(1 <= j){ QQ(i, j - 1)}; | ^ | ;
s662290821
p00000
C++
#include<iostream> using namespace std; int main(){ ??????int i, j; for(i = 1; i <=9; i++){ for(j = 1; j <=9; j++){ cout << i << "x" << j << "=" << i*j << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:5:1: error: expected primary-expression before '?' token 5 | ??????int i, j; | ^ a.cc:5:2: error: expected primary-expression before '?' token 5 | ??????int i, j; | ^ a.cc:5:3: error: expected primary-expression before '?' token 5 | ??????int i, j; | ^ a.cc:5:4: error: expected primary-expression before '?' token 5 | ??????int i, j; | ^ a.cc:5:5: error: expected primary-expression before '?' token 5 | ??????int i, j; | ^ a.cc:5:6: error: expected primary-expression before '?' token 5 | ??????int i, j; | ^ a.cc:5:7: error: expected primary-expression before 'int' 5 | ??????int i, j; | ^~~ a.cc:5:7: error: expected ':' before 'int' 5 | ??????int i, j; | ^~~ | : a.cc:5:7: error: expected primary-expression before 'int' 5 | ??????int i, j; | ^~~ a.cc:5:7: error: expected ':' before 'int' 5 | ??????int i, j; | ^~~ | : a.cc:5:7: error: expected primary-expression before 'int' 5 | ??????int i, j; | ^~~ a.cc:5:7: error: expected ':' before 'int' 5 | ??????int i, j; | ^~~ | : a.cc:5:7: error: expected primary-expression before 'int' 5 | ??????int i, j; | ^~~ a.cc:5:7: error: expected ':' before 'int' 5 | ??????int i, j; | ^~~ | : a.cc:5:7: error: expected primary-expression before 'int' 5 | ??????int i, j; | ^~~ a.cc:5:7: error: expected ':' before 'int' 5 | ??????int i, j; | ^~~ | : a.cc:5:7: error: expected primary-expression before 'int' 5 | ??????int i, j; | ^~~ a.cc:5:7: error: expected ':' before 'int' 5 | ??????int i, j; | ^~~ | : a.cc:5:7: error: expected primary-expression before 'int' 5 | ??????int i, j; | ^~~ a.cc:6:9: error: 'i' was not declared in this scope 6 | for(i = 1; i <=9; i++){ | ^ a.cc:7:13: error: 'j' was not declared in this scope 7 | for(j = 1; j <=9; j++){ | ^
s751797816
p00000
C++
#include <stdio.h> int main(void) { int i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%d ",ixj); } printf("\n"); } return 0; }
a.cc: In function 'int main()': a.cc:11:38: error: 'ixj' was not declared in this scope 11 | printf("%d ",ixj); | ^~~
s267887332
p00000
C++
#include <stdio.h> int main(void) { int i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%d ",i???j); } printf("\n"); } return 0; }
a.cc: In function 'int main()': a.cc:11:40: error: expected primary-expression before '?' token 11 | printf("%d ",i???j); | ^ a.cc:11:41: error: expected primary-expression before '?' token 11 | printf("%d ",i???j); | ^ a.cc:11:43: error: expected ':' before ')' token 11 | printf("%d ",i???j); | ^ | : a.cc:11:43: error: expected primary-expression before ')' token a.cc:11:43: error: expected ':' before ')' token 11 | printf("%d ",i???j); | ^ | : a.cc:11:43: error: expected primary-expression before ')' token a.cc:11:43: error: expected ':' before ')' token 11 | printf("%d ",i???j); | ^ | : a.cc:11:43: error: expected primary-expression before ')' token
s792042244
p00000
C++
#include <stdio.h> int main(void) { int i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%d ",i???j); } printf("\n"); } return 0; }
a.cc: In function 'int main()': a.cc:11:40: error: expected primary-expression before '?' token 11 | printf("%d ",i???j); | ^ a.cc:11:41: error: expected primary-expression before '?' token 11 | printf("%d ",i???j); | ^ a.cc:11:43: error: expected ':' before ')' token 11 | printf("%d ",i???j); | ^ | : a.cc:11:43: error: expected primary-expression before ')' token a.cc:11:43: error: expected ':' before ')' token 11 | printf("%d ",i???j); | ^ | : a.cc:11:43: error: expected primary-expression before ')' token a.cc:11:43: error: expected ':' before ')' token 11 | printf("%d ",i???j); | ^ | : a.cc:11:43: error: expected primary-expression before ')' token
s748855771
p00000
C++
#include<iostream> int main(){ for(int j=1;j<10;j++){ for(int i=1;i<10;i++){ cout<<j<<"x"<<i<<"="<<i*j<<endl; } } return 0; }
a.cc: In function 'int main()': a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 7 | cout<<j<<"x"<<i<<"="<<i*j<<endl; | ^~~~ | std::cout In file included from a.cc:1: /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:7:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 7 | cout<<j<<"x"<<i<<"="<<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) | ^~~~
s971252255
p00000
C++
#include <stdio.h> int main(void) { int a, b; for(a=1;a<10;a++){ for (b=1;b<10;b++) { c= a * b; printf("%dx%d=%d\n", a, b, c); } } return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'c' was not declared in this scope 6 | c= a * b; | ^
s399708442
p00000
C++
#include<stdio.h> int main(void){ int a,b,c; for(a=1;a>10;a++){ for(b=1;b>10;a++){ c=a*b; printf("%dx%d=%d\n",a,b,c); { } return 0; }
a.cc: In function 'int main()': a.cc:11:2: error: expected '}' at end of input 11 | } | ^ a.cc:4:26: note: to match this '{' 4 | for(a=1;a>10;a++){ | ^ a.cc:11:2: error: expected '}' at end of input 11 | } | ^ a.cc:2:15: note: to match this '{' 2 | int main(void){ | ^
s458445106
p00000
C++
asdf
a.cc:1:1: error: 'asdf' does not name a type 1 | asdf | ^~~~
s260145426
p00000
C++
#include <stdio.h> int main(void) { int i,j; for(i=1;i<=9;i++) for(j=1;j<=9;j++) printf("%dx%d=%d\n",i,j,i*j) return 0; }
a.cc: In function 'int main()': a.cc:8:29: error: expected ';' before 'return' 8 | printf("%dx%d=%d\n",i,j,i*j) | ^ | ; 9 | 10 | return 0; | ~~~~~~
s717526947
p00000
C++
using System; //using System.Collections.Generic; //using System.Linq; //using System.Text; //using System.Threading.Tasks; class Program { static void Main() { for(int i = 1; i < 10 ; ++i) { for(int j = 1; j < 10 ; ++j) { Console.WriteLine("{0}x{1}={2}",i,j,i*j); } } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:19:2: error: expected ';' after class definition 19 | } | ^ | ; a.cc: In static member function 'static void Program::Main()': a.cc:15:17: error: 'Console' was not declared in this scope 15 | Console.WriteLine("{0}x{1}={2}",i,j,i*j); | ^~~~~~~
s636501972
p00000
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main() { for(int i = 1; i < 10 ; ++i) { for(int j = 1; j < 10 ; ++j) { Console.WriteLine("{0}x{1}={2}",i,j,i*j); } } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.Linq; | ^~~~~~ a.cc:4:7: error: expected nested-name-specifier before 'System' 4 | using System.Text; | ^~~~~~ a.cc:5:7: error: expected nested-name-specifier before 'System' 5 | using System.Threading.Tasks; | ^~~~~~ a.cc:19:2: error: expected ';' after class definition 19 | } | ^ | ; a.cc: In static member function 'static void Program::Main()': a.cc:15:17: error: 'Console' was not declared in this scope 15 | Console.WriteLine("{0}x{1}={2}",i,j,i*j); | ^~~~~~~
s904438442
p00000
C++
#include<iostream> int main(){ int i,j; for(i=0;i<9;i++) for(j=0;j<9;j++) cout<<(i+1)<<"??"<<(j+1)<<"="<<(i+1)*(j+1)<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | cout<<(i+1)<<"??"<<(j+1)<<"="<<(i+1)*(j+1)<<endl; | ^~~~ | std::cout In file included from a.cc:1: /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:8:57: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | cout<<(i+1)<<"??"<<(j+1)<<"="<<(i+1)*(j+1)<<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) | ^~~~
s729922449
p00000
C++
#include<iostream> int main(){ int i,j; for(i=0;i<9;i++) for(j=0;j<9;j++) std::cout<<(i+1)<<"??"<<(j+1)<<"="<<(i+1)*(j+1)<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:62: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | std::cout<<(i+1)<<"??"<<(j+1)<<"="<<(i+1)*(j+1)<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s984136391
p00000
C++
#include<iostream> using namespace std; int main() { int m1, m2; m1 = 1; m2 = 1; for (m1; m1 < 10; m1++) { for (m2; m2 < 10; m2++) { cout << m1 << "x" << m2 << "=" << m1*m2 << endl; } m2 = 1 } return 0; }
a.cc: In function 'int main()': a.cc:12:7: error: expected ';' before '}' token 12 | m2 = 1 | ^ | ; 13 | } | ~
s653213013
p00000
C++
#include?? <cstdio> int main() { for(int i=1;i<=9;i++) for(int j=1;j<=9;j++) printf("%dx%d=%d\n",i,j,i*j); }
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include?? <cstdio> | ^ a.cc: In function 'int main()': a.cc:6:1: error: 'printf' was not declared in this scope 6 | printf("%dx%d=%d\n",i,j,i*j); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | #include?? <cstdio>
s840789026
p00000
C++
#include<iostream> using namespace std; ?? int main() { ????????for(int i = 1 ; i <= 9 ; i++){ ????????????????for(int j = 1 ; j <= 9 ; j++){ ????????????????????????printf("%dx%d=%d\n",i,j,i*j); ????????????????} ????????} ????????return 0; }
a.cc:3:1: error: expected unqualified-id before '?' token 3 | ?? | ^
s949616427
p00000
C++
#include<iostream> using namespace std; ?? int main(){ ????????for(int i = 1; i <= 9; i++) ????????{ ????????????????for(int j = 1; j <= 9; j++) ????????????????{ ????????????????????????cout << i << "x" << j << "=" << i*j << endl; ????????????????} ????????} ????????return 0; }
a.cc:3:1: error: expected unqualified-id before '?' token 3 | ?? | ^
s625618220
p00000
C++
int main(){ int i,j; for(i = 1; i < 10; i++) for(j = 1; j < 10; j++) printf("%dx%d=%d\n",i,j,i*j); return 0; }
a.cc: In function 'int main()': a.cc:5:13: error: 'printf' was not declared in this scope 5 | printf("%dx%d=%d\n",i,j,i*j); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | int main(){
s153796832
p00000
C++
class Main{ public static void main(String[] a){ for(int i=1;i<9;i++){ for(int x=1;x<9;x++){ System.out.println(i+"x"+x+"="+i*x); } } } }
a.cc:2:11: error: expected ':' before 'static' 2 | public static void main(String[] a){ | ^~~~~~~ | : a.cc:2:29: error: 'String' has not been declared 2 | public static void main(String[] a){ | ^~~~~~ a.cc:2:38: error: expected ',' or '...' before 'a' 2 | public static void main(String[] a){ | ^ a.cc:13:2: error: expected ';' after class definition 13 | } | ^ | ; a.cc: In static member function 'static void Main::main(int*)': a.cc:6:9: error: 'System' was not declared in this scope 6 | System.out.println(i+"x"+x+"="+i*x); | ^~~~~~ a.cc:6:35: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 6 | System.out.println(i+"x"+x+"="+i*x); | ~~~~~~~^~~~ | | | | | const char [2] | const char*
s889647060
p00000
C++
class Main { public static void main(String[] args) { for (int i = 1; i <= 9; i ++) { for (int j = 1; j <= 9; j ++) { System.out.println(i+"x"+j+"="+i*j); } } } }
a.cc:3:11: error: expected ':' before 'static' 3 | public static void main(String[] args) | ^~~~~~~ | : a.cc:3:29: error: 'String' has not been declared 3 | public static void main(String[] args) | ^~~~~~ a.cc:3:38: error: expected ',' or '...' before 'args' 3 | public static void main(String[] args) | ^~~~ a.cc:13:2: error: expected ';' after class definition 13 | } | ^ | ; a.cc: In static member function 'static void Main::main(int*)': a.cc:9:17: error: 'System' was not declared in this scope 9 | System.out.println(i+"x"+j+"="+i*j); | ^~~~~~ a.cc:9:43: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 9 | System.out.println(i+"x"+j+"="+i*j); | ~~~~~~~^~~~ | | | | | const char [2] | const char*
s252863843
p00000
C++
#include<iostream> using namespace std; int main(){ for (int i=0; i<=9; ++i){ for (int j=0; j<=9; ++j){ cout << i << "x" << j << "=" << i*j endl; } } return 0; }
a.cc: In function 'int main()': a.cc:7:42: error: expected ';' before 'endl' 7 | cout << i << "x" << j << "=" << i*j endl; | ^~~~~ | ;
s580287533
p00000
C++
#include<stdio.h> int main(){ int i, j; for(i=1; i<=9; i++) for(j=1;j<=9;j++) cout << i << "x" << j << "=" << i * j << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:13: error: 'cout' was not declared in this scope 7 | cout << i << "x" << j << "=" << i * j << endl; | ^~~~ a.cc:7:54: error: 'endl' was not declared in this scope 7 | cout << i << "x" << j << "=" << i * j << endl; | ^~~~
s868065942
p00000
C++
#include<iostream> using namespace std; int main(){ for(i=1;i<10;i++){ for(j=1;j<10;i++){ std::cout << i << 'x' << j << '=' i*j <<std::endl; return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'i' was not declared in this scope 5 | for(i=1;i<10;i++){ | ^ a.cc:6:6: error: 'j' was not declared in this scope 6 | for(j=1;j<10;i++){ | ^ a.cc:9:2: error: expected '}' at end of input 9 | } | ^ a.cc:5:18: note: to match this '{' 5 | for(i=1;i<10;i++){ | ^ a.cc:9:2: error: expected '}' at end of input 9 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s180587434
p00000
C++
#include<iostream> using namespace std; int main(){ for(int i=1;i<10;i++){ for(int j=1;j<10;i++){ std::cout << i << 'x' << j << '=' i*j <<std::endl; return 0; }
a.cc: In function 'int main()': a.cc:7:34: error: expected ';' before 'i' 7 | std::cout << i << 'x' << j << '=' i*j <<std::endl; | ^~ | ; a.cc:9:2: error: expected '}' at end of input 9 | } | ^ a.cc:5:22: note: to match this '{' 5 | for(int i=1;i<10;i++){ | ^ a.cc:9:2: error: expected '}' at end of input 9 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s617665562
p00000
C++
#include<iostream> using namespace std; int main(){ for(int i=1;i<10;i++){ for(int j=1;j<10;i++){ std::cout << i << 'x' << j << '=' i*j <<std::endl; } } return 0; }
a.cc: In function 'int main()': a.cc:7:34: error: expected ';' before 'i' 7 | std::cout << i << 'x' << j << '=' i*j <<std::endl; | ^~ | ;
s236439699
p00000
C++
int main() { int a, b; for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { cout << i << "x" << j << "=" << i*j << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:10:25: error: 'cout' was not declared in this scope 10 | cout << i << "x" << j << "=" << i*j << endl; | ^~~~ a.cc:10:64: error: 'endl' was not declared in this scope 10 | cout << i << "x" << j << "=" << i*j << endl; | ^~~~
s088646372
p00000
C++
int main() { int a, b; for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { cout << i << "x" << j << "=" << i*j << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:10:25: error: 'cout' was not declared in this scope 10 | cout << i << "x" << j << "=" << i*j << endl; | ^~~~ a.cc:10:64: error: 'endl' was not declared in this scope 10 | cout << i << "x" << j << "=" << i*j << endl; | ^~~~
s912135670
p00000
C++
import itertools for x, y in itertools.product(range(1, 10), range(1, 10)): print("%dx%d=%d" % (x, y, x * y))
a.cc:1:1: error: 'import' does not name a type 1 | import itertools | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
s960735303
p00000
C++
int main() { int a, b; for (a = 1; a <= 9; a++) { for (b = 1; b <= 9;b++) { cout << a << "x" << b << "=" << a*b << "\n"; } } return 0; }
a.cc: In function 'int main()': a.cc:5:25: error: 'cout' was not declared in this scope 5 | cout << a << "x" << b << "=" << a*b << "\n"; | ^~~~
s401920384
p00000
C++
#include<iostream> int main(){ for(int i=1; i<=9; i++){ for(int j=1; j<=9; j++){ std::cout << i << "x" << j << "=" << i*j << std::endl } } return 0; }
a.cc: In function 'int main()': a.cc:6:60: error: expected ';' before '}' token 6 | std::cout << i << "x" << j << "=" << i*j << std::endl | ^ | ; 7 | } | ~
s526433550
p00000
C++
#include<stdio.h> int main(void) { for(i=1,i<=10,i++) { for(j=1,i<=10,i++) { printf("%d",i*j); } } return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'i' was not declared in this scope 5 | for(i=1,i<=10,i++) | ^ a.cc:13:5: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:11:2: error: expected ';' before 'return' 11 | } | ^ | ; 12 | 13 | return 0; | ~~~~~~ a.cc:13:5: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:11:2: error: expected ')' before 'return' 11 | } | ^ | ) 12 | 13 | return 0; | ~~~~~~ a.cc:5:4: note: to match this '(' 5 | for(i=1,i<=10,i++) | ^
s010006860
p00000
C++
#include<stdio.h> int main(void) { for(i=1,i<=9,i++) for(j=1,i<=9,i++) printf("%dx%d=%d\n",i,j,i*j); } return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'i' was not declared in this scope 5 | for(i=1,i<=9,i++) | ^ a.cc:8:1: error: expected primary-expression before '}' token 8 | } | ^ a.cc:7:30: error: expected ';' before '}' token 7 | printf("%dx%d=%d\n",i,j,i*j); | ^ | ; 8 | } | ~ a.cc:8:1: error: expected primary-expression before '}' token 8 | } | ^ a.cc:7:30: error: expected ')' before '}' token 7 | printf("%dx%d=%d\n",i,j,i*j); | ^ | ) 8 | } | ~ a.cc:5:4: note: to match this '(' 5 | for(i=1,i<=9,i++) | ^ a.cc:8:1: error: expected primary-expression before '}' token 8 | } | ^ a.cc: At global scope: a.cc:10:5: error: expected unqualified-id before 'return' 10 | return 0; | ^~~~~~ a.cc:11:1: error: expected declaration before '}' token 11 | } | ^
s571215322
p00000
C++
#include<stdio.h> int main(void) { int i,j; for(i=1,i<=9,i++) { for(j=1,j<=9,j++) { printf("%dx%d=%d",i,j,i*j) } } return 0; }
a.cc: In function 'int main()': a.cc:6:25: error: expected ';' before ')' token 6 | for(i=1,i<=9,i++) | ^ | ; a.cc:13:9: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:10: error: expected ';' 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:6:12: note: to match this '(' 6 | for(i=1,i<=9,i++) | ^
s589569581
p00000
C++
#include<stdio.h> int main(){ for(num1=0;num1<10;num1++){ for(num2=0;num2<10;num2++){ printf("%dx%d=%d",num1,num2,num1*num2) } } return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: 'num1' was not declared in this scope 4 | for(num1=0;num1<10;num1++){ | ^~~~ a.cc:5:12: error: 'num2' was not declared in this scope 5 | for(num2=0;num2<10;num2++){ | ^~~~
s906752016
p00000
C++
#include<stdio.h> main() { for(int i=1;i<=9;i++) for(int j=1;j<=9;j++) printf("%dx%d=%d",i,j,i*j): }
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | main() { | ^~~~ a.cc: In function 'int main()': a.cc:6:35: error: expected ';' before ':' token 6 | printf("%dx%d=%d",i,j,i*j): | ^ | ;
s416511616
p00000
C++
main(a,b){for(;a<10;a++){for(b=1;b<10;){printf("%dx%d=%d\n",a,b++,a*b);}}exit(0);}
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a,b){for(;a<10;a++){for(b=1;b<10;){printf("%dx%d=%d\n",a,b++,a*b);}}exit(0);} | ^
s915115765
p00000
C++
#include<iostream> using namespace std; int main(){ for(int i=1;i<=9;i++){ for(int i=j;j<=9;j++){ if(i>=j){ cout << i << "x" << j << "=" << i*j << endl; } else { break; } } } return 0; }
a.cc: In function 'int main()': a.cc:6:11: error: 'j' was not declared in this scope 6 | for(int i=j;j<=9;j++){ | ^
s461296495
p00000
C++
#include<iostream> using namespace std; int main(){ for(int i=1;i<=9;i++){ for(int i=j;j<=9;j++){ cout << i << "x" << j << "=" << i*j << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:6:11: error: 'j' was not declared in this scope 6 | for(int i=j;j<=9;j++){ | ^
s684310801
p00000
C++
main() { for (int i = 1; i <= 9; i++)for (int j = 1; j <= 9; j++)printf("%dx%d=%d\n", i, j, i*j); }
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 1 | main() { | ^~~~ a.cc: In function 'int main()': a.cc:2:65: error: 'printf' was not declared in this scope 2 | for (int i = 1; i <= 9; i++)for (int j = 1; j <= 9; j++)printf("%dx%d=%d\n", i, j, i*j); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | main() {
s261376311
p00000
C++
#include<stdio.h> i,j;main(){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);}
a.cc:2:1: error: 'i' does not name a type 2 | i,j;main(){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);} | ^ a.cc:2:5: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | i,j;main(){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);} | ^~~~ a.cc: In function 'int main()': a.cc:2:16: error: 'i' was not declared in this scope 2 | i,j;main(){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);} | ^ a.cc:2:33: error: 'j' was not declared in this scope 2 | i,j;main(){for(i=1;i<=9;i++)for(j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);} | ^
s297124519
p00000
C++
#include<stdio.h> using namespace std; int main() { for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { printf("%dx%d=%d\n", ???????????????, ???????????????, ???????????????*???????????????); } } }
a.cc:7:109: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] 7 | printf("%dx%d=%d\n", ???????????????, ???????????????, ???????????????*???????????????); a.cc: In function 'int main()': a.cc:5:18: error: expected unqualified-id before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:17: error: expected ';' before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^~ | ; a.cc:5:18: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:19: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:20: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:21: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:22: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:23: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:24: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:25: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:26: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:27: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:28: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:29: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:30: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:31: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:32: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:34: error: expected primary-expression before '=' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:37: error: expected ':' before ';' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ | : a.cc:5:37: error: expected primary-expression before ';' token a.cc:5:39: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:40: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:41: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:42: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:43: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:44: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:45: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:46: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:47: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:48: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:49: error: expected primary-expression before '?' token 5 | for (int ??????????????? = 1; ??????????????? <= 9; ???????????????++) { | ^ a.cc:5:50: error: exp
s060608316
p00000
C++
object Main { def main(args:Array[String]):Unit=for(i <- 1 to 9 ;j <- 1 to 9)println(i+"x"+j+"="+i*j) }
a.cc:1:1: error: 'object' does not name a type 1 | object Main { | ^~~~~~
s679034914
p00000
C++
#include <iostream> #include <algorithm> #include <string> #include <vector> #include "boost/format.hpp" using namespace std; int main() { vector<string> sv; for (int i = 1; i <= 9; i++){ for (int j = 1; j <= 9; j++){ string temp = (boost::format("%1%%2%%3%%4%%5%%6%") % i % '*' % j % '=' % (i*j) % '\n').str(); sv.push_back(temp); } } for_each(sv.begin(), sv.end() , [](string tmp){ cout << tmp; } ); getchar(); }
a.cc:5:10: fatal error: boost/format.hpp: No such file or directory 5 | #include "boost/format.hpp" | ^~~~~~~~~~~~~~~~~~ compilation terminated.
s532164574
p00000
C++
#include<iostream> using namespace std; int main(){ for(int i=1;i<=9;i++){ for(int j=1;j<=9;j++){ cout<<i<<"*"<<j<<"="i*j<<endl; } } }
a.cc: In function 'int main()': a.cc:6:18: error: unable to find string literal operator 'operator""i' with 'const char [2]', 'long unsigned int' arguments 6 | cout<<i<<"*"<<j<<"="i*j<<endl; | ^~~~
s158113067
p00000
C++
#include<stdio.h> int main(){ for(int ???=1;???<=9;???++) for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); }
a.cc:3:10: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs] 3 | for(int ???=1;???<=9;???++) a.cc:3:16: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs] a.cc:4:10: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs] 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); a.cc:4:16: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs] a.cc:4:61: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] a.cc: In function 'int main()': a.cc:3:9: error: expected unqualified-id before '?' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:8: error: expected ';' before '?' token 3 | for(int ???=1;???<=9;???++) | ^~ | ; a.cc:3:9: error: expected primary-expression before '?' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:10: error: expected primary-expression before '?' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:11: error: expected primary-expression before '?' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:12: error: expected primary-expression before '=' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:14: error: expected ':' before ';' token 3 | for(int ???=1;???<=9;???++) | ^ | : a.cc:3:14: error: expected primary-expression before ';' token a.cc:3:14: error: expected ':' before ';' token 3 | for(int ???=1;???<=9;???++) | ^ | : a.cc:3:14: error: expected primary-expression before ';' token a.cc:3:14: error: expected ':' before ';' token 3 | for(int ???=1;???<=9;???++) | ^ | : a.cc:3:14: error: expected primary-expression before ';' token a.cc:3:15: error: expected primary-expression before '?' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:16: error: expected primary-expression before '?' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:17: error: expected primary-expression before '?' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:18: error: expected primary-expression before '<=' token 3 | for(int ???=1;???<=9;???++) | ^~ a.cc:3:21: error: expected ':' before ';' token 3 | for(int ???=1;???<=9;???++) | ^ | : a.cc:3:21: error: expected primary-expression before ';' token a.cc:3:21: error: expected ':' before ';' token 3 | for(int ???=1;???<=9;???++) | ^ | : a.cc:3:21: error: expected primary-expression before ';' token a.cc:3:21: error: expected ':' before ';' token 3 | for(int ???=1;???<=9;???++) | ^ | : a.cc:3:21: error: expected primary-expression before ';' token a.cc:3:21: error: expected ')' before ';' token 3 | for(int ???=1;???<=9;???++) | ~ ^ | ) a.cc:3:22: error: expected primary-expression before '?' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:23: error: expected primary-expression before '?' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:24: error: expected primary-expression before '?' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:27: error: expected primary-expression before ')' token 3 | for(int ???=1;???<=9;???++) | ^ a.cc:3:27: error: expected ':' before ')' token 3 | for(int ???=1;???<=9;???++) | ^ | : a.cc:3:27: error: expected primary-expression before ')' token a.cc:3:27: error: expected ':' before ')' token 3 | for(int ???=1;???<=9;???++) | ^ | : a.cc:3:27: error: expected primary-expression before ')' token a.cc:3:27: error: expected ':' before ')' token 3 | for(int ???=1;???<=9;???++) | ^ | : a.cc:3:27: error: expected primary-expression before ')' token a.cc:4:15: error: expected primary-expression before '?' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ a.cc:4:16: error: expected primary-expression before '?' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ a.cc:4:17: error: expected primary-expression before '?' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ a.cc:4:18: error: expected primary-expression before '<=' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^~ a.cc:4:21: error: expected ':' before ';' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ | : a.cc:4:21: error: expected primary-expression before ';' token a.cc:4:21: error: expected ':' before ';' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ | : a.cc:4:21: error: expected primary-expression before ';' token a.cc:4:21: error: expected ':' before ';' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ | : a.cc:4:21: error: expected primary-expression before ';' token a.cc:4:22: error: expected primary-expression before '?' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ a.cc:4:23: error: expected primary-expression before '?' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ a.cc:4:24: error: expected primary-expression before '?' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ a.cc:4:27: error: expected primary-expression before ')' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ a.cc:4:27: error: expected ':' before ')' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ | : a.cc:4:27: error: expected primary-expression before ')' token a.cc:4:27: error: expected ':' before ')' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ | : a.cc:4:27: error: expected primary-expression before ')' token a.cc:4:27: error: expected ':' before ')' token 4 | for(int ???=1;???<=9;???++)printf("%dx%d=%d\n",???,???,???*???); | ^ | : a.cc:4:27: error: expected primary-expression before ')' token
s953738897
p00000
C++
class Main{ public static void main(String[] a){ for(int x = 1; x <= 9; x++){ for(int y = 1; y <= 9; y++){ int z = x*y; System.out.print(x + "x" + y + "=" + z); } } } }
a.cc:2:7: error: expected ':' before 'static' 2 | public static void main(String[] a){ | ^~~~~~~ | : a.cc:2:25: error: 'String' has not been declared 2 | public static void main(String[] a){ | ^~~~~~ a.cc:2:34: error: expected ',' or '...' before 'a' 2 | 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:6:1: error: 'System' was not declared in this scope 6 | System.out.print(x + "x" + y + "=" + z); | ^~~~~~ a.cc:6:30: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 6 | System.out.print(x + "x" + y + "=" + z); | ~~~~~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*
s136604302
p00000
C++
#include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ y = i * j; printf("%d",i); printf("x"); printf("%d",j); printf("="); printf("%d",y); } } return 0; }
a.cc: In function 'int main()': a.cc:7:13: error: 'y' was not declared in this scope 7 | y = i * j; | ^
s767726175
p00000
C++
#include <iostream> #include <Windows.h> #define DEBUG 0 using namespace std; int main(void) { for (int i = 1; i <= 9; ++i) { for (int j = 1; j <= 9; ++j) { cout << i << "x" << j << "=" << i*j << endl; } } #if DEBUG system("pause"); #endif return 0; }
a.cc:2:10: fatal error: Windows.h: No such file or directory 2 | #include <Windows.h> | ^~~~~~~~~~~ compilation terminated.
s933243804
p00000
C++
#include<iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) cout << i << "x" << j << "=" << i*j << endl; } }
a.cc:1:20: warning: extra tokens at end of #include directive 1 | #include<iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) cout << i << "x" << j << "=" << i*j << endl; } } | ^~~~~ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s089299108
p00000
C++
using System; public static void Main(String[] a){ int k; for(int i=1;i<10;i++){ for(int j=1;j<10;j++){ k=i*j; Console.WriteLine(i&"x"&j&"="&k); } } }
a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System; | ^~~~~~ a.cc:4:1: error: expected unqualified-id before 'public' 4 | public static void Main(String[] a){ | ^~~~~~
s523122577
p00000
C++
public class Main { public static void main(String[] a) { StringBuilder sb = new StringBuilder(); for(int i = 1; i <= 9; i++) { for(int j = 1; j <= 9; j++) { sb.append(i + "x" + j + "=" + i*j + "\n"); } } System.out.print(sb); } }
a.cc:1:1: error: expected unqualified-id before 'public' 1 | public class Main { | ^~~~~~
s791356716
p00000
C++
#include<stdio.h> int main(){ int i = 1; int n = 1; for(; i < 10; i++) { for(; n < 10; n++) { printf("%dx%d=%d\n", i, n, i*n); } m = 0; } return 0; }
a.cc: In function 'int main()': a.cc:9:9: error: 'm' was not declared in this scope 9 | m = 0; | ^
s741525207
p00000
C++
main(){ for(int i=1;i<=9;i++) for(int j=1;j<=9;j++) printf("%d*%d=%d",i,j,i*j); }
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 1 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:4:1: error: 'printf' was not declared in this scope 4 | printf("%d*%d=%d",i,j,i*j); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | main(){
s428018290
p00000
C++
main(){ for(int i=1;i<=9;i++) for(int j=1;j<=9;j++) printf("%dx%d=%d",i,j,i*j); }
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 1 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:4:1: error: 'printf' was not declared in this scope 4 | printf("%dx%d=%d",i,j,i*j); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | main(){
s293583213
p00000
C++
using System; namespace _0000 { class Program { static int Main ( string[] args ) { for (int lp = 1; lp <= 9; lp++) { for (int lp2 = 1; lp2 <= 9; lp2++) { Console.WriteLine (lp + "x" + lp2 + "=" + (lp * lp2)); } } return 0; } } }
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:8:35: error: 'string' has not been declared 8 | static int Main ( string[] args ) | ^~~~~~ a.cc:8:44: error: expected ',' or '...' before 'args' 8 | static int Main ( string[] args ) | ^~~~ a.cc:21:10: error: expected ';' after class definition 21 | } | ^ | ; a.cc: In static member function 'static int _0000::Program::Main(int*)': a.cc:14:41: error: 'Console' was not declared in this scope 14 | Console.WriteLine (lp + "x" + lp2 + "=" + (lp * lp2)); | ^~~~~~~ a.cc:14:75: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+' 14 | Console.WriteLine (lp + "x" + lp2 + "=" + (lp * lp2)); | ~~~~~~~~~~~~~~ ^ ~~~ | | | | | const char [2] | const char*
s444478585
p00000
C++
int main() { for(int i = 1; i < 10; i++) for(int j = 1; j < 10; j++) { cout << i << "x" << j << "=" << i * j << endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'cout' was not declared in this scope 6 | cout << i << "x" << j << "=" << i * j << endl; | ^~~~ a.cc:6:50: error: 'endl' was not declared in this scope 6 | cout << i << "x" << j << "=" << i * j << endl; | ^~~~
s164180553
p00000
C++
public class Main { /** * ???????????????????????? * * @param args */ public static void main(String[] args) { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { System.out.println(i + "x" + j + "=" + i * j); } } } }
a.cc:1:1: error: expected unqualified-id before 'public' 1 | public class Main { | ^~~~~~
s424708554
p00000
C++
#include<iostream> using namespace std; int main(){ for(first=1;first!=10;++first) { for(second=1;second!=10;++second) cout<< first << 'x' << second << '=' << first*second << endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'first' was not declared in this scope 5 | for(first=1;first!=10;++first) { | ^~~~~ a.cc:6:6: error: 'second' was not declared in this scope 6 | for(second=1;second!=10;++second) | ^~~~~~
s256628349
p00000
C++
main = putStr . unlines $zipWith (++) [(show a)++"x"++(show b)++"=" | a <- [1..9], b <- [1..9]] (map show x) where x = [a * b | a <- [1..9], b <- [1..9]]
a.cc:1:77: error: too many decimal points in number 1 | main = putStr . unlines $zipWith (++) [(show a)++"x"++(show b)++"=" | a <- [1..9], b <- [1..9]] (map show x) | ^~~~ a.cc:1:90: error: too many decimal points in number 1 | main = putStr . unlines $zipWith (++) [(show a)++"x"++(show b)++"=" | a <- [1..9], b <- [1..9]] (map show x) | ^~~~ a.cc:2:28: error: too many decimal points in number 2 | where x = [a * b | a <- [1..9], b <- [1..9]] | ^~~~ a.cc:2:41: error: too many decimal points in number 2 | where x = [a * b | a <- [1..9], b <- [1..9]] | ^~~~ a.cc:1:1: error: 'main' does not name a type 1 | main = putStr . unlines $zipWith (++) [(show a)++"x"++(show b)++"=" | a <- [1..9], b <- [1..9]] (map show x) | ^~~~
s019615398
p00000
C++
#include<ostream> int main() { for(int i=1;i<=9;i++) for(int j=1;j<=9;j++) cout>>i<<'x'<<j<<'='<<i*j<<endl; }
a.cc: In function 'int main()': a.cc:6:7: error: 'cout' was not declared in this scope 6 | cout>>i<<'x'<<j<<'='<<i*j<<endl; | ^~~~ a.cc:6:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 6 | cout>>i<<'x'<<j<<'='<<i*j<<endl; | ^~~~ | std::endl In file included from a.cc:1: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s158055825
p00000
C++
#include<ostream> int main() { for(int i=1;i<=9;i++) for(int j=1;j<=9;j++) cout>>i>>'x'>>j>>'='>>i*j>>endl; }
a.cc: In function 'int main()': a.cc:6:7: error: 'cout' was not declared in this scope 6 | cout>>i>>'x'>>j>>'='>>i*j>>endl; | ^~~~ a.cc:6:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 6 | cout>>i>>'x'>>j>>'='>>i*j>>endl; | ^~~~ | std::endl In file included from a.cc:1: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s524785669
p00000
C++
#include<ostream> int main() { for(int i=1;i<=9;i++) for(int j=1;j<=9;j++) cout<<i<<'x'<<j<<'='<<i*j<<endl; }
a.cc: In function 'int main()': a.cc:6:7: error: 'cout' was not declared in this scope 6 | cout<<i<<'x'<<j<<'='<<i*j<<endl; | ^~~~ a.cc:6:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 6 | cout<<i<<'x'<<j<<'='<<i*j<<endl; | ^~~~ | std::endl In file included from a.cc:1: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s754516875
p00000
C++
#include<iostream> int main() { for(int i=1;i<=9;i++) for(int j=1;j<=9;j++) cout<<i<<'x'<<j<<'='<<i*j<<endl; }
a.cc: In function 'int main()': a.cc:6:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 6 | cout<<i<<'x'<<j<<'='<<i*j<<endl; | ^~~~ | std::cout In file included from a.cc:1: /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:6:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 6 | cout<<i<<'x'<<j<<'='<<i*j<<endl; | ^~~~ | 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) | ^~~~
s245453795
p00000
C++
#include<iostream> using namespace std; int main() { const kMax = 9; for(int i = 1; i <= kMax; i++) { for(int j = 1; j <= kMax; j++) { cout << i << "x" << j << "=" << i * j << endl; } } return 0; }
a.cc: In function 'int main()': a.cc:6:15: error: 'kMax' does not name a type 6 | const kMax = 9; | ^~~~ a.cc:7:29: error: 'kMax' was not declared in this scope 7 | for(int i = 1; i <= kMax; i++) | ^~~~