submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s521278079
p04043
C++
#include <bits/stdc++.h> using namespace std; int a; int b; int c; cin>>a; cin>>b; cin>>c; if(a==5||b==5||c==5 && a+b+c=17){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; }
a.cc:8:1: error: 'cin' does not name a type 8 | cin>>a; | ^~~ a.cc:9:1: error: 'cin' does not name a type 9 | cin>>b; | ^~~ a.cc:10:1: error: 'cin' does not name a type 10 | cin>>c; | ^~~ a.cc:12:1: error: expected unqualified-id before 'if' 12 | if(a==5||b==5||c==5 && a+b+c=17){ |...
s018584113
p04043
C++
// atc.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include "pch.h" #include <iostream> using namespace std; int main() { int a, b, c; bool flg = false; cin >> a >> b >> c; switch (a) { case 5: switch (b) { case 5: ...
a.cc:4:10: fatal error: pch.h: No such file or directory 4 | #include "pch.h" | ^~~~~~~ compilation terminated.
s907183093
p04043
C++
int main(){ int a,b,c; cin >> a >> b >> c; int s[3] = {a,b,c}; int fiveCount = 0; int sevenCount = 0; for(int i=0; i<sizeof(s); i++){ if(s[i] == 5){ fiveCount++; } if(s[i] == 7){ sevenCount++; } } if(fiveCount == 2 && sevenCo...
a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope 5 | cin >> a >> b >> c; | ^~~ a.cc:22:9: error: 'cout' was not declared in this scope 22 | cout << "YES" << endl; | ^~~~ a.cc:22:26: error: 'endl' was not declared in this scope 22 | ...
s556738701
p04043
Java
import java.util.*; 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(); if ((A+B+C)!=17) { System.out.println("No"); } else if(A != 7 && B != 7 && C != 7) { Sys...
Main.java:17: error: reached end of file while parsing }; ^ 1 error
s084823271
p04043
Java
import java.util.*; 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(); if ((A+B+C)!=17) { System.out.println("No"); } else if(A != 7 && B != 7 && C != 7) { Sys...
Main.java:17: error: reached end of file while parsing } ^ 1 error
s876626977
p04043
Java
import java.util.*; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if ((A+B+C)!=17) { System.out.println("No"); } else if(A != 7 && B != 7 && C != 7) { System.out.println("No"); } else if(A != 5 && B ...
Main.java:3: 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) Main.java:16: error: reached end of file while parsing } ^ 2 errors
s610527761
p04043
C
#include<stdio.h> #include<string.h> int main(){ int n,l; scanf("%s",&n); scanf("%s",&l); char str[n][l]; char tmp[l]; for(int i=0;i<n;i++){ scanf("%d",&str[i][l]); } for(int j=1;j<n;j++){ for(int k=1;k<n;j++){ if(strcmp(str[k-1],str[k])>0){ strcpy(tmp,str[k-1]); strcpy(st...
main.c: In function 'main': main.c:23:17: error: 's' undeclared (first use in this function) 23 | printf("%s",s[m]); | ^ main.c:23:17: note: each undeclared identifier is reported only once for each function it appears in
s355652764
p04043
C
#include<stdio.h> #include<string.h> int main(){ int n,l; scanf("%d",&n); scanf("%d",&l); char str[n][l]; char tmp[l]; for(int i=0;i<n;i++){ scanf("%d",&str[i][l]); } for(int j=1;j<n;j++){ for(int k=1;k<n;j++){ if(strcmp(str[k-1],str[k])>0){ strcpy(tmp,str[k-1]); strcpy(st...
main.c: In function 'main': main.c:23:17: error: 's' undeclared (first use in this function) 23 | printf("%s",s[m]); | ^ main.c:23:17: note: each undeclared identifier is reported only once for each function it appears in
s493702689
p04043
C
#include<stdio.h> int main(){ int a,count=0; for(i=0;i<3;i++){ scanf("%d",&a); if(a==5||a==7){ count+=a; }else{ break; } } if(count==17){printf("YES");}else{printf("NO");} return 0; }
main.c: In function 'main': main.c:5:13: error: 'i' undeclared (first use in this function) 5 | for(i=0;i<3;i++){ | ^ main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
s506189771
p04043
C++
#include <iostream> using namespace std; int main() { int a,b,c; cin >> a >> b >>c; if(a==5&&b==5){ if(c==7) cout<<"YES"; else cout<<"NO"; } else if(b==5&&c==5){ if(a==7) cout<<"YES"; else cout<<"NO"; } else if(a==5&&c==5){ if(b==7) cout<<"YES"; ...
a.cc: In function 'int main()': a.cc:21:14: error: expected '}' at end of input 21 | return 0; | ^ a.cc:6:1: note: to match this '{' 6 | { | ^
s886145721
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<int> s(3); cin >> s[0]>> s[1] >> a[2]; sort(s.begin(),s.end()); int count_1=0,count_2=0; if(s[0]==5 && s[1]==5 && s[2]==7){ cout <<"YES"; }else{ cout << "NO"; } }
a.cc: In function 'int main()': a.cc:5:25: error: 'a' was not declared in this scope 5 | cin >> s[0]>> s[1] >> a[2]; | ^
s090359279
p04043
C
#include<stdio.h> #include<math.h> #include<stdlib.h> int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if((a==7 && b ==5 && c==5) || (a==5 && b== 7 && c==5) || (a==5 && b==5 && c== 7)) printf("YES\n"); else if else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:11:9: error: expected '(' before 'else' 11 | else | ^~~~ | (
s792199225
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<int> data(3); cin >> data.at(0) >> data.at(1) >> data.at(2); sort(data.begin(), data.end()); vector<int> answer = {5, 5, 7} if (data == answer) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:9:3: error: expected ',' or ';' before 'if' 9 | if (data == answer) { | ^~ a.cc:12:3: error: 'else' without a previous 'if' 12 | else { | ^~~~
s210264501
p04043
C++
A = list(map(int, input().split())) count = 0 for i in range(3): if A[i] == 5 or A[i] == 7: count += 1 if count == 3: print('YES') else: print('NO')
a.cc:9:11: warning: multi-character character constant [-Wmultichar] 9 | print('YES') | ^~~~~ a.cc:11:11: warning: multi-character character constant [-Wmultichar] 11 | print('NO') | ^~~~ a.cc:1:1: error: 'A' does not name a type 1 | A = list(map(int, input().split()))...
s358106179
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int A , B , C ; cin >> A >> B >> C ; if (A==5 && B==5 && C==7) { cout << "YES" << endl; } else if (A==5 && B==7 && C==5) { cout << "YES" << endl; } else if (A==7 && B==5 && C==5) { cout << "YES" << endl; } else if { cout << "NO...
a.cc: In function 'int main()': a.cc:17:11: error: expected '(' before '{' token 17 | else if { | ^ | (
s293761482
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int A , B , C ; cin >> A >> B >> C ; if (A==5 && B==5 && C==7) { cout << "YES" << endl; } if else (A==5 && B==7 && C==5) { cout << "YES" << endl; } if else (A==7 && B==5 && C==5) { cout << "YES" << endl; } if else { cout << "...
a.cc: In function 'int main()': a.cc:11:8: error: expected '(' before 'else' 11 | if else (A==5 && B==7 && C==5) { | ^~~~ | ( a.cc:14:8: error: expected '(' before 'else' 14 | if else (A==7 && B==5 && C==5) { | ^~~~ | ( a.cc:17:6: error: expected '(' bef...
s909532466
p04043
C
#include <stdio.h> int main(){ int a,b,c,count_five,count_seven; scanf("%d%d%d",&a,&b,&c) if(a==5) count_five++; if(b==5) count_five++; if(c==5) count_five++; if(a==7) count_seven++; if(b==7) count_seven++; if(c==7) count_seven++; if(c...
main.c: In function 'main': main.c:4:29: error: expected ';' before 'if' 4 | scanf("%d%d%d",&a,&b,&c) | ^ | ; 5 | if(a==5) | ~~
s462029968
p04043
C
#include <stdio.h> int main(){ int a,b,c,count_five,count_seven; scanf("%d%d%d",&a,&b,&c) if(a=5) count_five++; if(b=5) count_five++; if(c=5) count_five++; if(a=7) count_seven++; if(b=7) count_seven++; if(c=7) count_seven++; if(count_f...
main.c: In function 'main': main.c:4:29: error: expected ';' before 'if' 4 | scanf("%d%d%d",&a,&b,&c) | ^ | ; 5 | if(a=5) | ~~
s635597207
p04043
C++
#include <iostream> using namesapce std; int main() { int a, b,c ; cin >> a >> b >> c; if(a * b * c == 5 * 5 * 7) { cout << "YES" << endl; }else { cout << "NO" << endl; } }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> a >> b >> c; | ^~~ | std::cin In file included from a.c...
s047262427
p04043
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a; cin>>b; cin>>c; if(b>c){ int z; b=z; b=c; c=z; } if(a>b){ int z; a=z; a=b; a=z; } if(b>c){ int z; b=z; b=c; c=z; } if(a==5){ if(b==7&&c==7){ cout<<YES; }else{ cout<<NO; } }else{ cout<<NO; } return 0; } #includ...
a.cc: In function 'int main()': a.cc:28:11: error: 'YES' was not declared in this scope 28 | cout<<YES; | ^~~ a.cc:30:11: error: 'NO' was not declared in this scope 30 | cout<<NO; | ^~ a.cc:33:9: error: 'NO' was not declared in this scope 33 | cout<<NO; | ...
s276673506
p04043
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a; cin>>b; cin>>c; if(b>c){ int z; b=z; b=c; c=z; } if(a>b){ int z; a=z; a=b; a=z; } if(b>c){ int z; b=z; b=c; c=z; } if(a==5){ if(b==7&&c==7){ cout<<YES; }else{ cout<<NO; } }else{ cout<<NO; } return 0; }
a.cc: In function 'int main()': a.cc:28:11: error: 'YES' was not declared in this scope 28 | cout<<YES; | ^~~ a.cc:30:11: error: 'NO' was not declared in this scope 30 | cout<<NO; | ^~ a.cc:33:9: error: 'NO' was not declared in this scope 33 | cout<<NO; | ...
s655922961
p04043
C++
#include <iostream> using namespace std; int main() { int fives = 0; int sevens = 0; int num; while (cin >> num) { if (num == 5) fives++; if (num == 7) sevens++; } cout << (fives == 2 && sevens == 1) ? "YES" : "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:13:54: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 13 | cout << (fives == 2 && sevens == 1) ? "YES" : "NO" << endl; | ~~~~~^~~~~~~
s371546046
p04043
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main( void ) { int a,b,c; cin >> a >> b >> c; int x[3] = {a,b,c}; if ( max(x) == 7 && min(x) == 5 && a + b + c == 17 ) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:11:13: error: no matching function for call to 'max(int [3])' 11 | if ( max(x) == 7 && min(x) == 5 && a + b + c == 17 ) | ~~~^~~ In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,...
s866635125
p04043
C
#include <iostream> using namespace std; int main(){ int N, L; cin >> N >> L; string s[N+10]; string tmp; for(int i=0; i<N; i++){ cin >> s[i]; } for(int i=0; i<N; i++){ for(int j=i+1; j<N; j++){ if(s[i] > s[j]){ tmp = s[i]; s[i] = s...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s070706639
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; sum=a+b+c; if(sum==17) {cout<<"YES"<<endl; } else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:3: error: 'sum' was not declared in this scope 7 | sum=a+b+c; | ^~~
s842760846
p04043
C++
#include <bits/stdc++.h> #define MAXN 100010 #define pii pair<int,int> #define ff first #define ss second #define ll long long #define in_range(x, y, n) (x >= 0 and x<n and y >=0 and y<n) using namespace std; const int mod = 1e9 + 7; int main(){ int a, b, c; cin >> a >> b >> c; if (max(a, b, c) == 7 and m...
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...
s014692869
p04043
C
#include<stdio.h> int main(void) { int A,B,C; printf("A,B,Cの文節の長さを入力:"); scanf("%d,%d,%d",&A,&B,&C); if(A+B+C!=17){ printf("NO"); }else{ if(max(A,B,C)==7){ if(min(A,B,C)==5){ printf("YES"); }else{printf("NO"); } } } return 0; }
main.c: In function 'main': main.c:11:8: error: implicit declaration of function 'max' [-Wimplicit-function-declaration] 11 | if(max(A,B,C)==7){ | ^~~ main.c:12:10: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration] 12 | if(min(A,B,C)==5){ ...
s003594747
p04043
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { vector<int> v(3); rep(i,3){ cin >> v[i]; } sort(v.begin(),v.end()); vector<int> h(3)={5,7,7}; if(v==h){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:11:19: error: expected ',' or ';' before '=' token 11 | vector<int> h(3)={5,7,7}; | ^
s429692303
p04043
C++
include<iostream> using namespace std; int main() { int A,B,C; cin>>A>>B>>C; if((A==5)&&(B==5)&&(C==7)) { cout<<"YES"<<"\n"; } else if((A==5)&&(C==5)&&(B==7)) { cout<<"YES"<<"\n"; } else if((A==7)&&(B==5)&&(C==5)) { cout<<"YES"<<"\n"; } else { cout<<"NO"<<"\n"; } return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin>>A>>B>>C; | ^~~ a.cc:9:17: error: 'cout' was not declared in this scope 9 | cout<<"YES"<<"...
s367990944
p04043
C++
#include <iostream> #include <string> using namespace std; int main() { string A,B,C; int a,b,c; cin >> A >> B >> C; a = A.length(); b = B.length(); c = C.length(); if((a == b == 7 and c == 5) or (a == c == 7 and b == 5) or (b == c === 7 and a == 5)){ cout << "YES" << endl; } else{ cou...
a.cc: In function 'int main()': a.cc:13:20: error: expected primary-expression before '=' token 13 | or (b == c === 7 and a == 5)){ | ^
s077133128
p04043
C++
#include <iostream> #include <string> using namespace std; int main() { string A,B,C; cin >> A >> B >> C; a = A.length(); b = B.length(); c = C.length(); if((a == b == 7 and c == 5) or (a == c == 7 and b == 5) or (b == c === 7 and a == 5)){ cout << "YES" << endl; } else{ cout << "NO" << ...
a.cc: In function 'int main()': a.cc:8:3: error: 'a' was not declared in this scope 8 | a = A.length(); | ^ a.cc:9:3: error: 'b' was not declared in this scope 9 | b = B.length(); | ^ a.cc:10:3: error: 'c' was not declared in this scope 10 | c = C.length(); | ^ a.cc:12:20: error...
s304340294
p04043
C++
#include <iostream> using namespace std; int main() { int a,b,c; cin >> a >> b >> c; if((a == b == 7 and c == 5) or (a == c == 7 and b == 5) or (b == c === 7 and a == 5)){ cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:20: error: expected primary-expression before '=' token 8 | or (b == c === 7 and a == 5)){ | ^
s743365592
p04043
C++
#include <iostream> #include <string> using namespace std; int main() { string a,b,c; cin >> a >> b >> c; if((a == b == 7 and c == 5) or (a == c == 7 and b == 5) or (b == c === 7 and a == 5)){ cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:25: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if((a == b == 7 and c == 5) or (a == c == 7 and b == 5) | ~ ^~ ~ | | | | ...
s688081814
p04043
C++
#include <iostream> #include <string> using namespace std; int main() { string a,b,c; cin << a << b << c; if((a == b and b != c) or (a == c and c != b) or (b == c and c != a)){ cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | cin << a << b << c; | ~~~ ^~ ~ | | | | | std::string {aka std::__cxx11::ba...
s338947892
p04043
C++
#include<bits/stdc++.h> using namespcae std; int main(){ int a,b,c; cin>>a>>b>>c; int occa = 0 , occb = 0; if(a == 5) occa++; if(b == 5) occa++; if(c == 5) occa++; if(a == 7) occb++; if(b == 7) occb++; if(c == 7) occb++; if(occa == 2 && occb == 7) ...
a.cc:2:7: error: expected nested-name-specifier before 'namespcae' 2 | using namespcae std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>a>>b>>c; | ^~~ | std::cin In file inclu...
s268761441
p04043
C++
#include<bis/stdc++.h> using namespcae std; int main(){ int a,b,c; cin>>a>>b>>c; int occa = 0 , occb = 0; if(a == 5) occa++; if(b == 5) occa++; if(c == 5) occa++; if(a == 7) occb++; if(b == 7) occb++; if(c == 7) occb++; if(occa == 2 && occb == 7) ...
a.cc:1:9: fatal error: bis/stdc++.h: No such file or directory 1 | #include<bis/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s511411850
p04043
C++
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; #define rep(i,n) for(long long i=0;i<(long long)(n);i++) #define REP(i,k,n) for(long long i=k;i<(long long)(n);i++) #define all(a) a.begin(),a.end() #define eb emplace_back #define lb(v,k) (lower_bound(all(v),k)-v.begin()) #define ub(v,k) (uppe...
a.cc: In function 'void solve()': a.cc:41:15: error: 'a' was not declared in this scope 41 | vi v={a,b,c},v_={5,5,7}; | ^ a.cc:41:17: error: 'b' was not declared in this scope 41 | vi v={a,b,c},v_={5,5,7}; | ^ a.cc:41:19: error: 'c' was not declared in thi...
s728235428
p04043
C++
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; #define rep(i,n) for(long long i=0;i<(long long)(n);i++) #define REP(i,k,n) for(long long i=k;i<(long long)(n);i++) #define all(a) a.begin(),a.end() #define eb emplace_back #define lb(v,k) (lower_bound(all(v),k)-v.begin()) #define ub(v,k) (uppe...
a.cc: In function 'void solve()': a.cc:41:15: error: 'a' was not declared in this scope 41 | vi v={a,b,c},v_={5,5,7}; | ^ a.cc:41:17: error: 'b' was not declared in this scope 41 | vi v={a,b,c},v_={5,5,7}; | ^ a.cc:41:19: error: 'c' was not declared in thi...
s463632478
p04043
C++
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; #define rep(i,n) for(long long i=0;i<(long long)(n);i++) #define REP(i,k,n) for(long long i=k;i<(long long)(n);i++) #define all(a) a.begin(),a.end() #define eb emplace_back #define lb(v,k) (lower_bound(all(v),k)-v.begin()) #define ub(v,k) (uppe...
a.cc: In function 'void solve()': a.cc:41:15: error: 'a' was not declared in this scope 41 | vi v={a,b,c},v_={5,5,7}; | ^ a.cc:41:17: error: 'b' was not declared in this scope 41 | vi v={a,b,c},v_={5,5,7}; | ^ a.cc:41:19: error: 'c' was not declared in thi...
s501908708
p04043
C++
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; #define rep(i,n) for(long long i=0;i<(long long)(n);i++) #define REP(i,k,n) for(long long i=k;i<(long long)(n);i++) #define all(a) a.begin(),a.end() #define eb emplace_back #define lb(v,k) (lower_bound(all(v),k)-v.begin()) #define ub(v,k) (uppe...
a.cc: In function 'void solve()': a.cc:41:15: error: 'a' was not declared in this scope 41 | vi v={a,b,c},v_={5,5,7}; | ^ a.cc:41:17: error: 'b' was not declared in this scope 41 | vi v={a,b,c},v_={5,5,7}; | ^ a.cc:41:19: error: 'c' was not declared in thi...
s866532501
p04043
C++
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; #define rep(i,n) for(long long i=0;i<(long long)(n);i++) #define REP(i,k,n) for(long long i=k;i<(long long)(n);i++) #define all(a) a.begin(),a.end() #define eb emplace_back #define lb(v,k) (lower_bound(all(v),k)-v.begin()) #define ub(v,k) (uppe...
a.cc: In function 'void solve()': a.cc:41:15: error: 'a' was not declared in this scope 41 | vi v={a,b,c},v_={5,5,7}; | ^ a.cc:41:17: error: 'b' was not declared in this scope 41 | vi v={a,b,c},v_={5,5,7}; | ^ a.cc:41:19: error: 'c' was not declared in thi...
s932920048
p04043
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(); if ((a * b) % 2 == 0) System.out.println("Even"); else System.out.println("Odd"); } }
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: ...
s600201032
p04043
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(); String s = sc.next(); System.out.println(a+b+c); System.out.println(s); } }
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:5:11: error: expected ':' before 'static' 5 | public static void main(String[] args) { | ^~~~~~~ | : a.cc:5:29: error: ...
s188229634
p04043
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[] array = {a, b, c}; int[] anwer = {5, 5, 7}; Arrays.sort(array); if (Arrays.equal...
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:5:11: error: expected ':' before 'static' 5 | public static void main(String[] args) { | ^~~~~~~ | : a.cc:5:29: error: ...
s173065048
p04043
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[] array = {a, b, c}; int[] anwer = {5, 5, 7}; Arrays.sort(array); if (array == anw...
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:5:11: error: expected ':' before 'static' 5 | public static void main(String[] args) { | ^~~~~~~ | : a.cc:5:29: error: ...
s988624875
p04043
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[] array = {a, b, c} Arrays.sort(array); if (array == [5, 5, 7]) System.out.print...
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:5:11: error: expected ':' before 'static' 5 | public static void main(String[] args) { | ^~~~~~~ | : a.cc:5:29: error: ...
s733426267
p04043
C++
#include <bits/stdc++> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; string output = "NO"; if (A == 5 && B == 5 && C == 7) { output = "YES"; } else if (A == 5 && B == 7 && C == 5) { output = "YES"; } else if (A == 7 && B == 5 && C == 5) { output = "YES"; } cout << o...
a.cc:1:10: fatal error: bits/stdc++: No such file or directory 1 | #include <bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s274362754
p04043
C++
A, B, C = [int(i) for i in input().split(' ')] if A == 7 or B == 7 or C == 7: if A == 5 and B == 5: print('YES') elif A == 5 and C == 5: print('YES') elif B == 5 and C == 5: print('YES') else: print('NO')
a.cc:5:15: warning: multi-character character constant [-Wmultichar] 5 | print('YES') | ^~~~~ a.cc:7:15: warning: multi-character character constant [-Wmultichar] 7 | print('YES') | ^~~~~ a.cc:9:15: warning: multi-character character constant [-Wmultichar]...
s355626999
p04043
C++
abc=list(map(int,input().split())) if abc.count(5)=2 and abc.count(7)=1: print ("yes") else: print ("no")
a.cc:1:1: error: 'abc' does not name a type 1 | abc=list(map(int,input().split())) | ^~~
s456555152
p04043
C++
#include <bits/stdc++.h> using namespace std; int A,B,C int main() { if(A==5,B==5,C==7)printf("Yes") else if(A==5,B==7,C==5)printf("Yes") else if(A==7,B==5,C==5)printf("Yes") else printf("No") }
a.cc:4:1: error: expected initializer before 'int' 4 | int main() { | ^~~
s699487844
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a[3]; for (int i = 0; i < 3; ++i) { cin >> a[i]; } int s1 = 0; int s2= 0; for (int i = 0; I < 3; ++i) { if (a[i] == 5) s1++; else if (a[i] == 7) s2++; } if (s1 == 2 && s2 == 1) { cout << "YES\n"; } else { cout << "NO\n"; } return 0; }
a.cc: In function 'int main()': a.cc:14:17: error: 'I' was not declared in this scope 14 | for (int i = 0; I < 3; ++i) { | ^
s021919268
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin >> a >> b > >c; if (a+b+c == 19) { cout << "YES\n"; } else { cout << "NO\n"; } return 0; }
a.cc: In function 'int main()': a.cc:7:17: error: expected primary-expression before '>' token 7 | cin >> a >> b > >c; | ^
s190046524
p04043
C++
#include<iostream> using namespace std; int main(){ int sum=17; int mul=175; int a=0; int sum1=0; int mul1=1; for(int i=0;i<3;i++) {cin>>a; sum1=sum1+a; mul1=mul1*a} if(sum==sum1&&mul==mul1) {cout<<"yes"; } else {cout<<"no";} return 0; }
a.cc: In function 'int main()': a.cc:12:15: error: expected ';' before '}' token 12 | mul1=mul1*a} | ^ | ;
s336161946
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin>>A,B,C; int w5 =0; int w7 =0+ if(A==5){ w5++; } else if(A ==7){ w7++; } if(B==5){ w5++; } else if(B ==7){ w7++; } if(C==5){ w5++; } else if(C ==7){ w7++; } if(w5 ==2&&w7==1){ cout<<...
a.cc: In function 'int main()': a.cc:10:3: error: expected primary-expression before 'if' 10 | if(A==5){ | ^~
s861689727
p04043
Java
import java.util.*; 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(); if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7...
Main.java:10: error: ')' expected if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){ ^ Main.java:10: error: ')' or ',' expected if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 o...
s490393482
p04043
Java
import java.util.*; 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(); if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) an...
Main.java:10: error: ')' expected if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){ ^ Main.java:10: error: ')' or ',' expected if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c ==...
s146252709
p04043
C++
#include<bis/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a==7 && b==7 && c==5 || a==7 && b==5 && c==7 || a==5 && b==7 && c==7){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc:1:9: fatal error: bis/stdc++.h: No such file or directory 1 | #include<bis/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s028038595
p04043
C++
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s763521203
p04043
C++
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int (a==5&&b==7||b==5&&c==7 ) { cout<<"YES"; } else { cout<<"NO"; } }
a.cc: In function 'int main()': a.cc:7:32: error: expected ';' before '{' token 7 | int (a==5&&b==7||b==5&&c==7 ) | ^ | ; 8 | { | ~ a.cc:11:3: error: 'else' without a previous 'if' 11 | else ...
s176021349
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; if (A == 5 && B == 5 && C == 7) cout << "YES" << endl; else if (A == 5 && B == 7 && C == 5) cout << "YES" << endl; else if (A == 7 %% B == 5 && C == 5) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:9:20: error: expected primary-expression before '%' token 9 | else if (A == 7 %% B == 5 && C == 5) cout << "YES" << endl; | ^
s138002464
p04043
C++
#include<iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if((a == 5 && b == 5 && c == 7) || (a == 5 && b == 7 && c == 5) || (a == 7 && b == 5 && c == 5)) cout << "YES"; else cout << "NO"; return 0 }
a.cc: In function 'int main()': a.cc:10:13: error: expected ';' before '}' token 10 | return 0 | ^ | ; 11 | } | ~
s725862076
p04043
C++
/** In the name of Allah, the Gracious, the Merciful. * Praise be to Allah, Lord of the Worlds. * ************************************** * * I have not failed, I have just found 1000 WAYS that won't work. * __________________________________ * Author...
a.cc: In function 'void Solve()': a.cc:111:27: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'char') 111 | else cout << "NO" < endl; | ~~~~~~~~~~~~ ^ | | | std::basic_ostream<char> a.cc:111:27: note: candida...
s837578329
p04043
C
int main(void){ int A,B,C; bool f = false; scanf("%d %d %d",&A,&B,&C); if(A+B+C==17){ if((A=7&&B==5)||(A=5&&B==7)||(A=5&&B==5)){ f=true; } } if(f){ printf("YES"); }else{ printf("NO"); } }
main.c: In function 'main': main.c:3:3: error: unknown type name 'bool' 3 | bool f = false; | ^~~~ main.c:1:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' +++ |+#include <stdbool.h> 1 | int main(void){ main.c:3:12: error: 'false' undecla...
s191052275
p04043
C
#include <stdio.h> int main{ int A,B,C; bool f = false; scanf("%d %d %d",&A,&B,&C); if(A+B+C==17){ if((A=7&&B==5)||(A=5&&B==7)||(A=5&&B==5)){ f=true; } } if(f){ printf("YES"); }else{ printf("NO"); } }
main.c:2:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 2 | int main{ | ^
s582430981
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b+c==17) { cout<<"Yes"<<endl; } elif(a*b*c==175) { cout<<"Yes"<<endl; } else { cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:11:4: error: 'elif' was not declared in this scope 11 | elif(a*b*c==175) | ^~~~ a.cc:15:4: error: 'else' without a previous 'if' 15 | else | ^~~~
s377385826
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> vec={A,B,C} sort(vec.begin(),vec.end()); if(vec.(0)==5&&vec.(1)==5&&vec.(2)==7){ cout << "YES" << endl; } else{ cout << "NO" << ednl; } }
a.cc: In function 'int main()': a.cc:5:20: error: 'A' was not declared in this scope 5 | vector<int> vec={A,B,C} | ^ a.cc:5:22: error: 'B' was not declared in this scope 5 | vector<int> vec={A,B,C} | ^ a.cc:5:24: error: 'C' was not declared in this scope ...
s133115232
p04043
Java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a; int five = 0; int seven = 0; for(int i = 0; i < 3; i++) { a = sc.nextInt(); if(a == 5) { five++; } if(a == 7) { seven++; } } if(five == 2 && seven == 1) { System.out.pri...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s745966694
p04043
C++
int main() { vector<int> a(3); int a5=0; int a7=0; rep(i,3) cin>>a[i]; rep(i,3){ if(a[i]==5) a5++; else if(a[i]==7) a7++; } if(a5==2&&a7==1){ cout<<"YES"<<endl;} else{cout<<"NO"<<endl;} }
a.cc: In function 'int main()': a.cc:2:3: error: 'vector' was not declared in this scope 2 | vector<int> a(3); | ^~~~~~ a.cc:2:10: error: expected primary-expression before 'int' 2 | vector<int> a(3); | ^~~ a.cc:5:7: error: 'i' was not declared in this scope 5 | rep(i,3) cin>>a[...
s842843364
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ string A,B,C; cin>>A>>B>>C; if(A.size()==7&&B.size()==7&&C.size()==5){ cout<<"YES"<<endl; } else if(A.size()==5&&B.size()==7&&C.size()==7){ cout<<"YES"<<endl; } else if (A.size()==7&&B.size()==5&&C.size()==7){ cout<<"YES"<<endl; } else{ ...
a.cc:23:5: error: redefinition of 'int main()' 23 | int main(){ | ^~~~ a.cc:4:5: note: 'int main()' previously defined here 4 | int main(){ | ^~~~
s301859349
p04043
Java
import java.util.Scanner; 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 = new int [3]; d[0] = a; d[1] = b; d[2] ...
Main.java:14: error: cannot find symbol Arrays.sort(d); ^ symbol: variable Arrays location: class Main 1 error
s581922296
p04043
Java
import java.util.*; class Solution{ 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 = new int [3]; d[0] = a; d[1] = b; d[2] = ...
Main.java:22: error: class, interface, enum, or record expected ~ ^ 1 error
s280686411
p04043
C++
#include <iostream> using namespace std; int main() { int c[3]; for (int i=0; i < 2; i++) { cin >> c[i]; } if (c == [5, 7, 5] || c == [5, 5, 7] || c == [7, 5, 5]) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:10:19: error: expected identifier before numeric constant 10 | if (c == [5, 7, 5] || c == [5, 5, 7] || c == [7, 5, 5]) { | ^ a.cc:10:20: error: expected ']' before ',' token 10 | if (c == [5, 7, 5] || c == [5, 5, 7] || c == [7, 5, 5]) { ...
s109028447
p04043
Java
import java.util.Scanner; public class Haiku { public static void main(String[] args) { String result = "NO"; Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if((A == 5 && B == 7 && C == 5) || (A == 7 && B == 5 && C == 5) || (A == 5 && B == ...
Main.java:3: error: class Haiku is public, should be declared in a file named Haiku.java public class Haiku { ^ 1 error
s505443755
p04043
Java
import java.util.Scanner; public class Haiku { public static void main(String[] args) { String result = "NO"; Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if((A == 5 && B == 7 && C == 5) || (A == 7 && B == 5 && C == 5) || (A == 5 && B == ...
Main.java:3: error: class Haiku is public, should be declared in a file named Haiku.java public class Haiku { ^ 1 error
s726280062
p04043
C++
#include<bits/stdc++.h> using namespace std; typedef long long int lli; int main() { ios_base::sync_with_stdio(0); cin.tie(nullptr); cout.tie(nullptr); int a,b,c; cin>>a>>b>>c; if((a=='5'&&b=='5'&&c=='7')||(b=='5'&&c=='5'&&a=='7')||(c=='5'&&a=='5'&&b=='7')) cout<<"Yes" else c...
a.cc: In function 'int main()': a.cc:12:20: error: expected ';' before 'else' 12 | cout<<"Yes" | ^ | ; 13 | else | ~~~~
s624612099
p04043
C++
#include<bits/stdc++.h> using namespace std; typedef long long int lli; int main() { ios_base::sync_with_stdio(0); cin.tie(nullptr); cout.tie(nullptr); int a,b,c; cin>>a>>b>>c; if((a=='5'&&b=='5'&&c=='7')||(b=='5'&&c=='5'&&a=='7')||(c=='5'&&a=='5'&&b=='7')) cout<<"Yes" else cout<...
a.cc: In function 'int main()': a.cc:12:20: error: expected ';' before 'else' 12 | cout<<"Yes" | ^ | ; 13 | else | ~~~~
s627221240
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<int> ABC(3); for (int i = 0; i < 3; i++) { cin >> ABC.at(i); } int f = 0; int s = 0; for (int i = 0; i < 3; i++) { if (ABC.at(i) == 5) { f ++; }else if (ABC.at(i) == 7) { s ++; } } cout << ((f == 2) && (s == 7))...
a.cc: In function 'int main()': a.cc:18:49: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 18 | cout << ((f == 2) && (s == 7)) ? "YES" : "NO" << endl; | ~~~~~^~~~~~~
s454345359
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> ABC(3); for (int i = 0; i < 3; i++) { cin >> ABC.at(i); } int f = 0; int s = 0; for (int i = 0; i < 3; i++) { if (ABC.size() == 5) { f ++; }else if (ABC.size() == 7) { s ++; } } if ((f == 2) && (s == 1)...
a.cc:24:1: error: expected declaration before '}' token 24 | } | ^
s780409718
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> ABC(3); for (int i = 0; i < 3; i++) { cin >> ABC.at(i); } int f = 0; int s = 0; for (int i = 0; i < 3; i++) { if (ABC.size() == 5) { f ++; }else if (ABC.size() == 7) { s ++; } } cout << (f == 2) && (s =...
a.cc: In function 'int main()': a.cc:18:47: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 18 | cout << (f == 2) && (s == 1) ? "YES" : "NO" << endl; | ~~~~~^~~~~~~
s148608555
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> ABC(3); for (int i = 0; i < 3; i++) { cin >> ABC.at(i); } int f = 0; int s = 0; for (int i = 0; i < 3; i++) { if (ABC.at(i) == 5) { f ++; }else if (ABC.at(i) == 7) { s ++; } } cout << (f == 2) && (s == 1...
a.cc: In function 'int main()': a.cc:12:19: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} and 'int') 12 | if (ABC.at(i) == 5) { | ...
s916767028
p04043
C++
include <bits/stdc++.h> using namespace std; int main() { int A,B,C; cin>>A>>B>>C; if(A==5%%B==7%%C==5){ cout<<"YES"<<endl; } if(A==7%%B==5%%C==5){ cout<<"YES"<<endl; } if(A==5%%B==5%%C==7){ cout<<"YES"<<endl; } else cout<<"NO"<<endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include <bits/stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:2: error: 'cin' was not declared in this scope 6 | cin>>A>>B>>C; | ^~~ a.cc:7:10: error: expected primary-expression before '%' token 7 | if(A==5%%B==7%%C==5){ | ...
s333946906
p04043
C++
// include // ------------------------------------------------ #include <bits/stdc++.h> #include <vector> #include <algorithm> #include <math.h> using namespace std; // func // ------------------------------------------------ int CalcSumOfDigit(int n); // 各桁の和を計算する。 // define // --------------------------------...
a.cc: In function 'int main()': a.cc:36:9: error: redeclaration of 'int i' 36 | int i; | ^ a.cc:34:7: note: 'int i' previously declared here 34 | rep(i,3) | ^ a.cc:20:31: note: in definition of macro 'rep' 20 | #define rep(i,n) for(int(i)=0;(i)<(n);(i)++) | ...
s117481923
p04043
C++
#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a==5&&b==5&&c==7){ cout<<"YES"; return 0; } if(a==7&&b==5&&c==5){ cout<<"YES"; return 0; } if(a==5&&b==7&&c==5){ cout<<"YES"; return 0; } cout<<"NO" return 0; }
a.cc: In function 'int main()': a.cc:21:19: error: expected ';' before 'return' 21 | cout<<"NO" | ^ | ; 22 | return 0; | ~~~~~~
s013425031
p04043
C++
using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if( (a == b) && (a == c)) cout << 1; else if((a == b) || (b == c)) cout << 2; else cout << 3; return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: 'cin' was not declared in this scope 8 | cin >> a >> b >> c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | a.cc:10:5: error: 'cout' was not d...
s339477678
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin << A << B << C; if(A == 5 && B == 5 && C == 7){ cout >> "YES" >> endl; }else if(){ } }
a.cc: In function 'int main()': a.cc:6:13: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << A << B << C; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<...
s939559040
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<int> V(3); cin >> V.at(0) >> V.at(1) >> V.at(2); sort(V.begin,V.end); if(V.at(0) == 5 && V.at(1) == 5 && V.at(2) == 7 ){ cout << "YES" << endl; return 0; } cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:7: error: no matching function for call to 'sort(<unresolved overloaded function type>, <unresolved overloaded function type>)' 7 | sort(V.begin,V.end); | ~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x...
s549165545
p04043
C++
a = input().split() a.sort() if a==["5","5","7"]: print("YES") else: print("NO")
a.cc:1:1: error: 'a' does not name a type 1 | a = input().split() | ^
s487123792
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; vector<int> words = {A,B,C}; words.sort(); if((words.at(0) == 5) && (words.at(1) == 5) && (words.at(2) == 7)){ cout << "YES" << endl ; return 0; } cout << "NO" << endl ; return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'class std::vector<int>' has no member named 'sort' 8 | words.sort(); | ^~~~
s184099770
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A+B+C == 22 && A*B*C == 175){ cout << YES << endl; } else { cout << NO << endl; } }
a.cc: In function 'int main()': a.cc:9:13: error: 'YES' was not declared in this scope 9 | cout << YES << endl; | ^~~ a.cc:12:13: error: 'NO' was not declared in this scope 12 | cout << NO << endl; | ^~
s943054396
p04043
C++
#include <iostream> using namespace std; int f,s; int main(){ for(int i=0;i<3;i++){ cin>>x; f+=(x==5); s+=(x==7); } if(f==2&&s==1) cout<<"YES"; else cout<<"NO"; }
a.cc: In function 'int main()': a.cc:6:14: error: 'x' was not declared in this scope 6 | cin>>x; | ^
s305384951
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { string A B C; cin >> A B C; if (ABC == 5 5 7) { cout << "Yes" << endl; } if (ABC == 5 7 5) { cout << "Yes" << endl; } if (ABC == 7 5 5) { cout << "Yes" << endl; } else { cout << "No" <<endl; } }
a.cc: In function 'int main()': a.cc:5:12: error: expected initializer before 'B' 5 | string A B C; | ^ a.cc:6:10: error: 'A' was not declared in this scope 6 | cin >> A B C; | ^ a.cc:8:7: error: 'ABC' was not declared in this scope 8 | if (ABC == 5 5 7) { | ...
s617851572
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { string ABC; cin >> ABC; if (ABC == 557) { cout << "Yes" << endl; } if (ABC == 575) { cout << "Yes" << endl; } if (ABC == 755) { cout << "Yes" << endl; } else { cout << "No" <<endl; } }
a.cc: In function 'int main()': a.cc:8:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if (ABC == 557) { | ~~~ ^~ ~~~ | | | | | int | std::string {aka std::__cxx11::basic_string<...
s190403957
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { string ABC; cin >> ABC; if (ABC ==5 57) { cout << "Yes" << endl; } if (ABC == 575) { cout << "Yes" << endl; } if (ABC == 755) { cout << "Yes" << endl; } else { cout << "No" <<endl; } }
a.cc: In function 'int main()': a.cc:8:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if (ABC ==5 57) { | ~~~ ^~~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>...
s170342680
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { string ABC; cin >> ABC; if (ABC==557) { cout << "Yes" << endl; } if (ABC==575) { cout << "Yes" << endl; } if (ABC==755) { cout << "Yes" << endl; } else { cout << "No" <<endl; } }
a.cc: In function 'int main()': a.cc:8:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if (ABC==557) { | ~~~^~~~~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} I...
s584108798
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; if (ABC==557) { cout << "Yes" << endl; } if (ABC==575) { cout << "Yes" << endl; } if (ABC==755) { cout << "Yes" << endl; } else { cout << "No" <<endl; } }
a.cc: In function 'int main()': a.cc:8:7: error: 'ABC' was not declared in this scope 8 | if (ABC==557) { | ^~~ a.cc:12:7: error: 'ABC' was not declared in this scope 12 | if (ABC==575) { | ^~~ a.cc:16:7: error: 'ABC' was not declared in this scope 16 | if (ABC==755) { | ...
s295469582
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; if (ABC==557) { cout << "Yes" << endl; } if (ABC==575) { cout << "Yes" << endl; } if (ABC==755) { cout << "Yes" << endl; } else { cout << "No" }
a.cc: In function 'int main()': a.cc:8:7: error: 'ABC' was not declared in this scope 8 | if (ABC==557) { | ^~~ a.cc:12:7: error: 'ABC' was not declared in this scope 12 | if (ABC==575) { | ^~~ a.cc:16:7: error: 'ABC' was not declared in this scope 16 | if (ABC==755) { | ...
s377465854
p04043
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int main() { ios::sync_with_stdio(0); cin.tie(0); vector<int> a(3); cin >> a[0] >> a[1] >> a[2]; sort(a.begin(), a.end()) if(a[0] == 5 and a[1] == 5 and a[2] == 7){ cout << "YES" << endl...
a.cc: In function 'int main()': a.cc:12:29: error: expected ';' before 'if' 12 | sort(a.begin(), a.end()) | ^ | ; 13 | if(a[0] == 5 and a[1] == 5 and a[2] == 7){ | ~~ a.cc:15:6: error: 'else' without a pre...
s773451123
p04043
C++
#include <iostream> using namespace std; int main(void){ int a,b,c; cin >> a >> b >> c; if(a==7){if(b==c==5) cout << "YES" else cout << "NO" << endl; } else if(b==7){if(a==c==5) cout << "YES" else cout << "NO" << endl; } else if(c==7){if(a==b==5) cout << "YES" else cout << "NO" << endl...
a.cc: In function 'int main()': a.cc:11:39: error: expected ';' before 'else' 11 | if(a==7){if(b==c==5) cout << "YES" else cout << "NO" << endl; } | ^~~~~ | ; a.cc:13:44: error: expected ';' before 'else' 13 | else if(...
s327174385
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a; map<int>mp; for(int i=0; i<3; i++){ cin>>a; mp[a]++; } if(mp[5]==2 && mp[7]==1){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:12: error: wrong number of template arguments (1, should be at least 2) 6 | map<int>mp; | ^ In file included from /usr/include/c++/14/map:63, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152, from a.cc:1: /usr/i...
s089140405
p04043
C
#include<stdio.h> int main() { int a[8],i,j,N,k,p=0,m=0; scanf("%d %d",&N,&k); for(i=0;i<=k;i++) { scanf("%d",&a[i]); } for(j=N;j>=N;j++) { p=j; m=j%10; i=0; while(a[i]!=m) { i++; } j=j/10; } return p;
main.c: In function 'main': main.c:21:3: error: expected declaration or statement at end of input 21 | return p; | ^~~~~~