submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s475187239
p03671
C++
#include <bits/stdc++.h> using namespace std; int main () { int a,b,c; cin >> a >> b >> c; cout << min(a+b,a+c,b+c) ; }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int...
s462287703
p03671
C++
#include <bits/stdc++.h> using namespace std; itn main () { int a,b,c; cin >> a >> b >> c; cout << min(a+b,a+c,b+c) ; }
a.cc:4:1: error: 'itn' does not name a type; did you mean 'int'? 4 | itn main () { | ^~~ | int
s979271061
p03671
C++
print(sum(sorted(list(map(int,input().split())), reverse = True)[:2]))
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token 1 | print(sum(sorted(list(map(int,input().split())), reverse = True)[:2])) | ^
s494987313
p03671
C++
#include <iostream> #include <vector> using namespace std; int a, b, c; vector<int> vec(3); int main() { for (int i=0;i<3;i++) cin >> vec[i]; sort(vec.begin(), vec.end()); cout << vec[0]+vec[1] << endl; }
a.cc: In function 'int main()': a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'short'? 8 | sort(vec.begin(), vec.end()); | ^~~~ | short
s974056726
p03671
C++
#include <iostream> #include <vector> #inclide <algorithm> int main() { int a; int b; int c; std::cin >> a >> b >> c; std::vector<int> bell{a, b, c}; std::sort(bell.begin(), bell.end()); std::cout << bell[0] + bell[1] << std::endl; return 0; }
a.cc:3:2: error: invalid preprocessing directive #inclide; did you mean #include? 3 | #inclide <algorithm> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:14:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'? 14 | std::sort(bell.begin(), bell.end()); | ^~~~ ...
s609442695
p03671
C++
#include <iostream> #include <vector> int main() { int a; int b; int c; std::cin >> a >> b >> c; std::vector<int> bell{a, b, c}; std::sort(bell.begin(), bell.end()); std::cout << bell[0] + bell[1] << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:13:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'? 13 | std::sort(bell.begin(), bell.end()); | ^~~~ | qsort
s472510981
p03671
C++
#include <iostream> #include <vector> int main() { int a; int b; int c; std::cin >> a >> b >> c; std::vector<int> bell{a, b, c}; // 並べ替える std::sort(bell.begin(), bell.end()); std::cout << bell[0] + bell[1] << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:14:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'? 14 | std::sort(bell.begin(), bell.end()); | ^~~~ | qsort
s300076903
p03671
C++
#include <bits/stdc++.h> #define FOR(i, n) for(int i = 0;i <n;i++) #define RFOR(i, n) for(int i = n;i >= 0;i--) #define REP(i, m, n) for(int i = m;i < n;i++) #define RREP(i, m, n) for(int i = m;i >= n;i--) #define INF 999999999 using namespace std; int main(int argc, char const *argv[]) { int n[3],a,b,c; cin>>a>>b...
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int...
s627687652
p03671
C++
#include <bits/stdc++.h> #define FOR(i, n) for(int i = 0;i <n;i++) #define RFOR(i, n) for(int i = n;i >= 0;i--) #define REP(i, m, n) for(int i = m;i < n;i++) #define RREP(i, m, n) for(int i = m;i >= n;i--) #define INF 999999999 using namespace std; int main(int argc, char const *argv[]) { int n[3],a,b,c; cin>>a>>b...
a.cc: In function 'int main(int, const char**)': a.cc:17:26: error: expected ';' before 'cout' 17 | m = min(n[0],n[1],n[2]) | ^ | ; 18 | cout<<m<<endl; | ~~~~ In file included from /usr/include/c++/14/algorithm:60, ...
s084411421
p03671
C++
#include <bits/stdc++.h> #define FOR(i, n) for(int i = 0;i <n;i++) #define RFOR(i, n) for(int i = n;i >= 0;i--) #define REP(i, m, n) for(int i = m;i < n;i++) #define RREP(i, m, n) for(int i = m;i >= n;i--) #define INF 999999999 using namespace std; int main(int argc, char const *argv[]) { int n[3],a,b,c; cin>>a>>b...
a.cc: In function 'int main(int, const char**)': a.cc:17:7: error: cannot resolve overloaded function 'max' based on conversion to type 'int' 17 | m = max{n[0],n[1],n[2]} | ^~~
s991381612
p03671
C++
#include <bits/stdc++.h> #define FOR(i, n) for(int i = 0;i <n;i++) #define RFOR(i, n) for(int i = n;i >= 0;i--) #define REP(i, m, n) for(int i = m;i < n;i++) #define RREP(i, m, n) for(int i = m;i >= n;i--) #define INF 999999999 using namespace std; int main(int argc, char const *argv[]) { int n[3],a,b,c; cin>>a>>b...
a.cc: In function 'int main(int, const char**)': a.cc:16:7: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '<unresolved overloaded function type>') 16 | cout<<max{n[0],n[1],n[2]}<<endl; | ~~~~^~~~~ In file included from /usr/include/c++/14/istream:41...
s560211654
p03671
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; cout << min(a+b, b+c, c+a) << endl; }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int...
s689095657
p03671
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c;cin>>a>>b>>c;cout<<min([a+b,b+c,c+a]);}
a.cc: In function 'int main()': a.cc:4:38: error: expected ',' before '+' token 4 | int a,b,c;cin>>a>>b>>c;cout<<min([a+b,b+c,c+a]);} | ^ | , a.cc:4:38: error: expected identifier before '+' token a.cc:4:40: error: expected ']' ...
s844610489
p03671
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c;cin>>a>>b>>c;cout<<max{(a+b,b+c,c+a)};}
a.cc: In function 'int main()': a.cc:4:30: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '<unresolved overloaded function type>') 4 | int a,b,c;cin>>a>>b>>c;cout<<max{(a+b,b+c,c+a)};} | ~~~~^~~~~ In file included from /usr/in...
s680909544
p03671
C
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < n; i++) #define repi(i, start, end) for(int i = start; i < end; i++) #define all(x) (x).begin(), (x).end() #define debug(x) cout << (x) << endl; #define INF (1e9) int dx[] = {0, 1, 0, -1}; int dy[] = {-1, 0, 1, 0}; typedef long long ...
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s976460777
p03671
Java
package main import "fmt" func main() { var a, b, c int fmt.Scan(&a, &b, &c) s := []int{a+b, b+c, c+a} min := s[0] for _, i := range s { if i < min { min = i } } fmt.Println(min) }
Main.java:1: error: ';' expected package main ^ Main.java:3: error: <identifier> expected import "fmt" ^ 2 errors
s454710016
p03671
C++
#include <iostream> #include <algorithm> #include <math.h> #include <string> using namespace std; int main(){ int A, B, C, D ,E ,F; string S,Sa,Sb,Sc; cin >> A >> B >> C; sort(A,B,C); cout << A + B << endl; return 0; }
In file included from /usr/include/c++/14/algorithm:61, from a.cc:2: /usr/include/c++/14/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]': /usr/...
s305231085
p03671
C++
#include <iostream> #include <string> #include <utility> #include <algorithm> #include <map> #include <vector> #include <cmath> #include <cstdlib> #include <queue> #include <stack> using namespace std; #define REP(i, n) for(int i = 0;i < n;i++) #define REPR(i, n) for(int i = n;i >= 0;i--) #define FOR(i, m, n) for(int...
a.cc: In function 'int main()': a.cc:27:55: error: expected '}' at end of input 27 | cout << min(a + b, min(a + c, b + c)) << endl; | ^ a.cc:24:11: note: to match this '{' 24 | int main(){ | ^
s802510354
p03671
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 x = Math.max(a,b); int y = Math.max(x,c) int z = a+b+c; ...
Main.java:11: error: ';' expected int y = Math.max(x,c) ^ 1 error
s637496341
p03671
C++
#include <iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; min_total = 100000 if(min_total >= a + b) min_total = a + b; if(min_total >= b + c) min_total = b + c; if(min_total >= c + a) min_total = c + a; cout << min_total << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'min_total' was not declared in this scope 7 | min_total = 100000 | ^~~~~~~~~
s256242449
p03671
C++
#include <iostream> #include <algorithm> #include <vector> #include <queue> #include <string> using namespace std; typedef long long ll; int main() { vector<int> a(3); cin >> a[0] >> a[1] >> a[2]; int res = *min_element(a.begin, a.end); a.erase(min_element(a.begin, a.end)); cout << res + (*min_element(a.begin,a...
a.cc: In function 'int main()': a.cc:14:31: error: no matching function for call to 'min_element(<unresolved overloaded function type>, <unresolved overloaded function type>)' 14 | int res = *min_element(a.begin, a.end); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /usr/includ...
s883002000
p03671
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; cin >> a >> b >> c; int min=a; if(max<b)max=b; if(max<c)max=c; cout << a+b+c-max; return 0...
a.cc: In function 'int main()': a.cc:15:8: error: parse error in template argument list 15 | if(max<b)max=b; | ^~~~~ a.cc:15:13: error: cannot resolve overloaded function 'max' based on conversion to type 'bool' 15 | if(max<b)max=b; | ^ a.cc:15:18: error: overloaded function...
s089866987
p03671
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; cin >> a >> b >> c; int min=a; if(max<b)min=b; if(max<c)min=c; cout << a+b+c-max; return 0...
a.cc: In function 'int main()': a.cc:15:8: error: parse error in template argument list 15 | if(max<b)min=b; | ^~~~~ a.cc:15:13: error: cannot resolve overloaded function 'max' based on conversion to type 'bool' 15 | if(max<b)min=b; | ^ a.cc:16:8: error: parse error in templ...
s634167542
p03671
C++
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> P(3); for(int i=0; i<3; i++){ cin>>P.at(i); } sort(P.begin(),P.end()); cout<<p.at(0)+P.at(1)<<endl; }
a.cc: In function 'int main()': a.cc:12:9: error: 'p' was not declared in this scope 12 | cout<<p.at(0)+P.at(1)<<endl; | ^
s596810656
p03671
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Atcoderrrrrrr { static void Main(string[] args) { int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); Conso...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.L...
s688671677
p03671
C++
a,b,c = gets.split.map &:to_i p [a,b,c].sort.first(2).inject(:+)
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c = gets.split.map &:to_i | ^
s664218551
p03671
C++
#include<iostream> #include<algorithm> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; cout<<a+b+c-max()<<endl; return 0; }
a.cc: In function 'int main()': a.cc:10:24: error: no matching function for call to 'max()' 10 | cout<<a+b+c-max()<<endl; | ~~~^~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/inclu...
s055281905
p03671
C++
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; cout<<a+b+c-max({a,b,c})<<endl; return 0; }
a.cc: In function 'int main()': a.cc:9:24: error: no matching function for call to 'max(<brace-enclosed initializer list>)' 9 | cout<<a+b+c-max({a,b,c})<<endl; | ~~~^~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_...
s346923024
p03671
C
#include<stdio.h> #include<stdlib.h> #include<string.h> //絶対値 long long int change_plus(long long int a) { if (a < 0) { return -a; } if (a >= 0) { return a; } } //大小比較(大) long long int big(long long int a, long long int b) { if (a >= b) { return a; } else { return b; } } //大小比較(小) long long int small(long lo...
main.c:29:1: error: return type defaults to 'int' [-Wimplicit-int] 29 | main() { | ^~~~ main.c: In function 'main': main.c:32:35: error: invalid operands to binary & (have 'long long int *' and 'long long int') 32 | scanf("%lld%lld%lld",&n,&m&k); | ~~^ | ...
s799266647
p03671
C
#include<stdio.h> int main(void){ int A, B, C; if (scanf_s("%d %d %d", &A, &B, &C) == 1); if (A >= 1 && B >= 1 && C >= 1 && A <= 10000 && B <= 10000 && C <= 10000){ if (A + B<A + C){ if (A + B<B + C) printf("%d", A + B); else printf("%d", B + C); } else{ if (A + C<B + C) printf("%d", A + ...
main.c: In function 'main': main.c:5:13: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 5 | if (scanf_s("%d %d %d", &A, &B, &C) == 1); | ^~~~~~~ | scanf
s175730751
p03671
C
#include<stdio.h> int main(void){ int A,B,C; if(scanf("%x %x %x",&A,&B,&C) == 1); if(A >=1 && B >=1 && C >=1 && A <= 10000 && B <= 10000 && C <= 10000){ if (A+B<A+C){ if (A+B<B+C) printf("%d",A+B); else printf("%d",B+C); } else{ if(A+C<B+C) printf("%d",A+C);...
main.c: In function 'main': main.c:20:1: error: expected declaration or statement at end of input 20 | } | ^
s101984803
p03671
C
#include<stdio.h> int main(void){ int A,B,C; if(scanf("%x %x %x",&A,&B,&C)) == 1); if(A >=1 && B >=1 && C >=1 && A <= 10000 && B <= 10000 && C <= 10000){ if (A+B<A+C){ if (A+B<B+C) printf("%d",A+B); else printf("%d",B+C); } else{ if(A+C<B+C) printf("%d",A+C)...
main.c: In function 'main': main.c:5:34: error: expected expression before '==' token 5 | if(scanf("%x %x %x",&A,&B,&C)) == 1); | ^~ main.c:5:38: error: expected statement before ')' token 5 | if(scanf("%x %x %x",&A,&B,&C)) == 1); | ...
s368062451
p03671
C
#include<stdio.h> int main(){ int i, j, a[3]; for (i = 0; i < 3; i++){ scanf("%d", &a[i]); } for (i = 0; i < 3; i++){ for (j = i; j < 3; j++){ if(a[i] > a[j]){ c = a[i]; a[i] = a[j]; a[j] = c; } } } printf("%d\n", a[0] + a[1]); return 0; }
main.c: In function 'main': main.c:13:9: error: 'c' undeclared (first use in this function) 13 | c = a[i]; | ^ main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
s234528035
p03671
C
#include<stdio.h> int main(){ int i, a[3]; for (i = 0; i < 3; i++){ scanf("%d", &a[i]); } for (i = 0; i < 3; i++){ for (j = i; j < 3; j++){ if(a[i] > a[j]){ c = a[i]; a[i] = a[j]; a[j] = c; } } } printf("%d\n", a[0] + a[1]); return 0; }
main.c: In function 'main': main.c:11:10: error: 'j' undeclared (first use in this function) 11 | for (j = i; j < 3; j++){ | ^ main.c:11:10: note: each undeclared identifier is reported only once for each function it appears in main.c:13:9: error: 'c' undeclared (first use in this function) 13 ...
s169317289
p03671
C++
#include<iostream> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int m=max(a,b); int ma=max(m,c); cout<<a+b+c-ma<<"n¥"; }
a.cc:1:20: warning: extra tokens at end of #include directive 1 | #include<iostream> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int m=max(a,b); int ma=max(m,c); cout<<a+b+c-ma<<"n¥"; } | ^ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gn...
s765015288
p03671
C
#include <stdio.h> int main(){a+b; int a,b,c; scanf("%d%d%d",&a,&b,&c); int min; min=a+b; if(min>a+c) min=a+c; if(min>b+c) min=b+c; printf("%d",min); ...
main.c: In function 'main': main.c:2:24: error: 'a' undeclared (first use in this function) 2 | int main(){a+b; | ^ main.c:2:24: note: each undeclared identifier is reported only once for each function it appears in main.c:2:26: error: 'b' undeclared (first use in this funct...
s194092061
p03671
C
#include <stdio.h> int main(){a+b; int a,b,c; scanf("%d%d%d",&a,&b,&c); int min; min=a+b; if(min>a+c) min=a+c; else if(min>b+c) min=b+c; else min=min; printf("%d",min); return 0; ...
main.c: In function 'main': main.c:2:20: error: 'a' undeclared (first use in this function) 2 | int main(){a+b; | ^ main.c:2:20: note: each undeclared identifier is reported only once for each function it appears in main.c:2:22: error: 'b' undeclared (first use in this function) ...
s184529726
p03671
C
#include <stdio.h> int main(){a+b; int a,b,c; scanf("%d%d%d",&a,&b,&c); int min; min=a+b; if(min>a+c) min=a+c; else if(min>b+c) min=b+c; printf("%d",min); return 0; }
main.c: In function 'main': main.c:2:16: error: 'a' undeclared (first use in this function) 2 | int main(){a+b; | ^ main.c:2:16: note: each undeclared identifier is reported only once for each function it appears in main.c:2:18: error: 'b' undeclared (first use in this function) 2 | ...
s051939547
p03671
C
#include <stdio.h> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); int min; min= a+b; if(min>a+c) min=a+c printf("%d",min); else if(min>b+c) min=b+c printf("%d",min); else printf("%d",min); ...
main.c: In function 'main': main.c:9:28: error: expected ';' before 'printf' 9 | if(min>a+c) min=a+c printf("%d",min); | ^~~~~~~ | ; main.c:11:28: error: expected ';' before 'printf' 11 | if(min>b+c) min=b+c printf("%d",min); ...
s705123895
p03671
C
#include <stdio.h> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); int min; min= a+b; if(min>a+c) min=a+c; printf("%d",min); else if(min>b+c) min=b+c; printf("%d",min); else printf("%d",min); return 0; }
main.c: In function 'main': main.c:10:5: error: 'else' without a previous 'if' 10 | else | ^~~~ main.c:12:5: error: 'else' without a previous 'if' 12 | else | ^~~~
s025904588
p03671
C
#include <stdio.h> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); int min; min a+b; if(min>a+c) min=a+c; printf("%d",&min); else if(min>b+c) min=b+c; printf("%d",&min); else printf("%d",&min); return 0; }
main.c: In function 'main': main.c:7:4: error: expected ';' before 'a' 7 | min a+b; | ^~ | ; main.c:10:1: error: 'else' without a previous 'if' 10 | else | ^~~~ main.c:12:1: error: 'else' without a previous 'if' 12 | else | ^~~~
s372312271
p03671
C
#include <stdio.h> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); int min; min a+b; if(min>a+c) min=a+c; else if(min>b+c) min=b+c; printf("%d",&min); return 0; }
main.c: In function 'main': main.c:7:4: error: expected ';' before 'a' 7 | min a+b; | ^~ | ;
s995008805
p03671
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(a>=b && a>=c) cout << b+c << endl; else if(b>=c && b >=a) cout << a+C << endl; }
a.cc: In function 'int main()': a.cc:10:15: error: 'C' was not declared in this scope 10 | cout << a+C << endl; | ^
s661349037
p03671
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int k=max(a,b,c); cout<<a+b+c-k<<endl; }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int...
s089366996
p03671
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<a+b+c-max(a,b,c)<<endl; }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int...
s313488208
p03671
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <map> using namespace std; int main() { int a[3]; cin >> a[0] >> a[1] >> a[2]; sort(a[0], a[2]); cout << a[0] + a[1] << endl; return 0; }
In file included from /usr/include/c++/14/algorithm:61, from a.cc:4: /usr/include/c++/14/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/inclu...
s705505520
p03671
C
main(a,b,c){scanf("%d%d%d",&a,&b,&c);int max;a<b?b<c?max=c:max=b:a<c?max=c:max=a;printf("%d",a+b+c-max);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);int max;a<b?b<c?max=c:max=b:a<c?max=c:max=a;printf("%d",a+b+c-max);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 'b' de...
s108518578
p03671
C++
#include<iostream> #include<algorithm> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int x=a+b,y=b+c,z=c+a; cout<<min({min({x,y})},z})<<endl; }
a.cc: In function 'int main()': a.cc:8:25: error: expected ')' before '}' token 8 | cout<<min({min({x,y})},z})<<endl; | ~ ^ | ) a.cc: At global scope: a.cc:8:26: error: expected unqualified-id before ')' token 8 | cout<<min({min({x,y})},z})<<endl; ...
s691352085
p03671
C++
#include<iostream> #include<algorithm> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int x=a+b,y=b+c,z=c+a; cout<<min({min(x,y)},z)<<endl; }
In file included from /usr/include/c++/14/bits/stl_algobase.h:71, 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...
s271293194
p03671
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cout<<(a+b+c)-max({a,b,c})<<N<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:37: error: 'N' was not declared in this scope 5 | cout<<(a+b+c)-max({a,b,c})<<N<<endl; | ^
s977195158
p03671
C++
#include "iostream" #include <algorithm> #include <stdlib.h> #include <string> #include <cctype> #include <stack> #include <vector> #include <list> #include <queue> using namespace std; using ll=long long; #define mod 1000000007 int main(int argc, char const *argv[]) { int a,b,c; std::cin >> a >> b >> c; std::...
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/includ...
s484463752
p03671
C++
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 ans = Math.min(Math.min(a+b,b+c),a+c); System.out.println(ans); } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:4:11: error: expected ':' before 'static' 4 | public static void main(String[] args){ | ^~~~~~~ | : a.cc:4:29: error: '...
s285639521
p03671
C++
#include<bits/stdc++.h> using namesapce std; int a,b,c; int main(){ cin>>a>>b>>c; cout<<(a+b+c)-max(a,max(b,c))<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>a>>b>>c; | ^~~ | std::cin In file included from /us...
s170818198
p03671
C++
#include<bits/stdc++.h>//头文件 using namesapce std; int a,b,c;//定义三种价格 int main(){ cin>>a>>b>>c;//输入价格 cout<<(a+b+c)-max(a,max(b,c))<<endl;//按照思(tao)路输出 return 0;//完美结束 }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>a>>b>>c;//输入价格 | ^~~ | std::cin In file included fr...
s765409290
p03671
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; cout<<min(a+b,min(a+c,min(b+c))); return 0; }
a.cc: In function 'int main()': a.cc:7:30: error: no matching function for call to 'min(int)' 7 | cout<<min(a+b,min(a+c,min(b+c))); | ~~~^~~~~ In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, ...
s717956563
p03671
C++
#include <bits/stdc++.h> using namesapce std; int a, b, c; int main() { cin >> a >> b >> c; cout << max(a + b, max(b + c, a + c)) << endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> a >> b >> c; | ^~~ | std::cin In file included fr...
s852474051
p03671
C++
#include<cstdio> using namespace std; int main() { int a[4]; scanf("%d%d%d",&a[1],&a[2],&a[3]); sort(a+1,a+4); if(a[3]>=a[2])printf("%d\n",a[1]+a[2]); else printf("%d\n",a[2]+a[3]); return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'sort' was not declared in this scope; did you mean 'short'? 7 | sort(a+1,a+4); | ^~~~ | short
s286279942
p03671
C++
#include<bits/stdc++.h> using namesapce std; int main() { int a,b,c; cin>>a>>b>>c; cout<<min(a+b,min(a+c,b+c))<<'\n'; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>a>>b>>c; | ^~~ | std::cin In file included from /us...
s727853975
p03671
C++
#include <bits/stdc++.h> using namespace std; int main() { int a[3]; cin >> a[0] >> a[1] >> a[2]; sort(a.begin(), a.end()); cout << a[0] + a[1] << end; }
a.cc: In function 'int main()': a.cc:8:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]' 8 | sort(a.begin(), a.end()); | ^~~~~ a.cc:8:21: error: request for member 'end' in 'a', which is of non-class type 'int [3]' 8 | sort(a.begin(), a.end()); | ...
s668422764
p03671
C++
#include<bits/stdc++.h> using namesapce std; int a,b,c; int main(){ cin>>a>>b>>c; cout<<(a+b+c)-max(a,max(b,c))<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>a>>b>>c; | ^~~ | std::cin In file included from /us...
s680819163
p03671
C++
#include<bits/stdc++.h> using namespace std; int main() {int a[10]; for(int i=1;i<=3;i++) cin>>a[i]; sort(a,a+3); cin<<a[1]+a[2]<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:4: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 8 | cin<<a[1]+a[2]<<endl; | ~~~^~~~~~~~~~~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:8:4: note: candid...
s745329222
p03671
C++
#include<bits/stdc++.h> using namesapce std; int a,b,c int main(){ cin>>a>>b>>c; cout<<(a+b+c)-max(a,max(b,c))<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc:4:1: error: expected initializer before 'int' 4 | int main(){ | ^~~
s763493674
p03671
C++
#include<bits/stdc++.h> using namesapce std; int a,b,c; int main(){ cin>>a>>b>>c; cout<<(a+b+c)-max(a,max(b,c))<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>a>>b>>c; | ^~~ | std::cin In file included from /us...
s622305342
p03671
C++
#include <cstdio> #include <cmath> #include <iostream> #include <cstdlib> #include <string> #include <iomanip> #include <ctime> #include <set> #include <sstream> #include <map> #include <cstring> #include <algorithm> using namespace std; typedef long long ll; int i,a[5]; int main(){ // freopen(".in","r",stdin); // freo...
a.cc: In function 'int main()': a.cc:20:22: error: 'n' was not declared in this scope; did you mean 'yn'? 20 | sort(a+1,a+1+n); | ^ | yn
s621135207
p03671
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,nga,ga,ans; cin>>a>>b>>c; nga=(a>b)? a:b; ga=(nga>c)? nga:c; ans=a+b+c-ga<<endl; cout<<ans; return 0; }
a.cc: In function 'int main()': a.cc:9:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 9 | ans=a+b+c-ga<<endl; | ~~~~~~~~^~~~~~
s565038254
p03671
C++
#include <iostream> #include <algorithm> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; cout << min(a+b,min(a+c,min(b+c))) << endl; }
a.cc: In function 'int main()': a.cc:9:30: error: no matching function for call to 'min(int)' 9 | cout << min(a+b,min(a+c,min(b+c))) << endl; | ~~~^~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, ...
s658516703
p03671
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; cout << min(a+b,min(a+c,min(b+c))) << endl; }
a.cc: In function 'int main()': a.cc:8:30: error: no matching function for call to 'min(int)' 8 | cout << min(a+b,min(a+c,min(b+c))) << endl; | ~~~^~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, ...
s205471421
p03671
C++
#include<bits/stdc++.h> using namespace std; int main() { int a[4]; for(int i=1;i<=3;i++) cin>>a[i]; sort(a+1,a+4); cout<<a+b<<endl; return 0; }
a.cc: In function 'int main()': a.cc:9:13: error: 'b' was not declared in this scope 9 | cout<<a+b<<endl; | ^
s704724255
p03671
C++
#include <bits/stdc++.h> using namespace std; int a,b,c; int d[3]; int main(){ cin>>a>>b>>c; d[3]={a+b,b+c,c+a}; sort(d,d+3); cout<<d[0]<<endl; }
a.cc: In function 'int main()': a.cc:8:20: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment 8 | d[3]={a+b,b+c,c+a}; | ^
s775580103
p03671
C++
#include <bits/stdc++.h> using namespace std; int a,b,c,d[10]; int main(){ cin>>a>>b>>c; d[10]={a+b,b+c,c+a}; sort(d,d+3); cout<<d[0]<<endl; }
a.cc: In function 'int main()': a.cc:7:21: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment 7 | d[10]={a+b,b+c,c+a}; | ^
s639553318
p03671
C++
#include <bits/stdc++.h> using namespace std; int a,b,c,d[3]; int main(){ cin>>a>>b>>c; d[3]={a+b,b+c,c+a}; sort(d,d+3); cout<<d[0]<<endl; }
a.cc: In function 'int main()': a.cc:7:20: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment 7 | d[3]={a+b,b+c,c+a}; | ^
s065097930
p03671
C++
#include <bits/stdc++.h> using namespace std; int a[3],b,c; int main(){ cin>>a>>b>>c; a[3]={a+b,b+c,c+a}; sort(a,a+3); cout<<a[0]<<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 [3]') 6 | cin>>a>>b>>c; | ~~~^~~ | | | | | int [3] | std::istream {aka std::basic_istream<char>} In file included from /usr/i...
s508357248
p03671
C++
#include <bits/stdc++.h> using namespace std; int a,b,c; int main(){ cin>>a>>b>>c; a[3]={a+b,b+c,c+a}; sort(a,a+3); cout<<a[0]<<endl; }
a.cc: In function 'int main()': a.cc:7:4: error: invalid types 'int[int]' for array subscript 7 | a[3]={a+b,b+c,c+a}; | ^ a.cc:9:10: error: invalid types 'int[int]' for array subscript 9 | cout<<a[0]<<endl; | ^ In file included from /usr/include/c++/14/algorithm:61, ...
s347797444
p03671
C++
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; else if(c<=a&&b<=a) { cout<<c+b<<endl; } else if(a<=b&&c<=b) { cout<<c+a<<endl; } else if(a<=c&&b<=c) { cout<<a+b<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'else' without a previous 'if' 7 | else if(c<=a&&b<=a) | ^~~~
s206601946
p03671
C++
#include<bits/stdc++.h> using namespace std; int main() { cin>>a>>b>>c; if (a>b) if (b>c) cout<<b+c<<endl; else if (a>c) cout<<b+c<<endl; else cout<<a+b<<endl; else if (a>c) cout<<a+b<<endl; else if (b>c) cout<<c+a<<endl; else cout<<b+a<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:10: error: 'a' was not declared in this scope 5 | cin>>a>>b>>c; | ^ a.cc:5:13: error: 'b' was not declared in this scope 5 | cin>>a>>b>>c; | ^ a.cc:5:16: error: 'c' was not declared in this scope 5 | cin>>a>>b>>c; | ...
s512981619
p03671
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,m; cin >> a >> b >> c; m = max(a, b, c); cout << a+b+c-m << endl;}
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int...
s909451479
p03671
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; cout << a+b+c-max({a,b,c}) << endl; }
a.cc: In function 'int main()': a.cc:7:20: error: no matching function for call to 'max(<brace-enclosed initializer list>)' 7 | cout << a+b+c-max({a,b,c}) << endl; | ~~~^~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classe...
s405485803
p03671
C++
#include<iostream> #include<cstdio> using namespace std; int a,b,c; int main() { cin>>a>>b>>c; if(a>b && b>c) cout<<a+b<<endl; if(a>b && c>b) cout<<a+c<<endl; if(b>a && a>c) cout<<a+b<<endl; if(b>a && c>a) cout<<b+c<<endl; if(c>a && a>b) cout<<c+a>>endl; if(c>a && b>a) cout<<b+c<<endl;...
a.cc: In function 'int main()': a.cc:12:30: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 12 | if(c>a && a>b) cout<<c+a>>endl; | ~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/string:55, ...
s544731985
p03671
C++
#include<iostream> #include<cstdio> using namespace std; int a,b,c; int main() { cin>>a>>b>>c; if(a>b && b>c) cout<<a+b<<endl; if(a>b && c>b) cout<<a+c<<endl; if(b>a && a>c) cout<<a+b<<endl; if(b>a && c>a) cout<<b+c<<endl; if(c>a && a>b) cout<<c+a>>endl; if(c>a && b>a) cout<<b+c<<endl;...
a.cc: In function 'int main()': a.cc:12:30: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 12 | if(c>a && a>b) cout<<c+a>>endl; | ~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/string:55, ...
s171594672
p03671
C++
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; else if(a<=b&&c<=b)cout<<a+c<<endl; else if(b<=a&&a<=c)cout<<b+a<<endl; else if(b<=a&&c<=a)cout<<b+c<<endl; else if(c<=a&&a<=b)cout<<c+a<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'else' without a previous 'if' 7 | else if(a<=b&&c<=b)cout<<a+c<<endl; | ^~~~
s575200508
p03671
C++
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; else if(a<=b&&c<=b)cout<<a+c<<endl; else if(b<=a&&a<=c)cout<<b+a<<endl; else if(b<=a&&c<=a)cout<<b+c<<endl; else if(c<=a&&a<=b)cout<<c+a<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'else' without a previous 'if' 7 | else if(a<=b&&c<=b)cout<<a+c<<endl; | ^~~~
s843170186
p03671
C++
#include<bits/stdc++.h> using namesapce std; int a,b,c; int main(){ cin>>a>>b>>c; cout<<(a+b+c)-max(a,max(b,c))<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>a>>b>>c; | ^~~ | std::cin In file included from /us...
s633711428
p03671
C++
#include<bits/stdc++.h> using namesapce std; int a,b,c,d; int main(){ cin>>a>>b>>c; d=max(a,max(b,c)); cout<<(a+b+c)-d<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>a>>b>>c; | ^~~ | std::cin In file included from /us...
s077458356
p03671
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; vector<int> vec(3) = {a, b, c}; sort(vec.begin(), vec.end()); cout << vec[0] + vec[1] << endl; }
a.cc: In function 'int main()': a.cc:6:22: error: expected ',' or ';' before '=' token 6 | vector<int> vec(3) = {a, b, c}; | ^
s274678703
p03671
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int vec[3] = {a, b, c}; sort(vec.begin(), vec.end()); cout << vec[0] + vec[1] << endl; }
a.cc: In function 'int main()': a.cc:7:12: error: request for member 'begin' in 'vec', which is of non-class type 'int [3]' 7 | sort(vec.begin(), vec.end()); | ^~~~~ a.cc:7:25: error: request for member 'end' in 'vec', which is of non-class type 'int [3]' 7 | sort(vec.begin(), vec.end()); ...
s699802266
p03671
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; vec[3] = {a, b, c}; sort(vec.begin(), vec.end()); cout << vec[0] + vec[1] << endl; }
a.cc: In function 'int main()': a.cc:6:3: error: 'vec' was not declared in this scope 6 | vec[3] = {a, b, c}; | ^~~
s012540276
p03671
C++
#include <stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; vec[3] = {a, b, c}; sort(vec.begin(), vec.end()); cout << vec[0] + vec[1] << endl; }
a.cc:1:10: fatal error: stdc++.h: No such file or directory 1 | #include <stdc++.h> | ^~~~~~~~~~ compilation terminated.
s984578115
p03671
C++
#include<iostream> int main() { int a,b,c; std::cin>>a>>b>>c; std::cout<<std::min({a+b,b+c,c+a})<<std::endl; return 0; }
a.cc: In function 'int main()': a.cc:6:22: error: no matching function for call to 'min(<brace-enclosed initializer list>)' 6 | std::cout<<std::min({a+b,b+c,c+a})<<std::endl; | ~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14...
s274207356
p03671
C++
#include<iostream> int main() { int a,b,c; std::cin>>a>>b>>c; std::cout<<std::min(a+b,b+c,c+a)<<std::endl; return 0; }
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/includ...
s133779981
p03671
C++
use std::io::*; fn main() { let mut n = read_v(); n.sort(); println!("{}", n[0] + n[1]); } fn read_v() -> Vec<u32> { let mut s = String::new(); stdin().read_line(&mut s).unwrap(); s.split_whitespace() .map(|c| c.parse().ok().unwrap()) .collect() }
a.cc:1:1: error: 'use' does not name a type 1 | use std::io::*; | ^~~ a.cc:3:1: error: 'fn' does not name a type 3 | fn main() { | ^~ a.cc:9:1: error: 'fn' does not name a type 9 | fn read_v() -> Vec<u32> { | ^~
s895396728
p03671
C++
#include <iostream> #include <sstream> #include <math.h> #include <algoritm> #include <string> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; cout<< min({a + b, b+c , c+a}) << endl; return 0; }
a.cc:4:10: fatal error: algoritm: No such file or directory 4 | #include <algoritm> | ^~~~~~~~~~ compilation terminated.
s075155783
p03671
C++
#include <iostream> #include <sstream> #include <math.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; cout<< std::min({a + b, b+c , c+a}) << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:20: error: no matching function for call to 'min(<brace-enclosed initializer list>)' 8 | cout<< std::min({a + b, b+c , c+a}) << endl; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++...
s679126088
p03671
C++
#include <iostream> #include <sstream> #include <math.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; cout<< std::min(a + b, b+c , c+a) << endl; return 0; }
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/includ...
s837357769
p03671
C++
#include <iostream> #include <sstream> #include <math.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; cout<< min(a + b, b+c , c+a) << endl; return 0; }
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/includ...
s078344014
p03671
C++
#include <iostream> #include <sstream> #include <math> using namespace st; int main(){ int a,b,c; cin >> a >> b >> c; cout<< min(a + b, b+c , c+a) << endl; return 0; }
a.cc:3:10: fatal error: math: No such file or directory 3 | #include <math> | ^~~~~~ compilation terminated.
s098272974
p03671
C++
#include <iostream> #include <sstream> #include <math> using namespace st; int main(){ int a,b,c; cin >> a >> b >> c; cout<< min(a + b, b+c , c+a) << endl; return 0; }
a.cc:3:10: fatal error: math: No such file or directory 3 | #include <math> | ^~~~~~ compilation terminated.
s120106343
p03671
C++
#include <iostream> using namespace std; int main() {x = a; if (b > x) { x = b; } else if (c > x) { x = c; } cout << a + b + c - x; return 0;}
a.cc: In function 'int main()': a.cc:6:2: error: 'x' was not declared in this scope 6 | {x = a; | ^ a.cc:6:6: error: 'a' was not declared in this scope 6 | {x = a; | ^ a.cc:7:13: error: 'b' was not declared in this scope 7 | if (b > x) { x = b; } | ^ a.cc:8:18: er...
s807316363
p03671
C++
#include <iostream> using namespace std; int main() int main() { int a, b, c; cin >> a >> b >> c; if ((a + b) < (b + c) && (a + b) < (a + c)) { cout << a + b; } else if ((c + b) < (b + a) && (c + b) < (a + b)) { cout << c + b; } else if ((a + c) < (b + a) && (a + c) < (b + c)) { cout << a + c; } ret...
a.cc:5:1: error: expected initializer before 'int' 5 | int main() | ^~~
s271007032
p03671
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >>a >>b >>c; if ((a+c)>=(b+c) && (a+b)>=(b+c)) cout >> b+c >>endl; else if((a+c)>=(a+b) && (b+c)>=(a+b)) cout >> a+b >>endl; else cout >> a+c >> endl; }
a.cc: In function 'int main()': a.cc:7:48: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int') 7 | if ((a+c)>=(b+c) && (a+b)>=(b+c)) cout >> b+c >>endl; | ~~~~ ^~ ~~~ | ...
s448022675
p03671
C++
str=input() nedan=str.split() max=0 sum=0 for i in range(len(nedan)): if int(nedan[i])>max: max=i for i in range(len(nedan)): if i!=max: sum+=int(nedan[i]) print(sum)
a.cc:1:1: error: 'str' does not name a type 1 | str=input() | ^~~