submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s218261249
p03826
C++
#include <cstdlib> int main(){ int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); if(a*b > c*d) cout << a*b; else cout << c*d; }
a.cc: In function 'int main()': a.cc:4:3: error: 'scanf' was not declared in this scope 4 | scanf("%d %d %d %d",&a,&b,&c,&d); | ^~~~~ a.cc:5:17: error: 'cout' was not declared in this scope 5 | if(a*b > c*d) cout << a*b; | ^~~~ a.cc:6:8: error: 'cout' was not declared in this scope 6 | else cout << c*d; | ^~~~
s213161873
p03826
C++
#include<iostream> #include<string> #include<vector> #include<iomanip> #include<algorithm> #include<queue> #include<stack> #include<map> using namespace std; #define ll long long int main(){ int a,b,c,d; cout >>a >> b >> c >> d; int ans=max(a*b,c*d); cout << ans; return 0; }
a.cc: In function 'int main()': a.cc:13:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int') 13 | cout >>a >> b >> c >> d; | ~~~~ ^~~ | | | | | int | std::ostream {aka std::basic_ostream<char>} a.cc:13:10: note: candidate: 'operator>>(int, int)' (built-in) 13 | cout >>a >> b >> c >> d; | ~~~~~^~~ a.cc:13:10: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int' In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:38, from /usr/include/c++/14/string:68: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:13:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 13 | cout >>a >> b >> c >> d; | ^~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/iostream:42: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = int&]': a.cc:13:12: required from here 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ In file included from a.cc:4: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)' 207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/iomanip:237:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setw)' 237 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setw __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:237:5: note: template argument deduction/substitution failed: a.cc:13:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >>a >> b >> c >> d; | ^ /usr/include/c++/14/iomanip:271:5: note: candidate: 'template<class _CharT, class _Traits, class _MoneyT> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Get_money<_MoneyT>)' 271 | operator>>(basic_istream<_CharT, _Traits>& __is, _Get_money<_MoneyT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:271:5: note: template argument deduction/substitution failed: a.cc:13:12: note:
s463112580
p03826
C++
#include <iostream> using namespcae std; int main(void){ int a,b,c,d; cin >> a>> b >>c >> d; if(a*b > c*d){ cout << a*b << endl; }else{ cout << c*d << endl; } }
a.cc:3:7: error: expected nested-name-specifier before 'namespcae' 3 | using namespcae std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> a>> b >>c >> d; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | cout << a*b << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:9:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | cout << a*b << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:11:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 11 | cout << c*d << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:11:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 11 | cout << c*d << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s877282012
p03826
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int[] a = new int[n]; System.out.println(Math.max(a *b, c * d)); } }
Main.java:11: error: variable a is already defined in method main(String[]) int[] a = new int[n]; ^ Main.java:11: error: cannot find symbol int[] a = new int[n]; ^ symbol: variable n location: class Main Main.java:12: error: bad operand types for binary operator '*' System.out.println(Math.max(a *b, c * d)); ^ first type: int[] second type: int 3 errors
s277015980
p03826
Java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt();  int b = sc.nextInt();  int c = sc.nextInt();  int d = sc.nextInt(); int max = Math.max(a*b,c*d); System.out.print(max); } }
Main.java:7: error: illegal character: '\u3000' ?int b = sc.nextInt(); ^ Main.java:8: error: illegal character: '\u3000' ?int c = sc.nextInt(); ^ Main.java:9: error: illegal character: '\u3000' ?int d = sc.nextInt(); ^ 3 errors
s939989711
p03826
Java
import java.util.* fun main(args: Array<String>) { val sc = Scanner(System.`in`) val a: Int = sc.nextInt() val b: Int = sc.nextInt() val c: Int = sc.nextInt() val d: Int = sc.nextInt() if (a * b >= c * d) { print(a * b) } else if (a * b < c * d) { print(c * d) } }
Main.java:1: error: ';' expected import java.util.* ^ Main.java:4: error: illegal character: '`' val sc = Scanner(System.`in`) ^ Main.java:4: error: illegal character: '`' val sc = Scanner(System.`in`) ^ 3 errors
s412671591
p03826
C++
x = [int(i) for i in input().split()] print(max((x[0]*x[1], x[2]*x[3])))
a.cc:1:1: error: 'x' does not name a type 1 | x = [int(i) for i in input().split()] | ^
s951657760
p03826
C++
#include<iostream> using nnamespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a*b>c*d) cout<<a*b<<endl; else cout<<c*d<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'nnamespace' 2 | using nnamespace std; | ^~~~~~~~~~ a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>a>>b>>c>>d; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:6:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 6 | if(a*b>c*d) cout<<a*b<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 6 | if(a*b>c*d) cout<<a*b<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 7 | else cout<<c*d<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:7:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 7 | else cout<<c*d<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s368275335
p03826
C++
#include<iostream> int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a*b>c*d) cout<<a*b<<endl; else cout<<c*d<<endl; return 0; }
a.cc: In function 'int main()': a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | cin>>a>>b>>c>>d; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:5:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 5 | if(a*b>c*d) cout<<a*b<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:5:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 5 | if(a*b>c*d) cout<<a*b<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 6 | else cout<<c*d<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:6:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 6 | else cout<<c*d<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s130699538
p03826
C++
#include <iostream> using namespace std; int A,B,C,D; int main(){ cin >> A >> B >> C >> D; if(A*B=C*D) cout << A*B << endl; else cout << (A*B>C*D? A*B:C*D) << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: lvalue required as left operand of assignment 6 | if(A*B=C*D) cout << A*B << endl; | ~^~
s468780814
p03826
C++
a = map(int, raw_input().split()) print max(a[0] * a[1], a[2] * a[3])
a.cc:1:1: error: 'a' does not name a type 1 | a = map(int, raw_input().split()) | ^
s568627354
p03826
C++
using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int res1 = A*B; int res2 = C*D; if (res1 == res2) cout << res1; if (res1 > res2) cout << res1; if (res1 < res2) cout << res2; return 0; }
a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope 5 | cin >> A >> B >> C >> D; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:10:21: error: 'cout' was not declared in this scope 10 | if (res1 == res2) cout << res1; | ^~~~ a.cc:10:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:11:20: error: 'cout' was not declared in this scope 11 | if (res1 > res2) cout << res1; | ^~~~ a.cc:11:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:12:20: error: 'cout' was not declared in this scope 12 | if (res1 < res2) cout << res2; | ^~~~ a.cc:12:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
s215676175
p03826
C++
#include <iostream> using namespace std; int main() { int A, B, C, D; cin A >> B >> C >> D; int res1 = A*B; int res2 = C*D; if (res1 == res2) cout << res1; if (res1 > res2) cout << res1; if (res1 < res2) cout << res2; return 0; }
a.cc: In function 'int main()': a.cc:6:6: error: expected ';' before 'A' 6 | cin A >> B >> C >> D; | ^~ | ;
s084108206
p03826
Java
public static void main(String[] args) { int a=0,b=0,c=0,d=0; Scanner sc = new Scanner(System.in); try { a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); d = sc.nextInt(); sc.close(); }catch(Exception e) { System.out.println("入力が正しくありません"); System.exit(1); } if(!checkNum(a) || !checkNum(a) || !checkNum(a) || !checkNum(a)) { System.out.println("入力が正しくありません"); System.exit(1); } if(a*b>c*d) { System.out.println(a*b); } else { System.out.println(c*d); } // System.out.println(a + "," + b + "," + c + "," + d); System.exit(0); } private static boolean checkNum(int num) { if(num < 0 || num > 10000) { return false; } return true; }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
s954342614
p03826
C
#include<stdio.h> int main(){ int A, B, C, D; scanf("%d %d %d %d", &A, &B, &C, &D); if(A*B >= C*D){ printf("%d\n", A*B); } else { printf("%d\n", C*D) } return 0; }
main.c: In function 'main': main.c:11:24: error: expected ';' before '}' token 11 | printf("%d\n", C*D) | ^ | ; 12 | } | ~
s712204348
p03826
C++
A,B,C,D = map(int,input().split()) if A*B >= C*D: print(A*B) else: print(C*D)
a.cc:1:1: error: 'A' does not name a type 1 | A,B,C,D = map(int,input().split()) | ^
s833914050
p03826
C++
#include<stdio.h> #include<stdlib.h> int main() { int a,b,c,d,x,y; x = a*b; y = c*d; scanf("%d%d%d%d",&a,&b,&c,&d); if(a*b >= c*d) pfintf("%d\n", x = a*b); else if(a*b <= c*d) printf("%d\n", y = c*d); return 0; }
a.cc: In function 'int main()': a.cc:10:1: error: 'pfintf' was not declared in this scope; did you mean 'printf'? 10 | pfintf("%d\n", x = a*b); | ^~~~~~ | printf
s401574569
p03826
C++
#include <cstdio> #includ <iostream> using namespace std; int main() { int a,b,c,d,ans; cin >> a >> b >> c >> d; cout << max(a*b,c*d) << endl; }
a.cc:2:2: error: invalid preprocessing directive #includ; did you mean #include? 2 | #includ <iostream> | ^~~~~~ | include a.cc: In function 'int main()': a.cc:9:1: error: 'cin' was not declared in this scope 9 | cin >> a >> b >> c >> d; | ^~~ a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include <cstdio> +++ |+#include <iostream> 2 | #includ <iostream> a.cc:10:1: error: 'cout' was not declared in this scope 10 | cout << max(a*b,c*d) << endl; | ^~~~ a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:10:10: error: 'max' was not declared in this scope 10 | cout << max(a*b,c*d) << endl; | ^~~ a.cc:10:26: error: 'endl' was not declared in this scope 10 | cout << max(a*b,c*d) << endl; | ^~~~ a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' 1 | #include <cstdio> +++ |+#include <ostream> 2 | #includ <iostream>
s744793454
p03826
C
#include <stdio.h> #include <algorithm> #include<math.h> #include<cstdlib> #include<cstring> using namespace std; int main() { int A,B,C,D; scanf("%d%d%d%d",&A,&B,&C,&D); int c; c = max(A*B,C*D); if(A*B==C*D) { printf("%d",A*B); } else { printf("%d",c); } return 0; }
main.c:2:10: fatal error: algorithm: No such file or directory 2 | #include <algorithm> | ^~~~~~~~~~~ compilation terminated.
s198142017
p03826
C
#include <stdio.h> int main(void) { int a, b, c, d; int area1, area2; scanf_s("%d", &a); scanf_s("%d", &b); scanf_s("%d", &c); scanf_s("%d", &d); area1 = a * b; area2 = c * d; if (area1 >= area2) { printf("%d", area1); } else { printf("%d", area2); } return 0; }
main.c: In function 'main': main.c:9:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 9 | scanf_s("%d", &a); | ^~~~~~~ | scanf
s044348454
p03826
C++
#include "stdafx.h" #include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (a*b > c*d) { cout << a * b; } else { cout << c * d; } return 0; }
a.cc:1:10: fatal error: stdafx.h: No such file or directory 1 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s854736058
p03826
C++
hoge #include <bits/stdc++.h> // g++ -std=c++14 -o a a.cpp using namespace std; typedef pair<int, int> P; typedef long long ll; #define rep(i, n) for(int i = 0; i < (n); i++) #define repto(i, n) for(int i = 0; i <= (n); i++) #define all(c) (c).begin(), (c).end() #define uniq(c) c.erase(unique(all(c)), (c).end()) // ユニークなvectorにする。連続した値を除去して切り出す。 #define _1 first #define _2 second #define pb push_back #define INF 1145141919 #define MOD 1000000007 #define DEBUG(x) cout << #x << ": " << x << endl; __attribute__((constructor)) void initial() { cin.tie(0); ios::sync_with_stdio(false); } int main() { int A, B, C, D; cin >> A >> B >> C >> D; int S1 = A * B; int S2 = B * C; if (S1 > S2) { cout << S1 << endl; } else { cout << S2 << endl; } }
a.cc:1:1: error: 'hoge' does not name a type 1 | hoge | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:2: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity 164 | __is_null_pointer(std::nullptr_t) | ^ /usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)' 159 | __is_null_pointer(_Type) | ^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 164 | __is_null_pointer(std::nullptr_t) | ^~~~~~~~~ In file included from /usr/include/c++/14/cstddef:50, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64: /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared 2086 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope 2087 | struct remove_extent<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid 2087 | struct remove_extent<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared 2099 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope 2100 | struct remove_all_extents<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid 2100 | struct remove_all_extents<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared 2171 | template<std::size_t _Len> | ^~~ /usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope 2176 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^~~~ /usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^ /usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope 2202 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope 2203 | struct __attribute__((__aligned__((_Align)))) { } __align; | ^~~~~~ In file included from /usr/include/c++/14/bits/stl_tempbuf.h:59, from /usr/include/c++/14/bits/stl_algo.h:69, from /usr/include/c++/14/algorithm:61: /usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive] 132 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive] 134 | __attribute__((__externally_visible__)); | ^ /usr/incl
s586647896
p03826
C++
a, b, c, d = map(int, input().split()) print(max(a*b, c*d))
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c, d = map(int, input().split()) | ^
s631326283
p03826
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A, B, C, D, ans; cin>>A>>B>>C>>D ans =max(A*B,C*D); cout<<ans<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:18: error: expected ';' before 'ans' 6 | cin>>A>>B>>C>>D | ^ | ; 7 | 8 | ans =max(A*B,C*D); | ~~~
s293869831
p03826
C++
#include <iostream> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a*b<=c*D){cout<<c*d<<endl;} else{cout<<a*b<<endl;} return 0; }
a.cc: In function 'int main()': a.cc:6:13: error: 'D' was not declared in this scope 6 | if(a*b<=c*D){cout<<c*d<<endl;} | ^
s884110190
p03826
C++
#include <iostream> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a*b<=c*D){cout<<c*d<<endl;} else{cout<<a*b<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:13: error: 'D' was not declared in this scope 6 | if(a*b<=c*D){cout<<c*d<<endl;} | ^ a.cc:9:2: error: expected '}' at end of input 9 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s265532615
p03826
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin << a; cin << b; cin << c; cin << d; if(a*b>=c*d) cout >> a*b >> endl; else cout >> c*d >> endl; }
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << a; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:7: note: candidate: 'operator<<(int, int)' (built-in) 6 | cin << a; | ~~~~^~~~ a.cc:6:7: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)' 1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:6:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 6 | cin << a; | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)' 763 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a; | ^ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a; | ^ /usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)' 1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a; | ^ In file included from /usr/include/c++/14/bits/ios_base.h:46, from /usr/include/c++/14/streambuf:43, from /usr/include/c++/14/bits/streambuf_iterator.h:35, from /usr/include/c++/14/iterator:66, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a; | ^ In file included from /usr/include/c++/14/memory:80, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56: /usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)' 70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a; | ^ In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a; | ^ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a; | ^ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << a; | ^ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << a; | ^ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << a; | ^ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a; | ^ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << a; | ^ /usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)' 671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed: a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << a; | ^ /usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)' 684
s357394908
p03826
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin<<a; cin<<b; cin<<c; Cin<<d; if(a*b>=c*d) cout>> a*b >> endl; else cout >> c*d >> endl; }
a.cc: In function 'int main()': a.cc:6:6: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin<<a; | ~~~^~~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:6: note: candidate: 'operator<<(int, int)' (built-in) 6 | cin<<a; | ~~~^~~ a.cc:6:6: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)' 1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin<<a; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:6:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 6 | cin<<a; | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)' 763 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin<<a; | ^ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin<<a; | ^ /usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)' 1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin<<a; | ^ In file included from /usr/include/c++/14/bits/ios_base.h:46, from /usr/include/c++/14/streambuf:43, from /usr/include/c++/14/bits/streambuf_iterator.h:35, from /usr/include/c++/14/iterator:66, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin<<a; | ^ In file included from /usr/include/c++/14/memory:80, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56: /usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)' 70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin<<a; | ^ In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin<<a; | ^ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin<<a; | ^ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin<<a; | ^ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin<<a; | ^ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin<<a; | ^ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin<<a; | ^ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin<<a; | ^ /usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)' 671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed: a.cc:6:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin<<a; | ^ /usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)' 684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
s137844422
p03826
C++
#include<cstdio> int main(){ static const int n; static const int a[1001]={0,1,2,4,8,16,30,60,96,160,270,540,792,1584,2592,4032,5376,10752,14688,29376,41040,60800,96000,192000,242880,340032,532224,677376,917280,1834560,2332800,4665600,5529600,7864320,12165120,16422912,19595520,39191040,60466176,85100544,102435840,204871680,258048000,516096000,677376000,819624960,258709753,517419506,876670706,698576619,464046052,210846678,87039944,174079888,559756674,984916319,217548604,16857327,609087587,218175167,106431041,212862082,535421074,139926156,50952999,105219839,195900610,391801220,889436190,472974756,845412639,690825271,891132264,782264521,316684054,31280490,665186745,252135966,764748573,529497139,790600338,524719291,999573608,999147209,522112609,37861883,417241520,775916997,997830958,995661909,729407917,321723976,871170030,520705814,149385219,41956001,988486370,976972733,516785610,158924226,583951250,167902493,687346296,374692585,229757313,549263416,890796057,781592107,875619122,751238237,277966376,130571620,574892396,149784785,921692445,813661707,582700142,400726352,358621292,318642155,250091916,386472265,174406757,151737975,260683867,184202887,320817301,641634602,125034947,201660251,962210566,924421125,489345615,320577061,637208078,196761361,626955546,253911085,389481998,778963996,576273102,309075370,619146484,295106277,464103226,498550267,627180822,788686761,989134263,978268519,902509248,805018489,112903872,32995287,295406792,974343106,721660051,443320095,316385239,778274799,190780502,633014225,727670045,455340083,498164792,15588548,97601235,195202470,569355054,118486597,342752204,135661810,90769804,181539608,519303442,515842850,84989549,696032419,231083385,462166770,150280772,300561544,884472740,641985713,569378318,591770736,690140664,249252882,677627271,850771381,851099110,702198213,111350575,222701150,859360900,670197303,177520684,355041368,643925245,287850483,323688011,476804260,749121574,436195097,100916105,763521317,852472431,566135419,817481112,609114726,316546467,633092934,400461490,516478899,802348580,904410955,621677199,257318500,176522245,676814987,463688019,296329114,264099706,528199412,36178948,424547801,768068647,536137287,180929498,361858996,212858280,424867383,432882564,865765128,720594700,90410365,461821767,203725504,114020002,228040004,637601848,275203689,996048794,816392758,827385828,501246906,502796187,283931071,433357175,368415063,694773670,389547333,672209469,929924926,339805954,823423911,430631131,861262262,912999218,775754185,248442642,92860619,47164638,94329276,560810218,901787221,979102645,727649351,20618968,41237936,409407748,818815496,105871481,565828513,733793480,775394695,826327221,652654435,644963335,70964339,34934197,69868394,21321430,42642860,308165968,66236679,863975191,474703946,965050168,372703124,98935522,622346998,724308287,448616567,387250563,521154852,757291985,756807708,98256492,802531326,949720885,885971876,131412209,981761360,661149918,619958299,331028217,662056434,807561987,320675293,914129701,828259395,37073206,74146412,402841690,54637455,617124544,234249081,751443813,937109749,192721498,402972372,453564416,21903965,219196964,711481873,513083746,252120578,510728243,686346634,854955589,709911171,78596230,269965951,409219288,248271231,873383775,746767543,509852147,174891499,984879786,197881406,237525166,359571994,592280493,443047391,387927598,775855196,487579371,975158742,351882153,147029129,237093507,474187014,233169083,703708683,126101010,198878663,367151757,734303514,558855498,196629758,161317030,573722496,327882255,869789706,71204994,142409988,519330677,658916599,820221123,589765049,882787662,765575317,237538730,765336752,111906311,970555905,547616857,95233707,919602856,913510209,325919347,651838694,787773019,168803670,875276542,263468393,816727867,633455727,500272724,140006678,171663917,920917448,754148927,547298078,412984678,825969356,89434825,653930388,136393590,272787180,276924235,570666519,590968903,696916544,114558109,209914977,987646996,975293985,732105167,207549775,590764498,239710087,413342719,606756472,119222007,227695505,450857281,901714562,192653364,385306728,234022344,31755833,752787939,682129837,972238124,563737250,589527825,729854221,873389836,746779665,973964734,947929461,5202400,320558679,402562062,651932087,438747311,877494622,851938578,595655182,953260474,906520941,610950283,501334286,115901200,458267670,725708035,451416063,34629651,443595068,292992687,984336996,352845142,600659252,738086132,476172257,146298687,742115388,685981689,371963371,5238701,10477402,766426619,741060152,215953758,431907516,900346034,302070357,669584758,46053147,500531147,269366731,835955289,753764439,748101695,586666665,340467085,680934170,993066655,337509515,702294178,689317659,610110893,855932510,718959729,437919451,162052266,591444463,937285062,874570117,577640930,690830665,441136051,234385594,995953016,490091986,701529803,403059599,173749087,571309264,670816347,341632687,12414678,656616799,110230917,555093018,326641735,653283470,841517232,299713801,790165940,55645384,857068605,957840454,891206655,734604192,144312526,317679024,396371648,792743296,423188008,846376016,985116058,646955723,952177710,502929334,92150358,447989522,924790847,549384151,424045976,984526166,194912796,17485470,655375515,480905089,910910739,771660846,177055119,354110238,487461754,533406064,889925808,672895377,471803466,943606932,363992147,457850989,337082821,559633947,903886732,428980584,430095367,52327251,636880607,273761207,706305042,890884144,393016175,748347757,949802139,899604271,310566618,130756774,816805638,605028078,169610267,339220534,575779053,151558099,779861186,564602992,437157814,502964081,478103459,956206918,385872385,383885002,125139522,606176173,727381953,8385703,189534611,657264353,809755457,619510907,607320752,922420555,310951652,461684174,548921957,97843907,729671781,620980721,857109915,25052446,275170024,550340048,495401987,990803974,362448559,60904426,929227965,120741193,257409647,514819294,969108899,560048584,985073824,700527244,680852420,361704833,819310219,589014097,1398831,2797662,533149213,66298419,177289968,605590036,607911651,709970869,953992856,619456719,655319030,644362951,232480867,745680583,590594926,181189845,520817003,742434671,899661005,364907082,733053610,13738009,433804341,236387921,508481622,16963237,232316619,464633238,221314587,887788178,285824818,571649636,737224462,55447552,88454246,798654422,982084080,964168153,247453861,1833862,99268162,659694667,466104507,932209014,864422567,728845127,537854091,599199290,264178678,250863989,574407941,732405085,314042625,489474931,176295562,914244677,852693813,705387619,193242738,892738773,352048555,704097110,771025308,753975129,927527314,542054326,2994361,5988722,142029115,324378674,100232612,267369886,945624300,882384522,416443431,832886862,784668659,985124309,298874953,102595581,589967510,536599545,782218536,77865166,65277123,130554246,660510295,877005583,275946488,615306711,199915845,893431699,154588775,309177550,504746854,864753530,291783330,553114672,78102633,511352330,753667006,152737422,966787467,933574927,743434691,300957143,206901132,971318792,551792353,641951914,887092590,774185173,324319767,296313969,419748261,736668708,125202855,250405710,860306792,120041519,287948500,772974185,72505984,145011968,197340762,319569601,29058411,58116822,503961279,97170670,855412437,719283733,922189282,610817142,981054324,962108641,555626129,721425306,8695797,867937276,204728691,409457382,327387384,796008217,623487493,246974979,808073302,987531151,661621379,619686012,885900428,182865420,604993928,209987849,112149920,982821831,436804698,873609396,249429664,35442337,542946067,435717873,357909594,663354277,349837771,172902187,725024195,626724406,951883201,898886813,611894793,223789579,156249711,953762374,941520348,627312415,732152146,626637375,697801379,928373167,467201812,934403624,300174312,940164327,768557112,666818604,430052749,769678528,637336196,471510530,884736131,405930623,88523589,177047178,741193266,482386525,959636069,420122608,870743513,206500587,931686480,949884867,256838150,936095622,169293108,338586216,20108011,40216022,515421399,752804022,39087839,78175678,170102,340204,946184524,167781729,835787762,903545720,642497069,768924002,848555995,948817436,408127979,816255958,800214847,62298624,211839153,598162116,649248474,550398359,199342730,466361673,327607418,129788111,60519012,181516929,291695327,583390654,933077030,384594463,248685267,497370534,574889090,149778173,508531933,813332884,744233240,488466473,623778584,4368568,996107508,578055173,827804465,735970254,633530545,296440400,68756126,969743180,876576330,723047882,284529056,569058112,955600472,546169433,803429308,606858609,391311257,782622514,544679226,242364688,879318989,758637971,578342645,882174629,300235757,203149792,186638455,197248609,4796039,513889283,888015602,188499605,180716688,503135262,412392718,986465265,744612799,335327753,188776829,910205676,736820167,473640327,438152515,953148782,574653619,149307231,898195178,851342559,30893933,76564644,524487579,530536325,132326487,264652974,436939730,343683655,215324089,564898148,437093697,270599954,464012989,329405798,476278405,952556810,152525842,639543549,539816971,508927499,355269900,826589616,330452844,660905688,53392193,5534060,69632488,139264976,254644395,744092152,539703029,555053484,899170215,798340423,422351818,444892614,151256959,504363114,893778023,787556039,802071847,381737209,85245710,493128509,945208231,475863350,279284954,813432374,905487747,730092313,198445481,573858992,640307357,280614707,780620191,211244466,611704170,223408333,494598748,968788563,176505672,286582450,993252097,986504187,529362547,560946912,386341399,989315317,14725758,29451516,215685422,95948827,463209666,847826556,571585155,357027634,71359521,142719042,128278247,45877819,700894880,39614801,668371163,336742319,338115610,570799830,972926972}; scanf("%d",&n); printf("%d\n",a[n]); }
a.cc: In function 'int main()': a.cc:4:26: error: uninitialized 'const n' [-fpermissive] 4 | static const int n; | ^
s477069328
p03826
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C,D; cin>>A>>B>>C>>D; cout<<max(A*B,C*D) }
a.cc: In function 'int main()': a.cc:7:21: error: expected ';' before '}' token 7 | cout<<max(A*B,C*D) | ^ | ; 8 | } | ~
s831237738
p03826
C++
#include <stdio.h> #include <iostream> int main() { int a, b, c, d; scanf_s("%d %d %d %d", &a, &b, &c, &d); if (a*b > c*d) printf("%d\n", a*b); else printf("%d\n", c*d); return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 6 | scanf_s("%d %d %d %d", &a, &b, &c, &d); | ^~~~~~~ | scanf
s709585165
p03826
C
// ConsoleApplication12.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 // #include "stdafx.h" int main() { int A, B, C, D,E,F; scanf_s("%d", &A); scanf_s("%d", &B); scanf_s("%d", &C); scanf_s("%d", &D); E = A*B; F = C*D; if (E >= F){ printf("%d\n", E); } else { printf("%d\n", F); } return 0; }
main.c:4:10: fatal error: stdafx.h: No such file or directory 4 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s630778733
p03826
C
// ConsoleApplication12.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 // #include "stdafx.h" int main() { int A, B, C, D,E,F; scanf_s("%d", &A); scanf_s("%d", &B); scanf_s("%d", &C); scanf_s("%d", &D); E = A*B; F = C*D; if (E >= F){ printf("%d\n", E); } else { printf("%d\n", F); } return 0; }
main.c:4:10: fatal error: stdafx.h: No such file or directory 4 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s175612812
p03826
C
// ConsoleApplication12.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 // #include "stdafx.h" int main() { int A, B, C, D,E,F; scanf_s("%d", &A); scanf_s("%d", &B); scanf_s("%d", &C); scanf_s("%d", &D); E = A*B; F = C*D; if (E >= F){ printf("%d\n", E); } else { printf("%d\n", F); } return 0; }
main.c:4:10: fatal error: stdafx.h: No such file or directory 4 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s576504481
p03826
C++
#include <sstream> #include <iostream> #include <sstring> using namespace std; int main(){ int a, b ,c , d; cin >> a >> b >> c >> d; if (a* b >= c*d ){ cout << a*b << endl;} else{ cout << c* d << endl; } return 0; }
a.cc:3:10: fatal error: sstring: No such file or directory 3 | #include <sstring> | ^~~~~~~~~ compilation terminated.
s632021684
p03826
C++
puts("hi")
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | puts("hi") | ^
s888478054
p03826
C++
#include<iostream> int main(){ int A, B, C, D std::cin >> A >> B >> C >> D; if (A*B >= C*D) { std::cout << A*B << std::endl; } else { std::cout << C*D << std::endl; } return 0; }
a.cc: In function 'int main()': a.cc:4:17: error: expected initializer before 'std' 4 | std::cin >> A >> B >> C >> D; | ^~~ a.cc:5:22: error: 'D' was not declared in this scope 5 | if (A*B >= C*D) { | ^
s605967508
p03826
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin >> a>>b>>c>>d; cout<<max(a*b,c*d) }
a.cc: In function 'int main()': a.cc:8:21: error: expected ';' before '}' token 8 | cout<<max(a*b,c*d) | ^ | ; 9 | 10 | } | ~
s013181469
p03826
C++
#include <bits/stdc++.h> #include <typeinfo> #include <cxxabi.h> #ifdef LOCAL #include "dbgtoki.hpp" #define DUMP(i) dump((string)TOSTRING(i), demangle(typeid(i).name()), __LINE__ , i) DbgTimer D_t; #define TSTART() D_t.start() #define TSTOP() D_t.stop() #else #define DUMP(i) #define TSTART() #define TSTOP() #endif #define TOSTRING(x) #x #define SZ(x) (int)(x).size() #define REP(i,n) for(int i=0;i<(n);i++) #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define ALL(s) (s).begin(), (s).end() #define UNIQUE(v) v.erase( unique(v.begin(), v.end()) , v.end()); using namespace std; typedef long long unsigned int llu; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vll; const int EPS = 1e-9; int main (){ cin.tie(0); ios::sync_with_stdio(false); int a,b,c,d; whil(cin >> a >> b >> c >> d ){ TSTART(); int ans = max(a*b,c*d); cout << ans << endl; TSTOP(); } return 0; }
a.cc: In function 'int main()': a.cc:36:3: error: 'whil' was not declared in this scope 36 | whil(cin >> a >> b >> c >> d ){ | ^~~~
s870270944
p03826
C++
#include <bits/stdc++.h> //--------------------------- using namespace std; //--------------------------- #define REP(i,n) for(int i = 0; i < (n); i++) #define P(x) cout << (x) << "\n" #define MOD 1000000007 // 1e9+7 #define PI 3.1415926525 #define ll long long int // 10^18 #define INF 1000000001 // 1e9+1 int dx[4]={1,-1,0,0}; int dy[4]={0,0,1,-1}; //--------------------------- int main(){ std::ios::sync_with_stdio(false); std::cin.tie(0); // ifstream in("input.txt"); // cin.rdbuf(in.rdbuf()); ll a,b,c,d;cin>>a>>b>>c>>d; if(a*b<=c*d){ P(c*d); }else{ P(a*b): } return 0; }
a.cc: In function 'int main()': a.cc:28:11: error: expected ';' before ':' token 28 | P(a*b): | ^
s638536718
p03826
C++
#define_CRT_SECURE_NO_WARNINGS #include<stdio.h> int main(){ int A,B,C,D; scanf("%d%d%d%d",&A,&B,&C,&D); if(A*B>=C*D){ printf("%d",A*B); } else{ printf("%d",C*D); } }
a.cc:1:2: error: invalid preprocessing directive #define_CRT_SECURE_NO_WARNINGS 1 | #define_CRT_SECURE_NO_WARNINGS | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
s173488706
p03826
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main(void){ int a, b, c, d; cin >> a >> b >> c >> d; cout << (a*b > c*d) ? a*b : c*d << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:41: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 11 | cout << (a*b > c*d) ? a*b : c*d << endl; | ~~~~^~~~~~~
s968010220
p03826
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main(void){ int a, b, c, d; cin >> a >> b >> c >> d; cout << {a*b>c*d} ? a*b : c*d << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:17: error: expected primary-expression before '{' token 11 | cout << {a*b>c*d} ? a*b : c*d << endl; | ^ a.cc:11:27: error: expected primary-expression before '?' token 11 | cout << {a*b>c*d} ? a*b : c*d << endl; | ^ a.cc:11:39: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 11 | cout << {a*b>c*d} ? a*b : c*d << endl; | ~~~~^~~~~~~
s752746442
p03826
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main(void){ int a, b, c, d; cin >> a >> b >> c >> d; cout << a*b>c*d ? a*b : c*d << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:20: error: no match for 'operator>' (operand types are 'std::basic_ostream<char>' and 'int') 11 | cout << a*b>c*d ? a*b : c*d << endl; | ~~~~~~~~~~~^~~~ | | | | | int | std::basic_ostream<char> a.cc:11:20: note: candidate: 'operator>(int, int)' (built-in) 11 | cout << a*b>c*d ? a*b : c*d << endl; | ~~~~~~~~~~~^~~~ a.cc:11:20: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int' In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ /usr/include/c++/14/string_view:702:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ /usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:11:23: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3915:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ /usr/include/c++/14/bits/basic_string.h:3929:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3929 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3929:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ /usr/include/c++/14/bits/basic_string.h:3942:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3942 | operator>(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3942:5: note: template argument deduction/substitution failed: a.cc:11:23: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2619:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator>(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2619 | operator>(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2619:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ In file included from /usr/include/c++/14/vector:66, from a.cc:3: /usr/include/c++/14/bits/stl_vector.h:2102:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator>(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)' 2102 | operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_vector.h:2102:5: note: template argument deduction/substitution failed: a.cc:11:23: note: 'std::basic_ostream<char>' is not derived from 'const std::vector<_Tp, _Alloc>' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ^ a.cc:11:37: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 11 | cout << a*b>c*d ? a*b : c*d << endl; | ~~~~^~~~~~~
s080660361
p03826
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main(void){ int a, b, c, d; cin >> a >> b >> c >> d; cout << (a*b>c*d)? a*b : c*d << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:38: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 11 | cout << (a*b>c*d)? a*b : c*d << endl; | ~~~~^~~~~~~
s612259010
p03826
C++
#include<cstdio> using namespace std; int max(int a,int b){return a>b?a:b;} int main(){ scanf("%d%d%d%d",&a,&b,&c,&d); printf("%d\n",max(a*b,c*d)); return 0; }
a.cc: In function 'int main()': a.cc:5:27: error: 'a' was not declared in this scope 5 | scanf("%d%d%d%d",&a,&b,&c,&d); | ^ a.cc:5:30: error: 'b' was not declared in this scope 5 | scanf("%d%d%d%d",&a,&b,&c,&d); | ^ a.cc:5:33: error: 'c' was not declared in this scope 5 | scanf("%d%d%d%d",&a,&b,&c,&d); | ^ a.cc:5:36: error: 'd' was not declared in this scope 5 | scanf("%d%d%d%d",&a,&b,&c,&d); | ^
s257988218
p03826
C++
int main() { int A, B, C, D; std::cin >> A >> B >> C >> D; std::cout << std::min(A * B, C * D) << std::endl; }
a.cc: In function 'int main()': a.cc:3:10: error: 'cin' is not a member of 'std' 3 | std::cin >> A >> B >> C >> D; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | int main() { a.cc:5:10: error: 'cout' is not a member of 'std' 5 | std::cout << std::min(A * B, C * D) << std::endl; | ^~~~ a.cc:5:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:5:23: error: 'min' is not a member of 'std' 5 | std::cout << std::min(A * B, C * D) << std::endl; | ^~~ a.cc:5:49: error: 'endl' is not a member of 'std' 5 | std::cout << std::min(A * B, C * D) << std::endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | int main() {
s742829753
p03826
C++
deewwrfwe
a.cc:1:1: error: 'deewwrfwe' does not name a type 1 | deewwrfwe | ^~~~~~~~~
s588637727
p03826
C++
qqq
a.cc:1:1: error: 'qqq' does not name a type 1 | qqq | ^~~
s291421210
p03826
C++
#include<iostream> #define max(x,y) (x>y)?x:y int main() { int a,b,c,d; std::cin>>a>>b>>c>>d; std::cout<<max(a*b,c*d)<<std::endl; }
a.cc: In function 'int main()': a.cc:7:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 7 | std::cout<<max(a*b,c*d)<<std::endl; | ^
s708798924
p03826
C++
#include<iostream> int main() { int a,b,c,d; std::cin>>a>>b>>c>>d; std::cout<<max(a*b,c*d)<<std::endl; }
a.cc: In function 'int main()': a.cc:7:16: error: 'max' was not declared in this scope; did you mean 'std::max'? 7 | std::cout<<max(a*b,c*d)<<std::endl; | ^~~ | std::max In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here 303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~
s698231422
p03826
C++
#include <cmath> #include <cstdio> int a,b,c,d; int main() { scanf("%d%d%d%d",&a,&b,&c,&d); printf("%d\n",max(a*b,c*d)); return 0; }
a.cc: In function 'int main()': a.cc:7:23: error: 'max' was not declared in this scope; did you mean 'std::max'? 7 | printf("%d\n",max(a*b,c*d)); | ^~~ | std::max In file included from /usr/include/c++/14/bits/specfun.h:43, from /usr/include/c++/14/cmath:3906, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here 303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~
s676831312
p03826
C++
#include <cstdio> int a,b,c,d; int main() { scanf("%d%d%d%d",&a,&b,&c,&d); printf("%d\n",max(a*b,c*d)); return 0; }
a.cc: In function 'int main()': a.cc:6:23: error: 'max' was not declared in this scope 6 | printf("%d\n",max(a*b,c*d)); | ^~~
s820740182
p03826
C++
#include<stdio.h> int main() { int A,B,C,D; int S1,S2; scanf("%d%d%d%d",&A,&B,&C,&D); S1=A*B; S2=C*D; if(S1>=S2){ printf("%d\n",S1); } else{ printf("%d\n",S2); } return ; }
a.cc: In function 'int main()': a.cc:21:3: error: return-statement with no value, in function returning 'int' [-fpermissive] 21 | return ; | ^~~~~~
s068999621
p03826
C++
#include<iostream> using namespace std; int main() { int A, B, C, D; if(A * B > C * D)cout << A * B << endl;; else cout << C * D<< endl; return 0; }
a.cc: In function 'int main()': a.cc:9:9: error: 'else' without a previous 'if' 9 | else cout << C * D<< endl; | ^~~~
s700417507
p03826
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,ans; cin>>a>>b>>c>>d; if(a*b>c*d){ ans=a*b } else if(a*b==c*d){ ans=a*b; } else{ ans=c*d; } cout<<ans<<endl; }
a.cc: In function 'int main()': a.cc:8:12: error: expected ';' before '}' token 8 | ans=a*b | ^ | ; 9 | } | ~
s859288158
p03826
C++
use std::env; use std::io::*; use std::str::*; fn read<T: FromStr>() -> T { let stdin = stdin(); let s = stdin.bytes().map(|c| c.unwrap() as char) .skip_while(|c| c.is_whitespace()) .take_while(|c| !c.is_whitespace()) .collect::<String>(); s.parse::<T>().ok().unwrap() } fn main() { // main の引数 /* 引数なしのときargs.len() = 1; */ let args: Vec<String> = env::args().collect(); let A = read::<i32>(); let B = read::<i32>(); let C = read::<i32>(); let D = read::<i32>(); if A*B > B*C { println!("{}", A*B); } else { println!("{}", C*D); } }
a.cc:1:1: error: 'use' does not name a type 1 | use std::env; | ^~~ a.cc:2:1: error: 'use' does not name a type 2 | use std::io::*; | ^~~ a.cc:3:1: error: 'use' does not name a type 3 | use std::str::*; | ^~~ a.cc:5:1: error: 'fn' does not name a type 5 | fn read<T: FromStr>() -> T { | ^~ a.cc:14:1: error: 'fn' does not name a type 14 | fn main() { | ^~
s982598396
p03826
C++
#include<iostream> using namespace std; int a,b,c,d; int main() { cin >> a >> b >> c >> d; if(a*b>c*d)printf("%d"a*b); else printf("%d"c*d); }
a.cc: In function 'int main()': a.cc:7:21: error: unable to find string literal operator 'operator""a' with 'const char [3]', 'long unsigned int' arguments 7 | if(a*b>c*d)printf("%d"a*b); | ^~~~~ a.cc:8:15: error: unable to find string literal operator 'operator""c' with 'const char [3]', 'long unsigned int' arguments 8 | else printf("%d"c*d); | ^~~~~
s058906909
p03826
C++
// ConsoleApplication13.cpp : アプリケーションのエントリ ポイントを定義します。 // #include "stdafx.h" #include<iostream> #include<vector> #include<cstdio> #include<cmath> using namespace std; int main() { long long int i, j, k, l, m,flag,N; long long int sum; m = 0; sum = 1; flag = 0; cin >> N; long long int prime[300] = {}; long long int jou[300] = {}; prime[0] = 2; for (i = 3; i <= N; i+=2) { flag = 0; for (j = 2; j <=sqrt(i) ; j++) { if (i%j == 0) { flag = 1; break; } } if (flag == 0) { m++; prime[m] = i; } } k = 0; long long int cons = N; for (k = 0; prime[k] != 0; k++) { while (N) { N /= prime[k]; jou[k] += N; } N = cons; } for (k = 0; jou[k] != 0; k++) { sum = sum*(jou[k]+1)%1000000007; } cout << sum << endl; return 0; }
a.cc:4:10: fatal error: stdafx.h: No such file or directory 4 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s254887218
p03826
C++
#include <iostream> using namespace std; int main(){ int a,b,c,d; cin >> a >> b >> c >> d; cout << (a*b>c*d)?a*b:c*d << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:29: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 7 | cout << (a*b>c*d)?a*b:c*d << endl; | ~~~~^~~~~~~
s365974010
p03826
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A, B, C, D; cin >> A >> B >> C >> D; if (A*B>C*D) cout << A*B; else cout C*D; }
a.cc: In function 'int main()': a.cc:8:18: error: expected ';' before 'C' 8 | else cout C*D; | ^~ | ;
s301648395
p03826
C++
#include<iostream> #include<string> int main() { int a, b,c,d;     std::cin >> a >> b >> c >> d; if (a*b - c*d >= 0) { std::cout << a*b << std::endl; } else { std::cout << c*d << std::endl; } }
a.cc:5:1: error: extended character   is not valid in an identifier 5 |   | ^ a.cc:6:1: error: extended character   is not valid in an identifier 6 |   | ^ a.cc: In function 'int main()': a.cc:5:1: error: '\U000000a0' was not declared in this scope 5 |   | ^
s824092658
p03826
C++
a;b;c;d;main(){ scanf("%d%d%d%d",&a,&b,&c,&d); printf("%d\n",a*b>c*d?a*b:c*d); }
a.cc:1:1: error: 'a' does not name a type 1 | a;b;c;d;main(){ | ^ a.cc:1:3: error: 'b' does not name a type 1 | a;b;c;d;main(){ | ^ a.cc:1:5: error: 'c' does not name a type 1 | a;b;c;d;main(){ | ^ a.cc:1:7: error: 'd' does not name a type 1 | a;b;c;d;main(){ | ^ a.cc:1:9: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 1 | a;b;c;d;main(){ | ^~~~ a.cc: In function 'int main()': a.cc:2:21: error: 'a' was not declared in this scope 2 | scanf("%d%d%d%d",&a,&b,&c,&d); | ^ a.cc:2:24: error: 'b' was not declared in this scope 2 | scanf("%d%d%d%d",&a,&b,&c,&d); | ^ a.cc:2:27: error: 'c' was not declared in this scope 2 | scanf("%d%d%d%d",&a,&b,&c,&d); | ^ a.cc:2:30: error: 'd' was not declared in this scope 2 | scanf("%d%d%d%d",&a,&b,&c,&d); | ^ a.cc:2:3: error: 'scanf' was not declared in this scope 2 | scanf("%d%d%d%d",&a,&b,&c,&d); | ^~~~~ a.cc:3:3: error: 'printf' was not declared in this scope 3 | printf("%d\n",a*b>c*d?a*b:c*d); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | a;b;c;d;main(){
s931515708
p03826
C
#include<cstdio> #include<cmath> #include<algorithm> using namespace std; int main() { long A,B,C,D,E,F; while(scanf("%ld%ld%ld%ld",&A,&B,&C,&D)!=EOF) { E=A*B; F=C*D; if(E>=F) printf("%ld\n",E); else printf("%ld\n",F); } return 0; }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s937268699
p03826
C++
#include <iostream> using namespace std; int main(){ int A,B,C,D; cin >> A >> B >> C >> D; if(A*B > C*D) cout << A*B; else cout << C*D }
a.cc: In function 'int main()': a.cc:8:25: error: expected ';' before '}' token 8 | else cout << C*D | ^ | ; 9 | } | ~
s745101977
p03826
C++
#include <iostream> #include <cstdlib> #include <time> using namespace std; int main() { srand(time(&NULL)); cout << rand(); return 0; }
a.cc:3:10: fatal error: time: No such file or directory 3 | #include <time> | ^~~~~~ compilation terminated.
s630637808
p03826
C++
int main(){int a,b,c,d;scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d\n",a*b>c*d?a*b:c*d);}
a.cc: In function 'int main()': a.cc:1:24: error: 'scanf' was not declared in this scope 1 | int main(){int a,b,c,d;scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d\n",a*b>c*d?a*b:c*d);} | ^~~~~ a.cc:1:54: error: 'printf' was not declared in this scope 1 | int main(){int a,b,c,d;scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d\n",a*b>c*d?a*b:c*d);} | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | int main(){int a,b,c,d;scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d\n",a*b>c*d?a*b:c*d);}
s268061967
p03826
C++
int main(){int a,b,c,d;cin>>a>>b>>c>>d;printf("%d\n",a*b>c*d?a*b:c*d);}
a.cc: In function 'int main()': a.cc:1:24: error: 'cin' was not declared in this scope 1 | int main(){int a,b,c,d;cin>>a>>b>>c>>d;printf("%d\n",a*b>c*d?a*b:c*d);} | ^~~ a.cc:1:40: error: 'printf' was not declared in this scope 1 | int main(){int a,b,c,d;cin>>a>>b>>c>>d;printf("%d\n",a*b>c*d?a*b:c*d);} | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' +++ |+#include <cstdio> 1 | int main(){int a,b,c,d;cin>>a>>b>>c>>d;printf("%d\n",a*b>c*d?a*b:c*d);}
s145219281
p03826
C++
#include<iostream> int main() { int v_1, s_1, v_2, s_2,result; //縦 Vertical,横 side より(google翻訳) あと余計な変数増やしたくないですがresultは条件演算子の真、偽の両方でstd::coutを書くのがめんどくさかったから std::cin >> v_1 >> s_1 >> v_2 >> s_2; v_1*s_1 >= v_2 * s_2 ? result = v_1 * s_1 : result = v_2 * s_2; std::cout << result << std::endl; return 0;
a.cc: In function 'int main()': a.cc:11:18: error: expected '}' at end of input 11 | return 0; | ^ a.cc:3:12: note: to match this '{' 3 | int main() { | ^
s807676364
p03826
C++
// g++ macro.cpp -std=c++14 #include <bits/stdc++.h> //STL include typedef long long ll;// long long int const int INF = 1e9; const int MOD = 1e9+7; const ll LINF = 1e18; using namespace std;//namespace #define dump(x) cout << #x << " = " << (x) << endl;// debug cout #define YES(n) cout << ((n) ? "YES" : "NO" ) << endl; #define Yes(n) cout << ((n) ? "Yes" : "No" ) << endl; #define FOR(i,a,b) for(int i=(a);i<(b);++i)// for macro #define REP(i,n) for(int i=0;i<(n);++i) #define REPR(i,n) for(int i=n;i>=0;i--) #define CIN(x) int x;cin>>x; #define COUT(x) cout<<(x)<<endl; #define VECCIN(x) for(auto&youso_: (x) )cin>>youso_; #define VECCOUT(x) for(auto&youso_: (x) )cout<<youso_<<" ";cout<<endl; #define ALL(obj) (obj).begin(),(obj).end()// iterator #define P pair<int,int> #define V vector<int> #define pb(a) push_back(a)//push_back #define mp make_pair// make_pair int main(){ CIN(a);CIN(b);CIN(c);CIN(d); COUT(max(a*b,c*d); return 0; }
a.cc:37:2: error: unterminated argument list invoking macro "COUT" 37 | } | ^ a.cc: In function 'int main()': a.cc:35:5: error: 'COUT' was not declared in this scope 35 | COUT(max(a*b,c*d); | ^~~~ a.cc:35:9: error: expected '}' at end of input 35 | COUT(max(a*b,c*d); | ^ a.cc:32:11: note: to match this '{' 32 | int main(){ | ^
s185832790
p03826
C++
#include<stdio.h> int main(){ scanf("%d %d %d %d"); if(a*b>=c*d){ printf("%d\n",a*b); }else{ printf("%d\n",c*d); } }
a.cc: In function 'int main()': a.cc:5:8: error: 'a' was not declared in this scope 5 | if(a*b>=c*d){ | ^ a.cc:5:10: error: 'b' was not declared in this scope 5 | if(a*b>=c*d){ | ^ a.cc:5:13: error: 'c' was not declared in this scope 5 | if(a*b>=c*d){ | ^ a.cc:5:15: error: 'd' was not declared in this scope 5 | if(a*b>=c*d){ | ^
s947541147
p03826
C++
#include<bits/stdc++.h> using namespace std; typedef long long LL; int main(){ ll a,b,c,d; cin >> a >> b >> c >> d; cout << max(a*b,c*d) << endl; }
a.cc: In function 'int main()': a.cc:6:5: error: 'll' was not declared in this scope; did you mean 'LL'? 6 | ll a,b,c,d; | ^~ | LL a.cc:7:12: error: 'a' was not declared in this scope 7 | cin >> a >> b >> c >> d; | ^ a.cc:7:17: error: 'b' was not declared in this scope 7 | cin >> a >> b >> c >> d; | ^ a.cc:7:22: error: 'c' was not declared in this scope 7 | cin >> a >> b >> c >> d; | ^ a.cc:7:27: error: 'd' was not declared in this scope 7 | cin >> a >> b >> c >> d; | ^
s243746661
p03826
C++
#include <cstdio> #include <math> using namespace std; int main(){ int A,B,C,D; scanf("%d %d %d %d",&A,&B,&C,&D); printf("%d\n",max(A*B,C*D)); return 0; }
a.cc:2:10: fatal error: math: No such file or directory 2 | #include <math> | ^~~~~~ compilation terminated.
s209145501
p03826
C++
#include<iostream> using namespace std; int main(){ int a,b,c,d,sqr1,sqr2; cin >> a >> b>> c > d; sqr1 = a*b; sqr2 = c*d; if(sqr1 > sqr2){ cout << sqr1 << endl; } else{ cout << sqr2 << endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:19: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 5 | cin >> a >> b>> c > d; | ~~~~~~~~~~~~~~~~~ ^ ~ | | | | | int | std::basic_istream<char>::__istream_type {aka std::basic_istream<char>} a.cc:5:19: note: candidate: 'operator>(int, int)' (built-in) 5 | cin >> a >> b>> c > d; | ~~~~~~~~~~~~~~~~~~^~~ a.cc:5:19: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:5:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | cin >> a >> b>> c > d; | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:5:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | cin >> a >> b>> c > d; | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:5:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | cin >> a >> b>> c > d; | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:5:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | cin >> a >> b>> c > d; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:5:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>' 5 | cin >> a >> b>> c > d; | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:5:21: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | cin >> a >> b>> c > d; | ^ /usr/include/c++/14/string_view:702:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:5:21: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | cin >> a >> b>> c > d; | ^ /usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:5:21: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 5 | cin >> a >> b>> c > d; | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3915:5: note: template argument deduction/substitution failed: a.cc:5:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 5 | cin >> a >> b>> c > d; | ^ /usr/include/c++/14/bits/basic_string.h:3929:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3929 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3929:5: note: template argument deduction/substitution failed: a.cc:5:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 5 | cin >> a >> b>> c > d; | ^ /usr/include/c++/14/bits/basic_string.h:3942:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3942 | operator>(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3942:5: note: template argument deduction/substitution failed: a.cc:5:21: note: mismatched types 'const _CharT*' and 'std::basic_istream<char>' 5 | cin >> a >> b>> c > d; | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2619:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator>(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2619 | operator>(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2619:5: note: template argument deduction/substitution failed: a.cc:5:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::tuple<_UTypes ...>' 5 | cin >> a >> b>> c > d; | ^
s179923678
p03826
C++
#include <iostream> #include <stdio.h> using namespace std; int main() { int A; int B; int C; int D; scanf("%d%d%d%d",&A,&B,&C,&D); int area1=A*B; int area2=C*D; if (area1>area2) printf("%d",area1); else printf("%d",area2); return 1 }
a.cc: In function 'int main()': a.cc:21:9: error: expected ';' before '}' token 21 | return 1 | ^ | ; ...... 24 | } | ~
s216428947
p03826
C++
#include <iostream> #include <stdio.h> using namespace std; int main() { int A,B,C,D; scanf("%d%d%d%d",A,B,C,D); int area1=A*B; int area2=C*D; if (area1>area2) printf("%d",area1); else printf("%d",area2); return 0 }
a.cc: In function 'int main()': a.cc:17:9: error: expected ';' before '}' token 17 | return 0 | ^ | ; 18 | } | ~
s628539153
p03826
C++
#include<stdio.h> #include<iostream> using namespace std; int main() { int A,B,C,D; cout<<"enter length and breadth of first rectangle and second rectangle\n"; scanf("%d%d%d%d",&A,&B,&C,&D); int a=A*B; int b=C*D; if(A>=1&&A<=10000&&B>=1&&B<=10000&&C>=1&&C<=10000&&D>=1&&D<=10000) { if(a>b) { printf("%d",a); } if(b>a) { printf("%d",b); } if(b==a) { printf("%d",a); } } return 0 }
a.cc: In function 'int main()': a.cc:30:9: error: expected ';' before '}' token 30 | return 0 | ^ | ; 31 | } | ~
s605221751
p03826
C++
#include<iostream> #include<stdio.h> #include<stdlib.h> using namespace std; int main() {float A,B,C,D,A1,A2; cin>>A;cout<<" "; cin>>B;cout<<" "; cin>>C;cout<<" "; cin>>D; A1=A*B; A2=C*D; if(A1>A2) {cout<<A1;} elseif(A1<A2) {cout<<A2;} else {cout<<A1;} return 0; }
a.cc: In function 'int main()': a.cc:19:1: error: 'elseif' was not declared in this scope 19 | elseif(A1<A2) | ^~~~~~ a.cc:21:1: error: 'else' without a previous 'if' 21 | else | ^~~~
s789585436
p03826
C
#include<stdio.h> int main() { int a,b,c,d,e,f; scanf("%d,%d,%d,%d",&a,&b,&c,&d); e=a*b; f=c*d; if(e>f) { printf("highest area=%d",e); } else { pintf("highest area=%d",f); } }
main.c: In function 'main': main.c:12:4: error: implicit declaration of function 'pintf'; did you mean 'printf'? [-Wimplicit-function-declaration] 12 | { pintf("highest area=%d",f); | ^~~~~ | printf
s761582011
p03826
C
#include<stdio.h> void main() { int a,b,c,d; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); if(a*b>c*d) {printf("%d",a*b)}; if(a*b<c*d) {printf("%d",c*d)}; if(a*b==c*d) {printf("%d",c*d)}; }
main.c: In function 'main': main.c:10:18: error: expected ';' before '}' token 10 | {printf("%d",a*b)}; | ^ | ; main.c:12:18: error: expected ';' before '}' token 12 | {printf("%d",c*d)}; | ^ | ; main.c:14:18: error: expected ';' before '}' token 14 | {printf("%d",c*d)}; | ^ | ;
s784176004
p03826
C
#include<stdio.h> int main() { int A,B,C,D,E,F; int 1<=A<=10000 ; int 1<=B<=10000; int 1<=C<=10000 ; int 1<=D<=10000; printf ("Enter value of %d %d %d %d",A,B,C,D); scanf ( "%d%d%d%d",&A,&B,&C,&D); E=A*B; F=C*D; if (E>=F) printf ("%d",E); else printf ("%d",F); }
main.c: In function 'main': main.c:5:16: error: expected identifier or '(' before numeric constant 5 | int 1<=A<=10000 ; | ^ main.c:6:16: error: expected identifier or '(' before numeric constant 6 | int 1<=B<=10000; | ^ main.c:7:15: error: expected identifier or '(' before numeric constant 7 | int 1<=C<=10000 ; | ^ main.c:8:14: error: expected identifier or '(' before numeric constant 8 | int 1<=D<=10000; | ^
s305299891
p03826
C
#include<studio.h> int main() {int a,b,c,d,e,f; scanf("%d %d %d %d",&a,&b,&c,&d); e=a*b; f=c*d; if(e>=f) {printf("%d",e); } else{ printf("%d",f); } }
main.c:1:9: fatal error: studio.h: No such file or directory 1 | #include<studio.h> | ^~~~~~~~~~ compilation terminated.
s676250870
p03826
C
#include<studio.h> int main() {int a,b,c,d,e,f; scanf("%d %d %d %d",&a,&b,&c,&d); e=a*b; f=c*d; if(e>=f) {printf("%d",e); } else{ printf("%d",f); } }
main.c:1:9: fatal error: studio.h: No such file or directory 1 | #include<studio.h> | ^~~~~~~~~~ compilation terminated.
s942758217
p03826
C
#include<stdio.h> int main() {int a,b,c,d,e,f; scanf("%d %d %d %d",&a,&b,&c,&d); e=a×b; f=c×d; if(e>=f) {printf("%d",e); } else{ printf("%d",f); } }
main.c: In function 'main': main.c:5:4: error: stray '\303' in program 5 | e=a<U+00D7>b; | ^~~~~~~~ main.c:5:4: error: expected ';' before 'b' 5 | e=a×b; | ^~ | ; main.c:6:4: error: stray '\303' in program 6 | f=c<U+00D7>d; | ^~~~~~~~ main.c:6:4: error: expected ';' before 'd' 6 | f=c×d; | ^~ | ;
s295301444
p03826
C
#include<studio.h> int main() {int a,b,c,d,e,f; scanf("%d %d %d %d",&a,&b,&c,&d); e=a×b; f=c×d; if(e>=f) {printf("%d",e); } else{ printf("%d",f); } }
main.c:1:9: fatal error: studio.h: No such file or directory 1 | #include<studio.h> | ^~~~~~~~~~ compilation terminated.
s280862522
p03826
C++
#include<iostream> using namespace std; void main() { int A,B,C,D,area1,area2; cin>>A; cin>>B; cin>>C; cin>>D; area1=A*B; area2=C*D; if(area1>=area2) {cout<<area1;} else cout<<area2; }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~
s150578970
p03826
Java
import java.util.Scanner; public final class rect { public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); int c = s.nextInt(); int d = s.nextInt(); int e = a*b; int f = c*d; System.out.println(Math.max(e,f)); } }
Main.java:3: error: class rect is public, should be declared in a file named rect.java public final class rect { ^ 1 error
s202377268
p03826
C
#include<stdio.h> void main() { int a,b,c,d; scanf("%d",&a) scanf("%d",&b) scanf("%d",&c) scanf("%d",&d) if(a*b>c*d) {printf("%d",a*b)} if(a*b<c*d) {printf("%d",c*d)} if(a*b==c*d) {printf("%d",c*d)} }
main.c: In function 'main': main.c:5:15: error: expected ';' before 'scanf' 5 | scanf("%d",&a) | ^ | ; 6 | scanf("%d",&b) | ~~~~~
s436858438
p03826
C
#include<stdio.h> int main() { int A,B,C,D,E,F; if { if {1<=A<=10000&&1<=B<=10000}&&if {1<=C<=10000&&1<=D=<10000} printf ("Enter value of %d %d %d %d",A,B,C,D); scanf ( "%d%d%d%d",&A,&B,&C,&D); E=A*B; F=C*D; if (E>=F) printf ("%d",E); else printf ("%d",F); } }
main.c: In function 'main': main.c:5:15: error: expected '(' before '{' token 5 | if { | ^ | ( main.c:6:41: error: expected identifier before 'if' 6 | if {1<=A<=10000&&1<=B<=10000}&&if {1<=C<=10000&&1<=D=<10000} | ^~
s652690481
p03826
C++
#include<iostream> using namespace std; int main() {int a[4], Ar[2], i; cout<<"enter no in serial length of rectangle 1 \nbreadth of rectangle 1\nlength of rectangle 2\n breadth of rectangle 2\n" ; for(i=0;i<4;i++) cin>>a[i] ; for(i=0;i<2;i++) {Ar[i] = a[2i] *a[2i+1]; } if(Ar[0]>Ar[1]) {cout<<"greater area=" <<Ar[0]; } else {cout<<"greater area=" <<Ar[1] ;} return 0; }
a.cc: In function 'int main()': a.cc:8:18: error: invalid types 'int [4][__complex__ int]' for array subscript 8 | {Ar[i] = a[2i] *a[2i+1]; | ^ a.cc:8:25: error: invalid types 'int [4][__complex__ int]' for array subscript 8 | {Ar[i] = a[2i] *a[2i+1]; | ^
s524352348
p03826
C
#include<stdio.h> Int main() { Int a,b,c,d,e,f; Scanf("%d %d %d %d",&a,&b,&c,&d); e=a×b; f=c×d; If (e>=f) {printf("%d",e);} else {printf("%d",f); } }
main.c:3:1: error: unknown type name 'Int'; did you mean 'int'? 3 | Int main() | ^~~ | int main.c: In function 'main': main.c:5:1: error: unknown type name 'Int'; did you mean 'int'? 5 | Int a,b,c,d,e,f; | ^~~ | int main.c:6:1: error: implicit declaration of function 'Scanf'; did you mean 'scanf'? [-Wimplicit-function-declaration] 6 | Scanf("%d %d %d %d",&a,&b,&c,&d); | ^~~~~ | scanf main.c:7:4: error: stray '\303' in program 7 | e=a<U+00D7>b; | ^~~~~~~~ main.c:7:4: error: expected ';' before 'b' 7 | e=a×b; | ^~ | ; main.c:8:4: error: stray '\303' in program 8 | f=c<U+00D7>d; | ^~~~~~~~ main.c:8:4: error: expected ';' before 'd' 8 | f=c×d; | ^~ | ; main.c:9:1: error: implicit declaration of function 'If' [-Wimplicit-function-declaration] 9 | If (e>=f) | ^~ main.c:9:10: error: expected ';' before '{' token 9 | If (e>=f) | ^ | ; 10 | {printf("%d",e);} | ~
s634614184
p03826
C
#include<stdio.h> int main() { int A,B,C,D,E,F; 1<=A<=10000; 1<=B<=10000; 1<=C<=10000; 1<=D=<10000; printf ("Enter value of %d %d %d %d",A,B,C,D); scanf ( "%d%d%d%d",&A,&B,&C,&D); E=A*B; F=C*D; if (E>=F) printf ("%d",E); else printf ("%d",F); }
main.c: In function 'main': main.c:8:16: error: expected expression before '<' token 8 | 1<=D=<10000; | ^
s186923493
p03826
Java
import java.util.*; public class rect { int ar[]=new int[4]; public void input() { int i; Scanner read=new Scanner(System.in); System.out.println("enter"); for(i=0;i<4;i++) { ar[i]=read.nextInt(); } } public int recto() { int a=(ar[0]*ar[1]); int b=(ar[2]*ar[3]); if(a>b) return a; else if(a<b) return b; else return a; } public static void main(String[] args) { rect obj=new rect(); obj.input(); obj.recto(); } }
Main.java:2: error: class rect is public, should be declared in a file named rect.java public class rect ^ 1 error
s998647440
p03826
C
#include<stdio.h> int main() { int A,B,C,D,E,F; if (1<=A<=10000 && 1<=B<=10000 && 1<=C<=10000 && 1<=D=<10000 ) { printf ("Enter value of %d %d %d %d",A,B,C,D); scanf ( "%d%d%d%d",&A,&B,&C,&D); E=A*B; F=C*D; if (E>=F) printf ("%d",E); else printf ("%d",F); } }
main.c: In function 'main': main.c:5:67: error: expected expression before '<' token 5 | if (1<=A<=10000 && 1<=B<=10000 && 1<=C<=10000 && 1<=D=<10000 ) { | ^
s001543272
p03826
C
#include<stdio.h> int main() { int A,B,C,D,E,F; if (1=<A=<10000 && 1=<B=<10000 && 1=<C=<10000 && 1=<D=<10000 &&) { printf ("Enter value of %d %d %d %d",A,B,C,D); scanf ( "%d%d%d%d",&A,&B,&C,&D); E=A*B; F=C*D; if (E>=F) printf ("%d",E); else printf ("%d",F); } }
main.c: In function 'main': main.c:5:19: error: expected expression before '<' token 5 | if (1=<A=<10000 && 1=<B=<10000 && 1=<C=<10000 && 1=<D=<10000 &&) { | ^
s923851532
p03826
C++
#include<iostream> void main() { int A,B,C,D,area1,area2; cin>>A; cin>>B; cin>>C; cin>>D; area1=A*B; area2=C*D; if(area1>=area2) {cout<<area1;} else cout<<area2; }
a.cc:2:1: error: '::main' must return 'int' 2 | void main() | ^~~~ a.cc: In function 'int main()': a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | cin>>A; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:11:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 11 | {cout<<area1;} | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 13 | cout<<area2; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s563871658
p03826
Java
import java.io.*; import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int a=Integer.parseInt(br.read()); int b=Integer.parseInt(br.read()); int c=Integer.parseInt(br.read()); int d=Integer.parseInt(br.read()); int area=a*b; int area1=c*d; if(area>=area1) System.out.println(area); else if(area<area1) System.out.println(area1); }}
Main.java:10: error: incompatible types: int cannot be converted to String int a=Integer.parseInt(br.read()); ^ Main.java:11: error: incompatible types: int cannot be converted to String int b=Integer.parseInt(br.read()); ^ Main.java:12: error: incompatible types: int cannot be converted to String int c=Integer.parseInt(br.read()); ^ Main.java:13: error: incompatible types: int cannot be converted to String int d=Integer.parseInt(br.read()); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 4 errors
s418519552
p03826
C++
#include<iostream.h> void main() { int A,B,C,D,area1,area2; cin>>A; cin>>B; cin>>C; cin>>D; area1=A*B; area2=C*D; if(area1>=area2) {cout<<area1;} else cout<<area2; }
a.cc:1:9: fatal error: iostream.h: No such file or directory 1 | #include<iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s660653240
p03826
C++
#include<iostream.h> void main() { int A,B,C,D,area1,area2; cin>>A; cin>>B; cin>>C; cin>>D; area1=A*B; area2=C*D; if(area1>=area2) {cout<<area1;} else cout<<area2; }
a.cc:1:9: fatal error: iostream.h: No such file or directory 1 | #include<iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s334398823
p03826
C++
#include<iostream> #include<stdio.h> int main( ){ int A,B,C,D,area1,area2; A=5; B=10; C=12; D=20; area1=A*B; area2=C*D; if (area1>area2){ cout<<area1<<endl; } else { cout<<area2<<endl; } return0; }
a.cc: In function 'int main()': a.cc:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 12 | cout<<area1<<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:12:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 12 | cout<<area1<<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) | ^~~~ a.cc:15:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 15 | cout<<area2<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:15:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 15 | cout<<area2<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:17:1: error: 'return0' was not declared in this scope 17 | return0; | ^~~~~~~