submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s750581904
p04043
C
#include<stdio.h> int main(void) { int A,B,C; puts("整数を入力してください。"); printf("a:\n"); scanf("%d",&A); printf("b:\n"); scanf("%d",&B); printf("c:\n"); scanf("%d",&C); if(a+b+c==17) puts("YES"); else puts("NO"); return 0; }
main.c: In function 'main': main.c:11:6: error: 'a' undeclared (first use in this function) 11 | if(a+b+c==17) | ^ main.c:11:6: note: each undeclared identifier is reported only once for each function it appears in main.c:11:8: error: 'b' undeclared (first use in this function) 11 | if(a+b+c==17) ...
s184723936
p04043
C
#include<stdio.h> int main(void) { int A,B,C; puts("整数を入力してください。"); printf("a:\n"); scanf("%d",&a); printf("b:\n"); scanf("%d",&b); printf("c:\n"); scanf("%d",&c); if(a+b+c==17) puts("YES"); else puts("NO"); return 0; }
main.c: In function 'main': main.c:7:31: error: 'a' undeclared (first use in this function) 7 | printf("a:\n"); scanf("%d",&a); | ^ main.c:7:31: note: each undeclared identifier is reported only once for each function it appears in main.c:8:31: error: 'b' undeclared (first use ...
s076749270
p04043
C
#inlcude<stdio.h> int main(void) { int a,b,c; puts("整数を入力してください。"); printf("a:\n"); scanf("%d",&a); printf("b:\n"); scanf("%d",&b); printf("c:\n"); scanf("%d",&c); if(a+b+c==17) puts("YES"); else puts("NO"); return 0 } #inlcude<stdio.h> int main(void) { int a,b,c; puts("整数を入力してくだ...
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude<stdio.h> | ^~~~~~~ | include main.c: In function 'main': main.c:6:3: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 6 | puts("整数を入力してください。"); | ^~~~ main.c:1...
s387798943
p04043
C
#include<stdio.h> int main(void) { int a,b,c; puts("整数を入力してください。"); printf("a:\n"); scanf("%d",&a); printf("b:\n"); scanf("%d",&b); printf("c:\n"); scanf("%d",&c); if(a+b+c==17) puts("YES"); else puts("NO"); return 0 } #inlcude<stdio.h> int main(void) { int a,b,c; puts("整数を入力してくだ...
main.c: In function 'main': main.c:16:11: error: expected ';' before '}' token 16 | return 0 | ^ | ; 17 | } | ~ main.c: At top level: main.c:18:2: error: invalid preprocessing directive #inlcude; did you mean #include? 18 | #inlcude<stdio.h> | ^~~~~~~ ...
s091092319
p04043
C
#inlcude<stdio.h> int main(void) { int a,b,c; puts("整数を入力してください。"); printf("a:\n"); scanf("%d",&a); printf("b:\n"); scanf("%d",&b); printf("c:\n"); scanf("%d",&c); if(a+b+c==17) puts("YES"); else puts("NO"); return 0 }
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude<stdio.h> | ^~~~~~~ | include main.c: In function 'main': main.c:6:3: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 6 | puts("整数を入力してください。"); | ^~~~ main.c:1...
s719565119
p04043
Java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(), b = scan.nextInt(); String[] ABC = new int[a]; String small = ABC[0]; String output = ""; for (int x : ABC) { ABC[x] = scan.next(); } for (int i = 1; i ...
Main.java:7: error: incompatible types: int[] cannot be converted to String[] String[] ABC = new int[a]; ^ Main.java:10: error: incompatible types: String cannot be converted to int for (int x : ABC) ^ Main.java:17: error: bad operand types for binary operator '>' if (small > ABC...
s690368004
p04043
Java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner in = new Scanner(System.in); int n, l; n = in.nextInt(); l = in.nextInt(); String[] S = new String[n]; for (int i = 0; i < n; i++) S[i] = in.next(); S.sort(); for (int i = 0; i < n; i++) System.out.print(S[i]); ...
Main.java:12: error: cannot find symbol S.sort(); ^ symbol: method sort() location: variable S of type String[] 1 error
s110876614
p04043
C++
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] ABC = new int[3]; int counter1 = 0; int counter2 = 0; for (int i = 0; i < 3; i++) { ABC[i] = scan.nextInt(); } for (int a: ABC) { if (a == 5) { c...
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:2:1: error: expected unqualified-id before 'public' 2 | public class Main { | ^~~~~~
s679426709
p04043
Java
import java.util.*; public class a{ public static void main(String args[]){ Scanner in = new Scanner(System.in); int[] nums = new int[3]; for (int i = 0; i < 3; i++) nums[i] = in.nextInt(); int fives = 0, sevens = 0; for (int i = 0; i < 3; i++) { if (nums[i] == 5) fives++; if (nums[i] == 7) sevens+...
Main.java:3: error: class a is public, should be declared in a file named a.java public class a{ ^ 1 error
s331787128
p04043
Java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws Exception { hayami saori = new hayami(); int a= 0; int five = 0; int seven = 0; for(int i = 0;i < num.length;i++){ a = saori.saori_hayami(); if(num[i] == 5){ five++; } if(num[i] == 7){ seven...
Main.java:9: error: cannot find symbol for(int i = 0;i < num.length;i++){ ^ symbol: variable num location: class Main Main.java:11: error: cannot find symbol if(num[i] == 5){ ^ symbol: variable num location: class Main Main.java:14: error: cannot find symbol if(num[i] == 7)...
s736579582
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int arr[3]; cin >> arr[0] >> arr[1] >> arr[2]; sort(arr,arr+3) cout << ((arr[0] == 5 && arr[1] == 5 && arr[2] == 7)?"YES":"NO"); }
a.cc: In function 'int main()': a.cc:7:18: error: expected ';' before 'cout' 7 | sort(arr,arr+3) | ^ | ; 8 | cout << ((arr[0] == 5 && arr[1] == 5 && arr[2] == 7)?"YES":"NO"); | ~~~~
s108491830
p04043
C++
#inclide<bits/stdc++.h> using namespace std; int main(){ int arr[10]; for(int i=0;i<3;i++) { cin>>arr[i] } sort(arr,arr+3); if(arr[0]==5 && arr[1]==5 && arr[2]==7) { cout<<"YES"<<endl; } else { cout<<"NO"<<endl; } return 0; }
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include? 1 | #inclide<bits/stdc++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | cin>>arr[i] | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<...
s583398073
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { std::vector<int> v(3); cin >> v[0] >> v[1] >> v[2]; sort(v.begin(),v.end()); if(v[0] == 5 && v[1] == 5 && v[2] == 7){ cout >> "YES" >> endl; }else{ cout >> "NO" >> endl; } }
a.cc: In function 'int main()': a.cc:9:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 9 | cout >> "YES" >> endl; | ~~~~ ^~ ~~~~~ | | | | | const char [4] | std::ostream {aka std::ba...
s716679323
p04043
C++
#include <bits/stdc++.h> using namespace std; #define pp pair<int,int> #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define ll long long #define ld long double #define all(a) (a).begin(),(a).end() #define mk make_pair ll MOD=1000000007; ll mod=998244353; int inf=1000001000; ll INF=1e18+5; int main() { vector<int> ...
a.cc: In function 'int main()': a.cc:16:17: error: 'n' was not declared in this scope 16 | vector<int> a(n); | ^
s277666287
p04043
Java
import java.util.Scanner; Scanner scanner = new Scanner (System.in); int [] a;a=new int [3];boolean dool =false; for (int i=0;i<3;i++) { int x = scanner.nextInt(); if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;} a[i]=x; } if (dool==false) { boolean chool =false; for (int i=0;i<2;i++) { if...
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. Scanner scanner = new Scanner (System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: class, interface, enum, or record expected int [] a;a=new int [3];boolean dool =false; ^ Main.java:4: er...
s419606617
p04043
Java
import java.util.Scanner; public class ABC { public static void main(String[] args) { Scanner scanner = new Scanner (System.in); int [] a;a=new int [3];boolean dool =false; for (int i=0;i<3;i++) { int x = scanner.nextInt(); if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;} a[i]=x; } if (dool==fals...
Main.java:2: error: class ABC is public, should be declared in a file named ABC.java public class ABC { ^ 1 error
s684374713
p04043
Java
import java.util.Scanner; public static void main(String[] args) { Scanner scanner = new Scanner (System.in); int [] a;a=new int [3];boolean dool =false; for (int i=0;i<3;i++) { int x = scanner.nextInt(); if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;} a[i]=x; } if (dool==false) { boolean choo...
Main.java:2: 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
s565832240
p04043
Java
import java.util.Scanner; public static void main(String[] args) { Scanner scanner = new Scanner (System.in); int [] a;a=new int [3];boolean dool =false; for (int i=0;i<3;i++) { int x = scanner.nextInt(); if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;} a[i]=x; } if (dool==false) { boolean choo...
Main.java:2: 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:20: error: class, interface, enum, or record expected } ^ 2 errors
s966259633
p04043
Java
import java.util.Scanner; public class tamrini { public static void main(String[] args) { Scanner scanner = new Scanner (System.in); int [] a;a=new int [3];boolean dool =false; for (int i=0;i<3;i++) { int x = scanner.nextInt(); if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;} a[i]=x; } if (dool==...
Main.java:2: error: class tamrini is public, should be declared in a file named tamrini.java public class tamrini { ^ 1 error
s985895214
p04043
Java
import java.util.Scanner; public class tamrini { public static void main(String[] args) { Scanner scanner = new Scanner (System.in); int [] a;a=new int [3];boolean dool =false; for (int i=0;i<3;i++) { int x = scanner.nextInt(); if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;} a[i]=x; } if (dool==...
Main.java:2: error: class tamrini is public, should be declared in a file named tamrini.java public class tamrini { ^ 1 error
s680313898
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; int c5=c7=0; cin>>a>>b>>c; if(a==5) { c5++; } if(a==7) { c7++; } if(b==5) { c5++; } if(b==7) { c7++; } if(c==5) { c5++; } if(c==7) { c7++; } if(c5==2 && c7==1) { cout<<"YES"; ...
a.cc: In function 'int main()': a.cc:6:10: error: 'c7' was not declared in this scope; did you mean 'c5'? 6 | int c5=c7=0; | ^~ | c5
s182881674
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; int c5=c7=0; cin>>a>>b>>c; if(a==5) { c5++; } if(a==7) { c7++; } if(b==5) { c5++; } if(b==7) { c7++; } if(c==5) { c5++; } if(c==7) { c7++; } if(c5==2 && c7==1) { cout<<"YES"; ...
a.cc: In function 'int main()': a.cc:6:10: error: 'c7' was not declared in this scope; did you mean 'c5'? 6 | int c5=c7=0; | ^~ | c5 a.cc:40:2: error: expected '}' at end of input 40 | } | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s891386336
p04043
C++
#include<iostream> #include <string> using namespace std; int main() { int[3] a; int b; bool ans=false; for(int i=0;i<3;i++){ cin >> a[i];//入力 if(a[i]==7){ b++; } } if(b==2){ cout << "NO" } return 0; }
a.cc: In function 'int main()': a.cc:6:7: error: expected identifier before numeric constant 6 | int[3] a; | ^ a.cc:6:7: error: expected ']' before numeric constant 6 | int[3] a; | ^ | ] a.cc:6:6: error: structured binding declaration cannot have type 'int' 6 | int[...
s083302620
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A, B, C; cin A >> B >> C; if (A.size() == 5 || B.size() == 7 || C.size() == 5){ cout << "YES" << endl; } else if (A.size() == 7 || B.size() == 5 || C.size() == 5){ cout << "YES"<< endl; } else if (A.size() == 5 || B.size() == 5 ||...
a.cc: In function 'int main()': a.cc:6:6: error: expected ';' before 'A' 6 | cin A >> B >> C; | ^~ | ;
s455142387
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A, B, C; cin A << B << C; if (A.size() == 5 || B.size() == 7 || C.size() == 5){ cout << "YES" << endl; } else if (A.size() == 7 || B.size() == 5 || C.size() == 5){ cout << "YES"<< endl; } else if (A.size() == 5 || B.size() == 5 ||...
a.cc: In function 'int main()': a.cc:6:6: error: expected ';' before 'A' 6 | cin A << B << C; | ^~ | ;
s599261753
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A, B, C; cin A << B << C; if (A.size == 5 || B.size == 7 || C.size == 5){ cout << "YES" << endl; } else if (A.size == 7 || B.size == 5 || C.size == 5){ cout << "YES"<< endl; } else if (A.size == 5 || B.size == 5 || C.size == 7){ ...
a.cc: In function 'int main()': a.cc:6:6: error: expected ';' before 'A' 6 | cin A << B << C; | ^~ | ; a.cc:8:9: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _Char...
s512790945
p04043
C++
#include<bits/stdhc++.h> using namespace std; int main(){ string A, B, C; cin A << B << C; if (A.size == 5 || B.size == 7 || C.size == 5){ cout << "YES" << endl; } else if (A.size == 7 || B.size == 5 || C.size == 5){ cout << "YES"<< endl; } else if (A.size == 5 || B.size == 5 || C.size == 7){ ...
a.cc:1:9: fatal error: bits/stdhc++.h: No such file or directory 1 | #include<bits/stdhc++.h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s163081716
p04043
C++
include<bits/stdhc++.h> using namespace std; int main(){ string A, B, C; cin A << B << C; if (A.size == 5 || B.size == 7 || C.size == 5){ cout << "YES" << endl; } else if (A.size == 7 || B.size == 5 || C.size == 5){ cout << "YES"<< endl; } else if (A.size == 5 || B.size == 5 || C.size == 7){ ...
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdhc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:3: error: 'string' was not declared in this scope 5 | string A, B, C; | ^~~~~~ a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin A << B << C; | ^...
s095271304
p04043
C++
#include<iostream> using namespace std; int main() { int count5 = 2; int count7 = 1; for(i=0; i++; i<3){ int N; cin >> N; if(N == 5){ count5--; }else if(N == 7){ count7--; } } if(count5 == 0 && count7 == 0){ cout << "YES" << endl; } else{ cout << "NO" << endl; ...
a.cc: In function 'int main()': a.cc:8:7: error: 'i' was not declared in this scope 8 | for(i=0; i++; i<3){ | ^
s760603840
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C; int five,seven; cin >> A >> B >> C; if(A == 5) { five++; } if(B == 5) { five++; } if(C == 5) { five++; } if(A == 7 || B == 7 || C == 7) { seven=1; } if(five == 2 && seven == 1) { cout << "YES" << endl...
a.cc: In function 'int main()': a.cc:25:4: error: expected '}' at end of input 25 | } | ^ a.cc:3:12: note: to match this '{' 3 | int main() { | ^
s778124180
p04043
C++
#include <iostream> #include <string> using namespace std; int main(void){ int A,B,C cin >> A >> B >> C; if((A == 5 && B == 7 && C == 5) || (A == 7 && B == 5 && C == 5) || (A == 5 && B == 5 && C == 7)){ cout << "yes¥n"; }else{ cout << "no¥n"; } }
a.cc: In function 'int main()': a.cc:7:5: error: expected initializer before 'cin' 7 | cin >> A >> B >> C; | ^~~ a.cc:8:33: error: 'C' was not declared in this scope 8 | if((A == 5 && B == 7 && C == 5) || (A == 7 && B == 5 && C == 5) || (A == 5 && B == 5 && C == 7)){ | ...
s510132161
p04043
C
#include(stdio.h) int main(){ int A, B, C; scanf("%d %d %d", &A, &B, &C); 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");} return 0; }
main.c:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include(stdio.h) | ^ main.c: In function 'main': main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 5 | scanf("%d %d %d", &A, &B, &C); | ^~~~~ main.c:1:1: note: include '<stdio.h>...
s675615783
p04043
C
#include<stdio.h> #include<string.h> int main(){ int A, B, C; scanf("%d %d %d", &A, &B, &C); 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");} return 0; }
main.c: In function 'main': main.c:7:21: error: lvalue required as left operand of assignment 7 | if(A=5 && B=5 && C=7){ | ^ main.c:9:26: error: lvalue required as left operand of assignment 9 | else if(A=5 && B=7 && C=5){ | ^ main.c:11:26: error: lva...
s720469502
p04043
Java
import java.util.*; class Main { public static void main(String[] args) { int[] a=new int[8]; for(int i=0;i<3;i++) { int x=sc.nextInt(); a[x]++; } if(a[5]==2 && a[7]==1) { System.out.println("YES"); } else { System.out.println("NO"); } } }
Main.java:9: error: cannot find symbol int x=sc.nextInt(); ^ symbol: variable sc location: class Main 1 error
s958490882
p04043
C++
#include<iostream> #include<string> using namespace std; bool Smaller(char a[], int a_length, char b[], int b_length){ int i; int min_length = a_length < b_length ? a_length : b_length; for(i=0; i<min_length; i++){ if(a[i] < b[i])return true; else if(a[i] > b[i]) return false; } return fal...
a.cc: In function 'int main()': a.cc:42:15: error: 'sorting_num' was not declared in this scope; did you mean 'string_num'? 42 | for(i=0;i<sorting_num-1;i++){ | ^~~~~~~~~~~ | string_num a.cc:43:84: error: expected ')' before '{' token 43 | if(!Smaller(strContainer...
s161277649
p04043
C++
#include<iostream> #include<string> using namespace std; bool Smaller(char a[], int a_length, char b[], int b_length){ int i; int min_length = a_length < b_length ? a_length : b_length; for(i=0; i<min_length; i++){ if(a[i] < b[i])return true; else if(a[i] > b[i]) return false; } return fal...
a.cc: In function 'int main()': a.cc:27:10: error: 'string_length' was not declared in this scope 27 | cin >> string_length >> string_num; | ^~~~~~~~~~~~~ a.cc:27:27: error: 'string_num' was not declared in this scope 27 | cin >> string_length >> string_num; | ^~...
s897436331
p04043
Java
#include <iostream> using namespace std; int main(){ int five = 0 , seven = 0 , n; for(int i = 0 ; i< 3 ; i++) { cin >> n; if(n == 5) { five++; } else if(n==7) { seven++; } } if(seven == 1 && five ==2) { ...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:9: error: not a statement cin >> n; ^ Main.java:22: error: not a statement cout << "YES\n"; ^ Main.java:25: er...
s187344749
p04043
C++
# -*- coding: utf-8 -*- a = list(map(int,input().split())) if sum(a)==17: print("YES") else: print("NO")
a.cc:1:3: error: invalid preprocessing directive #- 1 | # -*- coding: utf-8 -*- | ^ a.cc:2:1: error: 'a' does not name a type 2 | a = list(map(int,input().split())) | ^
s313594224
p04043
Java
import java.util.Scanner; public class ProblemA { public static void main ( String[] args ) { Scanner sc = new Scanner ( System.in ); int n, five = 0, seven = 0; for ( int i = 0; i < 3; i++ ) { n = sc.nextInt (); if ( n == 5 ) { five++; } else if ( n == 7 ) { seven++; } } if...
Main.java:3: error: class ProblemA is public, should be declared in a file named ProblemA.java public class ProblemA ^ 1 error
s412897377
p04043
Java
import java.util.Scanner; public class ProblemA { public static void main ( String[] args ) { Scanner sc = new Scanner ( System.in ); int n, five = 0, seven = 0; for ( int i = 0; i < 3; i++ ) { n = sc.nextInt (); if ( n == 5 ) { five++; } else if ( n == 7 ) { seven++; } } if...
Main.java:3: error: class ProblemA is public, should be declared in a file named ProblemA.java public class ProblemA ^ 1 error
s991370238
p04043
Java
import java.util.Scanner; public class ProblemA { public static void main ( String[] args ) { Scanner sc = new Scanner ( System.in ); int n, five = 0, seven = 0; for ( int i = 0; i < 3; i++ ) { n = sc.nextInt (); if ( n == 5 ) { five++; } else if ( n == 7 ) { seven++; } } if...
Main.java:3: error: class ProblemA is public, should be declared in a file named ProblemA.java public class ProblemA ^ 1 error
s424937131
p04043
Java
import java.util.Scanner; public class ProblemA { public static void main ( String[] args ) { Scanner sc = new Scanner ( System.in ); int n, five = 0, seven = 0; for ( int i = 0; i < 3; i++ ) { n = sc.nextInt (); if ( n == 5 ) { five++; } else if ( n == 7 ) { seven++; } } if...
Main.java:3: error: class ProblemA is public, should be declared in a file named ProblemA.java public class ProblemA ^ 1 error
s415223120
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int string_length; int string_num; std::cin >> string_length >> string_num; std::vector<std::string> strings; int i; for(i=0; i < string_num; i++){ std::string input; std::cin >> input; strings.push_back(input); } ...
a.cc: In function 'int main()': a.cc:41:12: error: expected '}' at end of input 41 | return 0; | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
s358644572
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int string_length; int string_num; std::cin >> string_length >> string_num; std::vector<std::string> strings; int i; for(i=0; i < string_num; i++){ std::string input; std::cin >> input; strings.push_back(input); } ...
a.cc: In function 'int main()': a.cc:36:22: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::erase(std::string&)' 36 | strings.erase(minimum); | ~~~~~~~~~~~~~^~~~~~~~~ In file included from /usr/include/c++/14/vector:66, from a.cc:3: /usr...
s012849733
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int string_length; int string_num; std::cin >> string_length >> string_num; std::vector<std::string> strings; int i; for(i=0; i < string_num; i++){ std::string input; std::cin >> input; strings.push_back(input); } ...
a.cc: In function 'int main()': a.cc:36:22: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::erase(int&)' 36 | strings.erase(minimum_pos); | ~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from /usr/include/c++/14/vector:66, from a.cc:3: /usr...
s751782537
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int string_length; int string_num; std::cin >> string_length >> string_num; std::vector<std::string> strings; int i; for(i=0; i < string_num; i++){ std::string input; std::cin >> input; strings.push_back(input); } ...
a.cc: In function 'int main()': a.cc:22:17: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; size_type = long unsigned int]' (did you forget the '()'...
s899704819
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int string_length; int string_num; std::cin >> string_length >> string_num; std::vector<std::string> strings; int i; for(i=0; i < string_num; i++){ string input; std::cin >> input; strings.push_back(input); } std...
a.cc: In function 'int main()': a.cc:15:5: error: 'string' was not declared in this scope 15 | string input; | ^~~~~~ a.cc:15:5: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/14...
s896613583
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int string_length; int string_num; std::cin >> string_length >> string_num; std::vector<std::string> strings; int i; for(i=0; i < string_num; i++){ string input; cin >> input; strings.push_back(input); } std::str...
a.cc: In function 'int main()': a.cc:15:5: error: 'string' was not declared in this scope 15 | string input; | ^~~~~~ a.cc:15:5: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/14...
s140418442
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int string_length; int string_num; std::cin >> string_length >> string_num; std::vector<string> strings; int i; for(i=0; i < string_num; i++){ string input; cin >> input; strings.push_back(input); } string res...
a.cc: In function 'int main()': a.cc:11:15: error: 'string' was not declared in this scope 11 | std::vector<string> strings; | ^~~~~~ a.cc:11:15: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, ...
s619127492
p04043
C++
#include<iostream> #include<string> int main(){ int string_length; int string_num; std::cin >> string_length >> string_num; std::vector<string> strings; int i; for(i=0; i < string_num; i++){ string input; cin >> input; strings.push_back(input); } string result; while(s...
a.cc: In function 'int main()': a.cc:10:8: error: 'vector' is not a member of 'std' 10 | std::vector<string> strings; | ^~~~~~ a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 1 | #include<iostream> +++ |+#include <vector> ...
s765347931
p04043
C++
#include<iostream> int main(){ int A,B,C; cin >> A >> B >> C; int five = 0; int seven = 0; if(A==5)five++; if(B==5)five++; if(C==5)five++; if(A==7)seven++; if(B==7)seven++; if(C==7)seven++; if(five==2 && seven==1)std::cout << "YES"; else std::cout << "NO"; return 0; }
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.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Lin...
s114304195
p04043
C++
#include<iostream> int main(){ int A,B,C; cin >> A >> B >> C; int five = 0; int seven = 0; if(A==5)five++; if(B==5)five++; if(C==5)five++; if(A==7)seven++; if(B==7)seven++; if(C==7)seven++; if(five==2 && seven==1)cout << "YES"; else cout << "NO"; return 0; }
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.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Lin...
s602725660
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int A,B,C; int five,seven; std::cin >> A >> B >> C; std::vector<int> inputs; inputs.push_back(A); inputs.push_back(B); inputs.push_back(C); five = std::count(inputs.begin(),inputs.end(),5); seven = std::count(inputs.begin()...
a.cc: In function 'int main()': a.cc:17:15: error: 'count' is not a member of 'std'; did you mean 'cout'? 17 | five = std::count(inputs.begin(),inputs.end(),5); | ^~~~~ | cout a.cc:18:16: error: 'count' is not a member of 'std'; did you mean 'cout'? 18 | seven = std::co...
s335017405
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int A,B,C; int five,seven; std::cin >> A >> B >> C; std::vector<int> inputs; inputs.push_back(A); inputs.push_back(B); inputs.push_back(C); if(inputs.count(5) == 2 && inputs.count(7) == 1)std::cout << "YES"; else std::cout ...
a.cc: In function 'int main()': a.cc:17:13: error: 'class std::vector<int>' has no member named 'count' 17 | if(inputs.count(5) == 2 && inputs.count(7) == 1)std::cout << "YES"; | ^~~~~ a.cc:17:37: error: 'class std::vector<int>' has no member named 'count' 17 | if(inputs.count(5) == 2 && inp...
s365951763
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int A,B,C; int five,seven; std::cin >> A >> B >> C; std::vector<int> inputs; inputs.push_back(A); inputs.push_back(B); inputs.push_back(C); five = std::count(inputs.begin(),inputs.end(),5); seven = std::count(inputs.begin()...
a.cc: In function 'int main()': a.cc:17:15: error: 'count' is not a member of 'std'; did you mean 'cout'? 17 | five = std::count(inputs.begin(),inputs.end(),5); | ^~~~~ | cout a.cc:18:16: error: 'count' is not a member of 'std'; did you mean 'cout'? 18 | seven = std::co...
s471860572
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int A,B,C; std::cin >> A >> B >> C; std::vector<int> inputs; inputs.push_back(A); inputs.push_back(B); inputs.push_back(C); five = std::count(inputs.begin(),inputs.end(),5); seven = std::count(inputs.begin(),inputs.end(),7); ...
a.cc: In function 'int main()': a.cc:16:3: error: 'five' was not declared in this scope 16 | five = std::count(inputs.begin(),inputs.end(),5); | ^~~~ a.cc:16:15: error: 'count' is not a member of 'std'; did you mean 'cout'? 16 | five = std::count(inputs.begin(),inputs.end(),5); | ^...
s321490421
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ int A,B,C; cin >> A >> B >> C; vector<int> inputs; inputs.push_back(A); inputs.push_back(B); inputs.push_back(C); five = std::count(inputs.begin(),inputs.end(),5); seven = std::count(inputs.begin(),inputs.end(),7); if(fi...
a.cc: In function 'int main()': a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 8 | cin >> A >> B >> C; | ^~~ | 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; ///< Lin...
s232929404
p04043
C++
#include<iostream> #include<string> #include<vector> int main(){ cin >> A >> B >> C; vector<int> inputs; inputs.push_back(A); inputs.push_back(B); inputs.push_back(C); five = std::count(inputs.begin(),inputs.end(),5); seven = std::count(inputs.begin(),inputs.end(),7); if(five == 2 && seven ...
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.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Lin...
s191146748
p04043
C++
#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> #include <unordered_map> #define endl '\n'; #define all(v) ((v).begin()), ((v).end()) #define sz(s) (int)s.size() #define Ceil(x,y) ((x+y-1)/y) #define RT(x) return cout<<x,0; #define mem(x,y) memset(x,y,sizeof(x)) #define v...
a.cc: In function 'int main()': a.cc:30:22: error: expected ';' before ':' token 30 | cout<<"YES\n": | ^ | ;
s580794084
p04043
C++
sdfdsd
a.cc:1:1: error: 'sdfdsd' does not name a type 1 | sdfdsd | ^~~~~~
s582724455
p04043
C++
#include <iostream> using namespace std; int main(void) { 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"<<endl; else cout<<"NO"<<endl return 0; }
a.cc: In function 'int main()': a.cc:8:24: error: expected ';' before 'return' 8 | else cout<<"NO"<<endl | ^ | ; 9 | 10 | return 0; | ~~~~~~
s584548791
p04043
C
#include<stdio.h> int main() { int A,B,C; scanf(“%d %d %d”,&A,&B,&C); if(A%7==0) { if(B%5==0 && C%5==0) { printf(“Yes”); } } else if(A%5==0) { if(B%5==0 && C%7==0) ...
main.c: In function 'main': main.c:5:11: error: stray '\342' in program 5 | scanf(<U+201C>%d %d %d<U+201D>,&A,&B,&C); | ^~~~~~~~ main.c:5:12: error: expected expression before '%' token 5 | scanf(“%d %d %d”,&A,&B,&C); | ^ main.c:5:20: error: stray '\342' in program 5...
s733448594
p04043
C
#include<studio.h> int main() { int A,B,C; scanf(“%d %d %d”,&A,&B,&C); if(A%7==0) { if(B%5==0 && C%5==0) { printf(“Yes”); } } else if(A%5==0) { if(B%5==0 && C%7==0) ...
main.c:1:9: fatal error: studio.h: No such file or directory 1 | #include<studio.h> | ^~~~~~~~~~ compilation terminated.
s610318305
p04043
C
#include<stdio.h> int main() { int A,B,C; scanf(“%d %d %d\n”,&A,&B,&C); if(A%7==0) { if(B%5==0 && C%5==0) { printf(“Yes\n”); } } else if(A%5==0) { if(B%5==0 && C%7==0) ...
main.c: In function 'main': main.c:5:11: error: stray '\342' in program 5 | scanf(<U+201C>%d %d %d\n<U+201D>,&A,&B,&C); | ^~~~~~~~ main.c:5:12: error: expected expression before '%' token 5 | scanf(“%d %d %d\n”,&A,&B,&C); | ^ main.c:5:20: error: stray '\' in program ...
s623466660
p04043
C
#include<studio.h> int main() { int A,B,C; scanf(“%d %d %d\n”,&A,&B,&C); if(A%7==0) { if(B%5==0 && C%5==0) { printf(“Yes\n”); } } else if(A%5==0) { if(B%5==0 && C%7==0) ...
main.c:1:9: fatal error: studio.h: No such file or directory 1 | #include<studio.h> | ^~~~~~~~~~ compilation terminated.
s171778515
p04043
C++
#include <stdio.h> using std::cin; using std::cout; void answer() { int a,five=0,seven=0; for(int i=0;i<3;i++){ cin>>a; if(a==5) five++; else if(a==7) seven++; } if(2==five||1==seven) cout<<"YES"; else cout<<"NO"; } int main(){ answer(); return 0; }
a.cc:2:12: error: 'cin' has not been declared in 'std' 2 | using std::cin; | ^~~ a.cc:3:12: error: 'cout' has not been declared in 'std' 3 | using std::cout; | ^~~~ a.cc: In function 'void answer()': a.cc:8:17: error: 'cin' was not declared in this scope 8 | ...
s287036948
p04043
C++
#include<iostream> using namespace std; int main(){ int a[3],s=0,f=0; for(int i=0;i<3;i++) {cin>>a[i]; if(a[i]==5)f++; if(a[i]==7)s++;} if(f==2&&s==1) cout<<"YES" else cout<<"NO"; return 0;}
a.cc: In function 'int main()': a.cc:10:12: error: expected ';' before 'else' 10 | cout<<"YES" | ^ | ; 11 | else cout<<"NO"; | ~~~~
s581886067
p04043
C++
#include<iostream> int main(){ int a[3],s=0,f=0; for(int i=0;i<3;i++) {cin>>a[i]; if(a[i]==5)f++; if(a[i]==7)s++;} if(f==2&&s==1) cout<<"YES" else cout<<"NO"; return 0;}
a.cc: In function 'int main()': a.cc:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | {cin>>a[i]; | ^~~ | 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 stand...
s535769699
p04043
C++
#include<bits/stdc++.h> using namespace std; void main() { vector<int>a;int k=0,l=0; a.resize(3); for(int i=0;i<a.size();i++) cin>>a[i]; for(int i=0;i<a.size();i++) { if(a[i]==5) k++; else if(a[i]==7) l++;} if(k==2&&l==1) cout<<"YES"; else cout<<"NO"; }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~
s832596694
p04043
C
#include<stdio.h> int main() { int a[3],f=0,s=0,i,t; for(i=0;i<3;i++) { scanf("%d ",&a[i]) if(a[i]==5) f++; else if(a[i]==7) s++; } t=f+s; if(t==3&&f==2&&s==1) printf("YES"); else printf("NO"); }
main.c: In function 'main': main.c:7:19: error: expected ';' before 'if' 7 | scanf("%d ",&a[i]) | ^ | ; 8 | if(a[i]==5) | ~~ main.c:10:1: error: 'else' without a previous 'if' 10 | else if(a[i]==7) | ^~~~
s312662876
p04043
C++
#include<bits/stdc++.h> using namespace std; { vector<int>a;int k=0,l=0; a.resize(3); for(int i=0;i<a.size();i++) cin>>a[i]; for(int i=0;i<a.size();i++) { if(a[i]==5) k++; else if(a[i]==7) l++;} if(k==2&&l==1) cout<<"YES"; else cout<<"NO"; }
a.cc:3:1: error: expected unqualified-id before '{' token 3 | { vector<int>a;int k=0,l=0; | ^
s123461936
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:15:12: error: expected '}' at end of input 15 | return 0; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s206113163
p04043
C++
#include <bits/stdc++.h> #define endl '\n' #define ll long long int #define vi vector<int> #define vll vector<ll> #define vvi vector < vi > #define pii pair<int,int> #define pll pair<long long, long long> #define mod 1000000007 #define inf 1000000000000000001; #define all(c) c.begin(),c.end() #define mp(x,y) make_pair(...
a.cc: In function 'int main()': a.cc:26:18: error: expected primary-expression before ',' token 26 | int n5=0;,n7=0; | ^ a.cc:26:19: error: 'n7' was not declared in this scope; did you mean 'n5'? 26 | int n5=0;,n7=0; | ^~ | n5
s294326980
p04043
C++
#include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { int N, L, i; cin >> N; cin >> L; vector<int> A(data, data+N) for (i=0; i<N; i++){ cin >> A[i]; } sort(A.begin(), A.end()); for(i=0; i<N; i++){ cout << A[i]; } return ...
a.cc: In function 'int main()': a.cc:10:29: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' 10 | vector<int> A(data, data+N) | ~~~~^~ a.cc:12:5: error: expected ',' or ';' before 'for' 12 | for (i=0; i<N; i++){ | ...
s960112882
p04043
C++
//B - Iroha Loves Strings: 2Min; //Assunto: Sort; #include<bits/stdc++.h> #define fi first #define se second #define pb push_back #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define loop(i, a, b) for(int i = a; i < b; i++) #define loopBack(i, a, b) for(int i = a; i >= b; i--) #define INF INT_...
a.cc: In function 'int main()': a.cc:24:12: error: 'a' was not declared in this scope 24 | cin >> a >> b >> c; | ^ a.cc:24:17: error: 'b' was not declared in this scope; did you mean 'pb'? 24 | cin >> a >> b >> c; | ^ | pb a.cc:24:22: error: 'c'...
s048949330
p04043
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC042A { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word...
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...
s128904030
p04043
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC042A { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word...
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...
s619117140
p04043
C++
#include<iostream> #include<alogrithm> using namespace std; int main(){ int a[3]; cin >> a[0] >> a[1] >> a[2]; sort(a,a+3); if(a[0] == 5 && a[1] == 5 && a[2] == 7) cout << "Yes\n"; else cout << "No\n"; return 0; }
a.cc:2:9: fatal error: alogrithm: No such file or directory 2 | #include<alogrithm> | ^~~~~~~~~~~ compilation terminated.
s642643769
p04043
C++
#include<iostream> using namespace std; int main(){ int a[3]; cin >> a[0] >> a[1] >> a[2]; sort(a,a+3); if(a[0] == 5 && a[1] == 5 && a[2] == 7) cout << "Yes\n"; else cout << "No\n"; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: 'sort' was not declared in this scope; did you mean 'short'? 6 | sort(a,a+3); | ^~~~ | short
s741541187
p04043
C++
import java.util.* fun main(args:Array<String>){ val a = readLine()!!.split(" ").map{it.toInt()}.sorted() println(if(a[0] == 5 && a[1] == 5 && a[2] == 7) "YES" else "NO") }
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'
s241438802
p04043
C++
# AtCode 042 if gets.split(' ').map(&:to_i).sort == [5, 5, 7] puts "YES" else puts "NO" end
a.cc:1:3: error: invalid preprocessing directive #AtCode 1 | # AtCode 042 | ^~~~~~ a.cc:3:1: error: expected unqualified-id before 'if' 3 | if gets.split(' ').map(&:to_i).sort == [5, 5, 7] | ^~
s535930650
p04043
C++
#include <bits/stdc++.h> using namespace std; bool check_digit(int arr[], int, int); int main(){ int K; string N; cin >> N >> K; int *arr = new int[K]; int num = 0; int c, flag = 0; for(int i = 0; N[i] != '\0'; i++){ c = (N[i] - '0')*pow(10,N.size...
a.cc: In function 'int main()': a.cc:34:10: error: expected '}' at end of input 34 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s162790197
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ string A, B, C; cin >> A >> B >> C; int flag = 0; if((A==5&&B==5&&C==7) || (B==5&&C==5&&A==7) || (C==5&&A==5&&B==7)) if(A==7 || B==7 || C==7) flag = 1; if(flag=1) cout << "YES"; else ...
a.cc: In function 'int main()': a.cc:7:12: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 7 | if((A==5&&B==5&&C==7) || (B==5&&C==5&&A==7) || (C==5&&A==5&&B==7)) | ~^~~ | | | | | int |...
s794990870
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ string A, B, C; cin >> A >> B >> C; int flag = 0; if((A==5&&B==5) || (B==5&&C==5) || (C==5&&A==5)) if(A==7 || B==7 || C==7) flag = 1; if(flag=1) cout << "YES"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:7:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 7 | if((A==5&&B==5) || (B==5&&C==5) || (C==5&&A==5)) | ~^~~ | | | | | int | std::string {aka std::__cxx1...
s838637327
p04043
C++
#include <bits/stdc++.h#include <bits/stdc++.h> using namespace std; int main(){ string A, B, C; cin >> A >> B >> C; int flag = 0; if((A==5&&B==5) || (B==5&&C==5) || (C==5&&A==5)) if(A==7 || B==7 || C==7) flag = 1; if(flag=1) cout << "YES"; else cout << "NO"; return 0; }
a.cc:1:10: fatal error: bits/stdc++.h#include <bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h#include <bits/stdc++.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s404424514
p04043
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 0; i < (N); i++) #define all(a) (a).begin(), (a).end() #define pb push_back using ll = long long; using i_i = tuple<int, int>; int main(){ vector<int> a(3); rep(i, 3) cin >> a[i]; bool x = ((a[0]==5 && a[1] == 5 && a[2] == 7)...
a.cc: In function 'int main()': a.cc:16:5: error: return-statement with no value, in function returning 'int' [-fpermissive] 16 | return; | ^~~~~~
s999469844
p04043
C++
//UTF-8でコーディングしています #include <bits/stdc++.h> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; if(A*B*C=5*5*7){ cout << "YES" << "\n"; }else{ cout << "NO" << "\n"; } }
a.cc: In function 'int main()': a.cc:8:9: error: lvalue required as left operand of assignment 8 | if(A*B*C=5*5*7){ | ~~~^~
s370242431
p04043
C++
#include<iostream> using namespace std; int main(){ int a,b,c; int t=0; cin >> a >> b >> c; if(a>b){ t=a; a=b; b=t; } if(b>c){ t=b; b=c; c=t; } if(a>b){ t=a; a=b; b=t; } if(a==5&&b==5&&c==7){ cout << "YES" << endl; }else{ cout << "NO" << endl; ...
a.cc: In function 'int main()': a.cc:32:4: error: expected '}' at end of input 32 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s201693934
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int N = Integer.parseInt(str); str = scan.next(); int L = Integer.parseInt(str); ArrayList<String> list = new ArrayList<>(); for(...
Main.java:22: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 1 error
s403663210
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int N = Integer.parseInt(str); str = scan.next(); int L = Integer.parseInt(str); ArrayList<String> list = new ArrayList<>(); for(...
Main.java:19: error: ';' expected System.out.print(input) ^ 1 error
s286086573
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int N = Integer.parseInt(str); str = scan.next(); int L = Integer.parseInt(str); ArrayList<String> list = new ArrayList<>(); for(...
Main.java:21: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 1 error
s734150567
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int N = Integer.parseInt(str); str = scan.next(); int L = Integer.parseInt(str); ArrayList<String> list = new ArrayList<>(); for(...
Main.java:20: error: variable ans might not have been initialized ans = ans + input; ^ Main.java:22: error: variable ans might not have been initialized System.out.println(ans); ^ 2 errors
s845052068
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int N = Integer.parseInt(str); str = scan.next(); int L = Integer.parseInt(str); ArrayList<String> list = new ArrayList<>(); for(...
Main.java:18: error: incompatible types: int cannot be converted to boolean for(int i = 0; 2 ; i++){ ^ 1 error
s125103451
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int N = Integer.parseInt(str); str = scan.next(); int L = Integer.parseInt(str); ArrayList<String> list = new ArrayList<>(); for(...
Main.java:18: error: cannot find symbol for(i = 0; 2 ; i++){ ^ symbol: variable i location: class Main Main.java:18: error: incompatible types: int cannot be converted to boolean for(i = 0; 2 ; i++){ ^ Main.java:18: error: cannot find symbol for(i = 0; 2 ; i++){ ...
s537563646
p04043
Java
import java.util.*; import java.io.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int N = Integer.parseInt(str); str = scan.next(); int L = Integer.parseInt(str); List<String> list = new ArrayList<>(); ...
Main.java:17: error: no suitable method found for sort(List<String>) Arrays.sort(list); ^ method Arrays.sort(int[]) is not applicable (argument mismatch; List<String> cannot be converted to int[]) method Arrays.sort(long[]) is not applicable (argument mismatch; List<String> canno...
s766873952
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int num_1 = Integer.parseInt(str); str = scan.next(); int num_2 = Integer.parseInt(str); str = scan.next(); int num_3 = Integer.parseIn...
Main.java:11: error: bad operand types for binary operator '==' if (num_1 == "7"){ ^ first type: int second type: String Main.java:12: error: bad operand types for binary operator '==' if (num_2 == "5" && num_3 == "5"){ ^ first type: int second type: String ...
s255343664
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int num_1 = Integer.parseInt(str); String str = scan.next(); int num_2 = Integer.parseInt(str); String str = scan.next(); int num_3 = I...
Main.java:7: error: variable str is already defined in method main(String[]) String str = scan.next(); ^ Main.java:9: error: variable str is already defined in method main(String[]) String str = scan.next(); ^ Main.java:11: error: incompatible types: String cannot be converted ...
s908568947
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int num_1 = Integer.parseInt(str); String str = scan.next(); int num_2 = Integer.parseInt(str); String str = scan.next(); int num_3 = I...
Main.java:7: error: variable str is already defined in method main(String[]) String str = scan.next(); ^ Main.java:9: error: variable str is already defined in method main(String[]) String str = scan.next(); ^ Main.java:11: error: incompatible types: String cannot be converted ...
s074117368
p04043
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin >>a>>b>>c; if(a+b+c==19){ if((a==5||b==5||c==5)&&(a==7||b==7||c==7)){ cout << Yes; } }else{ cout << No; } }
a.cc: In function 'int main()': a.cc:9:15: error: 'Yes' was not declared in this scope 9 | cout << Yes; | ^~~ a.cc:12:17: error: 'No' was not declared in this scope 12 | cout << No; | ^~
s859903282
p04043
C++
#include <iostream> using namespace std; int main(){ int s1, s2, s3; cin >> s1 >> s2 > s3; vector<int> v; v.push_back(s1); v.push_back(s2); v.push_back(s3); int i = 0; int j = 0; for(auto m : v) { if(m == 5){ i++; } if(m == 7){ j++; } } if((i == 2) && j == 1){ cout << "YES"; } else{ ...
a.cc: In function 'int main()': a.cc:8:25: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 8 | cin >> s1 >> s2 > s3; | ~~~~~~~~~~~~~~~ ^ ~~ | | | | | ...