submission_id
stringlengths 10
10
| problem_id
stringlengths 6
6
| language
stringclasses 3
values | code
stringlengths 1
522k
| compiler_output
stringlengths 43
10.2k
|
|---|---|---|---|---|
s077201869
|
p04043
|
C
|
#include<stdio.h>
int srx,sry;
int main()
{
int i;
for(i=1;i<=3;i++)
{int t;
scanf("%d",&t);
if(t==5)
srx++;
else if(t==7)
sry++;}
if(srx==2&&ry==1)
printf("YES\n");
else
printf("NO\n");
return 0;
}
|
main.c: In function 'main':
main.c:13:16: error: 'ry' undeclared (first use in this function); did you mean 'sry'?
13 | if(srx==2&&ry==1)
| ^~
| sry
main.c:13:16: note: each undeclared identifier is reported only once for each function it appears in
|
s691451609
|
p04043
|
Java
|
import com.sun.deploy.util.ArrayUtil;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
List<Integer> arr = new ArrayList<Integer>(Arrays.asList(sc.nextInt(), sc.nextInt(),sc.nextInt()));
if (arr.contains(5)){
arr.remove(arr.indexOf(5));
if (arr.contains(5)){
arr.remove(arr.indexOf(5));
if (arr.contains(7)){
System.out.println("YES");
}else{
System.out.println("NO");
}
}else{
System.out.println("NO");
}
}else{
System.out.println("NO");
}
}
}
|
Main.java:1: error: package com.sun.deploy.util does not exist
import com.sun.deploy.util.ArrayUtil;
^
1 error
|
s837234765
|
p04043
|
C++
|
#include<iostream>
using namespace std;
int main(){
int a[3],n5=2,n7=1;
cin>>a[0]>>a[1]>>a[2];
for(int i=0;i<n;i++){
if(a[i]==5){
n5--;
}else if(a[i]==7){
n7--;
}
}
if(n5==0&&n7==0){
cout<<"YES";
}else{
cout<<"NO";
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:23: error: 'n' was not declared in this scope
6 | for(int i=0;i<n;i++){
| ^
|
s161210953
|
p04043
|
Java
|
import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a=sc.nextInt()
int b=sc.nextInt();
String c[] =new String[a];
for(int i=0;i<b;i++){
c[i]=sc.next();
}
Arrays.sort(c);
for(int i=0;i<b;i++){
System.out.print(c[i]);
}
}
}
|
Main.java:5: error: ';' expected
int a=sc.nextInt()
^
1 error
|
s484461495
|
p04043
|
Java
|
import java.util.*;
public class Main {
static void bubbleSort(int[] arr) {
int n = arr.length;
int temp = 0; a
for(int i=0; i < n; i++){
for(int j=1; j < (n-i); j++){
if(arr[j-1] > arr[j]){
//swap elements
temp = arr[j-1];
arr[j-1] = arr[j];
arr[j] = temp;
}
}
}
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] arr = new int[3];
arr[0] = sc.nextInt();
arr[1] = sc.nextInt();
arr[2] = sc.nextInt();
bubbleSort(arr);
if (arr[0]==5&&arr[1]==5&&arr[2]==7) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
|
Main.java:6: error: not a statement
int temp = 0; a
^
Main.java:6: error: ';' expected
int temp = 0; a
^
2 errors
|
s099811919
|
p04043
|
C++
|
#include<cstdio>
using namespace std;
int a,b,c;
int t[8];
int main()
{
scanf("%d %d %d",&a,&b,&c);
t[a]++;
t[b]++;
t[c]++;
if(t[5]==2&&t[7]==1)
puts("YES");
else
puts("NO")
}
|
a.cc: In function 'int main()':
a.cc:14:14: error: expected ';' before '}' token
14 | puts("NO")
| ^
| ;
15 | }
| ~
|
s491511309
|
p04043
|
C++
|
#include<cstdio>
using namespace std;
int a,b,c;
int t[8];
int main()
{
scanf("%d %d %d",&a,&b,&c);
t[a]++;
t[b]++;
t[c]++;
if(t[5]==2&&t[7]==1)
puts('YES');
else
puts('NO')
}
|
a.cc:12:9: warning: multi-character character constant [-Wmultichar]
12 | puts('YES');
| ^~~~~
a.cc:14:9: warning: multi-character character constant [-Wmultichar]
14 | puts('NO')
| ^~~~
a.cc: In function 'int main()':
a.cc:12:9: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
12 | puts('YES');
| ^~~~~
| |
| int
In file included from /usr/include/c++/14/cstdio:42,
from a.cc:1:
/usr/include/stdio.h:714:30: note: initializing argument 1 of 'int puts(const char*)'
714 | extern int puts (const char *__s);
| ~~~~~~~~~~~~^~~
a.cc:14:9: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
14 | puts('NO')
| ^~~~
| |
| int
/usr/include/stdio.h:714:30: note: initializing argument 1 of 'int puts(const char*)'
714 | extern int puts (const char *__s);
| ~~~~~~~~~~~~^~~
a.cc:14:14: error: expected ';' before '}' token
14 | puts('NO')
| ^
| ;
15 | }
| ~
|
s907202822
|
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 == 5 && b == 5 && c == 7)||(a == 5 && b == 7 && c == 5)||(a == 7 && b == 5 && c == 5){
System.out.println("OK");
}else{
System.out.println("NO");
}
}
}
|
Main.java:8: error: ')' expected
if((a == 5 && b == 5 && c == 7)||(a == 5 && b == 7 && c == 5)||(a == 7 && b == 5 && c == 5){
^
1 error
|
s729230494
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int a,b,c,t;
int main(){
cin>>a>>b>>c;
if(a==7) t++;
if(b==7) t++;
if(c==7) t++;
if(t7==1) cout<<"YES";
else cout<<"NO";
}
|
a.cc: In function 'int main()':
a.cc:9:8: error: 't7' was not declared in this scope; did you mean 'tm'?
9 | if(t7==1) cout<<"YES";
| ^~
| tm
|
s242036917
|
p04043
|
C++
|
function main(input){
const args = input.split(" ");
if(args.indexOf("5")!==-1&&args.indexOf("7")!==-1&&args.indexOf("5")!==args.lastIndexOf("5")){
console.log("YES");}else{console.log("NO")}
}
|
a.cc:1:1: error: 'function' does not name a type; did you mean 'union'?
1 | function main(input){
| ^~~~~~~~
| union
|
s214870273
|
p04043
|
C++
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
import java.util.StringTokenizer;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
public class Main{
static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() { return Integer.parseInt(next());}
long nextLong() {return Long.parseLong(next());}
double nextDouble() {return Double.parseDouble(next());}
String nextLine(){
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
public static void main(String[] args) throws IOException {
PrintWriter out = new PrintWriter(System.out);
MyScanner sc = new MyScanner();
Main solver = new Main();
solver.solve(out, sc);
out.flush();
out.close();
}
void solve(PrintWriter out, MyScanner sc) throws IOException{
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a == 7 && b == 5 && c == 5 || a == 5 && b == 7 && c == 5 || a == 5 && b == 5 && c == 7) out.print("YES");
else out.println("NO");
}
}
|
a.cc:1:1: error: 'import' does not name a type
1 | import java.io.BufferedReader;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.io.IOException;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
3 | import java.io.InputStreamReader;
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
4 | import java.io.PrintWriter;
| ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
5 | import java.util.ArrayList;
| ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
6 | import java.util.Arrays;
| ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
7 | import java.util.Collections;
| ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: 'import' does not name a type
8 | import java.util.HashMap;
| ^~~~~~
a.cc:8:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:9:1: error: 'import' does not name a type
9 | import java.util.HashSet;
| ^~~~~~
a.cc:9:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:10:1: error: 'import' does not name a type
10 | import java.util.List;
| ^~~~~~
a.cc:10:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:11:1: error: 'import' does not name a type
11 | import java.util.Map;
| ^~~~~~
a.cc:11:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:12:1: error: 'import' does not name a type
12 | import java.util.Scanner;
| ^~~~~~
a.cc:12:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:13:1: error: 'import' does not name a type
13 | import java.util.Set;
| ^~~~~~
a.cc:13:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:14:1: error: 'import' does not name a type
14 | import java.util.StringTokenizer;
| ^~~~~~
a.cc:14:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:16:1: error: 'import' does not name a type
16 | import javax.xml.parsers.DocumentBuilder;
| ^~~~~~
a.cc:16:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:17:1: error: 'import' does not name a type
17 | import javax.xml.parsers.DocumentBuilderFactory;
| ^~~~~~
a.cc:17:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:18:1: error: 'import' does not name a type
18 | import javax.xml.parsers.ParserConfigurationException;
| ^~~~~~
a.cc:18:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:20:1: error: 'import' does not name a type
20 | import org.w3c.dom.Document;
| ^~~~~~
a.cc:20:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:21:1: error: 'import' does not name a type
21 | import org.w3c.dom.NamedNodeMap;
| ^~~~~~
a.cc:21:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:22:1: error: 'import' does not name a type
22 | import org.w3c.dom.Node;
| ^~~~~~
a.cc:22:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:23:1: error: 'import' does not name a type
23 | import org.w3c.dom.NodeList;
| ^~~~~~
a.cc:23:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:24:1: error: 'import' does not name a type
24 | import org.xml.sax.SAXException;
| ^~~~~~
a.cc:24:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:29:1: error: expected unqualified-id before 'public'
29 | public class Main{
| ^~~~~~
|
s496255146
|
p04043
|
C++
|
#include <iostream>
#include <vector>
using namespace std;
int main(void){
// Your code here!
vector<int> v(3);
cin>>v[0]>>v[1]>>v[2];
sort(v.begin(),v.end());
if((v[2]==7&&v[0]==5)&&v[1]==5)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
|
a.cc: In function 'int main()':
a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'short'?
8 | sort(v.begin(),v.end());
| ^~~~
| short
|
s783293149
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(void) {
int a[3], c5 = 0, c7 = 0;
cin >> a[0] >> a[1] >> a[2];
for (int i : a) {
if (i == 5)
c5++;
if (c == 7)
c7++;
}
cout << (c5 == 2 && c7 == 1 ? "YES" : "NO") <<endl;
}
|
a.cc: In function 'int main()':
a.cc:10:9: error: 'c' was not declared in this scope
10 | if (c == 7)
| ^
|
s777113881
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
string a[5];
int main(void)
{
cin>>a[1]>>a[2]>>a[3];
sort(a+1,a+2,a+3);
if(a[1]+a[3]+a[2]=="575")cout<<"YES";else cout<<"NO";
puts("");
return 0;
}
|
In file included from /usr/include/c++/14/bits/stl_algobase.h:71,
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/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = std::__cxx11::basic_string<char>*; _Iterator2 = std::__cxx11::basic_string<char>*; _Compare = std::__cxx11::basic_string<char>*]':
/usr/include/c++/14/bits/stl_algo.h:1777:14: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
1777 | if (__comp(__i, __first))
| ~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1817:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1908:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
1908 | std::__final_insertion_sort(__first, __last, __comp);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4805:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __cxx11::basic_string<char>*; _Compare = __cxx11::basic_string<char>*]'
4805 | std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:6: required from here
7 | sort(a+1,a+2,a+3);
| ~~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:158:30: error: expression cannot be used as a function
158 | { return bool(_M_comp(*__it1, *__it2)); }
| ~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = std::__cxx11::basic_string<char>; _Iterator = std::__cxx11::basic_string<char>*; _Compare = std::__cxx11::basic_string<char>*]':
/usr/include/c++/14/bits/stl_algo.h:1757:20: required from 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Val_comp_iter<__cxx11::basic_string<char>*>]'
1757 | while (__comp(__val, __next))
| ~~~~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1785:36: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
1785 | std::__unguarded_linear_insert(__i,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
1786 | __gnu_cxx::__ops::__val_comp_iter(__comp));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1817:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1908:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
1908 | std::__final_insertion_sort(__first, __last, __comp);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4805:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __cxx11::basic_string<char>*; _Compare = __cxx11::basic_string<char>*]'
4805 | std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:6: required from here
7 | sort(a+1,a+2,a+3);
| ~~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:240:30: error: expression cannot be used as a function
240 | { return bool(_M_comp(__val, *__it)); }
| ~~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = std::__cxx11::basic_string<char>*; _Value = std::__cxx11::basic_string<char>; _Compare = std::__cxx11::basic_string<char>*]':
/usr/include/c++/14/bits/stl_heap.h:140:48: required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Distance = long int; _Tp = __cxx11::basic_string<char>; _Compare = __gnu_cxx::__ops::_Iter_comp_val<__cxx11::basic_string<char>*>]'
140 | while (__holeIndex > __topIndex && __comp(__first + __parent, __value))
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_heap.h:247:23: required from 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Distance = long int; _Tp = __cxx11::basic_string<char>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
247 | std::__push_heap(__first, __holeIndex, __topIndex,
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
248 | _GLIBCXX_MOVE(__value), __cmp);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_heap.h:356:22: required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
356 | std::__adjust_heap(__first, __parent, __len, _GLIBCXX_MOVE(__value),
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
357 | __comp);
| ~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1593:23: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
1593 | std::__make_heap(__first, __middle, __comp);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1868:25: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
1868 | std::__heap_select(__first, __middle, __last, __comp);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1884:27: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
1884 | std::__partial_sort(__first, __last, __last, __comp);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1905:25: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<__cxx11::basic_string<char>*>]'
1905 | std::__introsort_loop(__first, __last,
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
1906 | std::__lg(__last - __first) * 2,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1907 | __comp);
| ~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4805:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __cxx11::basic_string<char>*; _Compare = __cxx11::basic_string<char>*]'
4805 | std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:6: required from here
7 | sort(a+1,a+2,a+3);
| ~~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:196:30: error: expression cannot be used as a function
196 | { return bool(_M_comp(*__it, __val)); }
| ~~~~~~~^~~~~~~~~~~~~~
|
s610950446
|
p04043
|
C++
|
#include<iostream>
using namespace std;
int a,b,c,sum5=0,sum7==0;
int main()
{
cin>>a>>b>>c;
if(a==5)sum5++;
if(b==5)sum5++;
if(c==5)sum5++;
if(a==7)sum7++;
if(b==7)sum7++;
if(c==7)sum7++;
if(sum5==2&&sum7==1)cout<<"YES";
else cout<<"NO";
}
|
a.cc:3:22: error: expected initializer before '==' token
3 | int a,b,c,sum5=0,sum7==0;
| ^~
a.cc: In function 'int main()':
a.cc:10:13: error: 'sum7' was not declared in this scope; did you mean 'sum5'?
10 | if(a==7)sum7++;
| ^~~~
| sum5
a.cc:11:13: error: 'sum7' was not declared in this scope; did you mean 'sum5'?
11 | if(b==7)sum7++;
| ^~~~
| sum5
a.cc:12:13: error: 'sum7' was not declared in this scope; did you mean 'sum5'?
12 | if(c==7)sum7++;
| ^~~~
| sum5
a.cc:13:17: error: 'sum7' was not declared in this scope; did you mean 'sum5'?
13 | if(sum5==2&&sum7==1)cout<<"YES";
| ^~~~
| sum5
|
s202117198
|
p04043
|
C++
|
#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
int a,b,c,ans1=0,ans2=0;
cin>>a>>b>>c;
if(a==5||b==5||c==5)ans1++;
if(a==7||b==7||c==7)ans2++;
if(ans1=2&&ans2=1)cout<<"YES";
else cout<<"NO";
return 0;
}
|
a.cc: In function 'int main()':
a.cc:11:14: error: lvalue required as left operand of assignment
11 | if(ans1=2&&ans2=1)cout<<"YES";
| ~^~~~~~
|
s443394475
|
p04043
|
C++
|
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,t7=0; scanf("%d%d%d",&a,&b,&c); if(a==7) t7++; if(b==7) t7++; if(c==7) t7++; if(t7==1) printf("YES"); else printf("NO"); }
|
a.cc:1:25: warning: extra tokens at end of #include directive
1 | #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,t7=0; scanf("%d%d%d",&a,&b,&c); if(a==7) t7++; if(b==7) t7++; if(c==7) t7++; if(t7==1) printf("YES"); else printf("NO"); }
| ^~~~~
/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
|
s836262316
|
p04043
|
C++
|
#include<iostream>
#include<cstdio>
using namespace std;
int s1,s2,t;
int main()
{
for(int i=1;i<=3;i++)
{
cin>>t
if(t==5)
{
s1++;
}
else if(t==7)
{
s2++;
}
}
if(s1==2&&s2==1)
{
cout<<"YES";
}
else
{
cout<<"NO";
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before 'if'
9 | cin>>t
| ^
| ;
10 | if(t==5)
| ~~
a.cc:14:9: error: 'else' without a previous 'if'
14 | else if(t==7)
| ^~~~
|
s189267896
|
p04043
|
C++
|
#include<iostream>
int s1,s2,t;
int main()
{
for(int i=1;i<=3;i++)
{
cin>>t
if(t==5)
{
s1++;
}
else if(t==7)
{
s2++;
}
}
if(s1==2&&s2==1)
{
cout<<"YES";
}
else
{
cout<<"NO";
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin>>t
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:12:9: error: 'else' without a previous 'if'
12 | else if(t==7)
| ^~~~
a.cc:20:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
20 | cout<<"YES";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:24:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
24 | cout<<"NO";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s316067556
|
p04043
|
C++
|
#include<iostream>
#include<string>
#include<algorithm>
#include<cstdlib>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b <<c;
if (a == 5 && b == 5) {
if (c == 7) cout << "YES" << endl;
else cout << "NO" << endl;
}
else if (a == 5 && b == 7) {
if (c == 5)cout << "YES" << endl;
else cout << "NO" << endl;
}
else if (a == 7 && b == 5) {
if (c == 5)cout << "YES" << endl;
else cout << "NO" << endl;
}
else cout << "NO" << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:10:19: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
10 | cin >> a >> b <<c;
| ~~~~~~~~~~~~~ ^~~
| | |
| | int
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
a.cc:10:19: note: candidate: 'operator<<(int, int)' (built-in)
10 | cin >> a >> b <<c;
| ~~~~~~~~~~~~~~^~~
a.cc:10:19: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
10 | cin >> a >> b <<c;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:10:14: note: cannot convert '(& std::cin.std::basic_istream<char>::operator>>(a))->std::basic_istream<char>::operator>>(b)' (type 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'}) to type 'std::byte'
10 | cin >> a >> b <<c;
| ~~~~~~~~~^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
10 | cin >> a >> b <<c;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:10:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
10 | cin >> a >> b <<c;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]':
|
s289658556
|
p04043
|
C++
|
// Iroha and Haiku
#include <iostream>
using namespace std;
int main(){
int p[3];
cin >> p[0] >> p[1] >> p[2];
sort(p, p+3);
if (p[0] == 5 && p[1] == 5 && p[2] == 7)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:11:9: error: 'sort' was not declared in this scope; did you mean 'short'?
11 | sort(p, p+3);
| ^~~~
| short
|
s780053333
|
p04043
|
C++
|
if (A == 5) {
if (B == 5) {
if (C == 7) {
cout << "YES" << endl;
return 0;
}
}
}
|
a.cc:1:1: error: expected unqualified-id before 'if'
1 | if (A == 5) {
| ^~
|
s060068296
|
p04043
|
Java
|
import java.util.Scanner;
public class MainA {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int haikuarray[] = new int[3];
for(int i = 0; haikuarray.length > i; i++) {
haikuarray[i] = sc.nextInt();
}
sc.close();
boolean j = retHaiku(haikuarray);
if(j == true) {
System.out.println("YES");
}else {
System.out.println("NO");
}
}
public static boolean retHaiku(int harray[]) {
int sevencnt = 0;
int fivecnt = 0;
for(int i = 0; harray.length > i; i++) {
if(harray[i] == 7 && sevencnt == 0) {
sevencnt++;
}else if(harray[i] == 5 && fivecnt < 2) {
fivecnt++;
}else {
return false;
}
}
return true;
}
}
|
Main.java:3: error: class MainA is public, should be declared in a file named MainA.java
public class MainA {
^
1 error
|
s416712168
|
p04043
|
Java
|
public class Main {
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int[] ret = new int[2];
for(int i = 0; i < 3; i++) {
int tmp = sc.nextInt();
if(tmp == 5)
ret[0]++;
if(tmp == 7)
ret[1]++;
}
System.out.println(ret[0] == 2 && ret[1] == 1 ? "YES" : "NO");
}
}
|
Main.java:2: error: cannot find symbol
private static Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:2: error: cannot find symbol
private static Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s145265620
|
p04043
|
C
|
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <algorithm>
#include <string>
#include <map>
#include <queue>
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&&c==5&&b==7)
{
cout<<"YES"<<endl;
}
else if
(a==7&&b==5&&c==5)
{
cout<<"YES"<<endl;
}
else
cout<<"NO"<<endl;
return 0;
}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s450782485
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int a[2];
int i;
int main(){
for(i=0;i<3;++i){
cin>>a[i];
}
sort(a,a+3);
if(a[0] == 5 && a[1] == 7 && a[2] = 7){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
}
|
a.cc: In function 'int main()':
a.cc:11:29: error: lvalue required as left operand of assignment
11 | if(a[0] == 5 && a[1] == 7 && a[2] = 7){
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
|
s440412826
|
p04043
|
Java
|
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Queue;
class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
int B = scan.nextInt();
int C = scan.nextInt();
boolean f;
if (A == 5 && B == 7 && C == 5) {
f = true;
}
if (A == 7 && B == 5 && C == 5) {
f = true;
}
if (A == 5 && B == 5 && C == 7) {
f = true;
}
if (f) {
System.out.println("YES");
}
else System.out.println("NO");
}
}
|
Main.java:25: error: variable f might not have been initialized
if (f) {
^
1 error
|
s889654130
|
p04043
|
Java
|
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Queue;
class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
int B = scan.nextInt();
int C = scan.nextInt();
if (A == 5 && B == 7 && C == 5) {
boolean f = true;
}
if (A == 7 && B == 5 && C == 5) {
f = true;
}
if (A == 5 && B == 5 && C == 7) {
f = true;
}
if (f) {
System.out.println("YES");
}
else System.out.println("NO");
}
}
|
Main.java:19: error: cannot find symbol
f = true;
^
symbol: variable f
location: class Main
Main.java:22: error: cannot find symbol
f = true;
^
symbol: variable f
location: class Main
Main.java:24: error: cannot find symbol
if (f) {
^
symbol: variable f
location: class Main
3 errors
|
s796609667
|
p04043
|
Java
|
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Queue;
class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
int B = scan.nextInt();
int C = scan.nextInt();
if (A == 5 && B == 7 && C == 5) {
boolean f = true;
}
if (A == 7 && B == 5 && C == 5) {
boolean f = true;
}
if (A == 5 && B == 5 && C == 7) {
boolean f = true;
}
if (f) {
System.out.println("YES");
}
else System.out.println("NO");
}
}
|
Main.java:24: error: cannot find symbol
if (f) {
^
symbol: variable f
location: class Main
1 error
|
s038607040
|
p04043
|
C++
|
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Queue;
class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
int B = scan.nextInt();
int C = scan.nextInt();
if (A == 5 && B == 7 && C == 5) {
boolean f = true;
}
if (A == 7 && B == 5 && C == 5) {
boolean f = true;
}
if (A == 5 && B == 5 && C == 7) {
boolean f = true;
}
if (f) {
System.out.println("YES");
}
else System.out.println("NO");
}
}
|
a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.util.Arrays;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
3 | import java.util.ArrayDeque;
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
4 | import java.util.Deque;
| ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
5 | import java.util.Collection;
| ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
6 | import java.util.LinkedList;
| ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
7 | import java.util.Queue;
| ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:10:17: error: expected ':' before 'static'
10 | public static void main(String[] args) {
| ^~~~~~~
| :
a.cc:10:35: error: 'String' has not been declared
10 | public static void main(String[] args) {
| ^~~~~~
a.cc:10:44: error: expected ',' or '...' before 'args'
10 | public static void main(String[] args) {
| ^~~~
a.cc:29:2: error: expected ';' after class definition
29 | }
| ^
| ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:11:19: error: 'Scanner' was not declared in this scope
11 | Scanner scan = new Scanner(System.in);
| ^~~~~~~
a.cc:12:27: error: 'scan' was not declared in this scope
12 | int A = scan.nextInt();
| ^~~~
a.cc:16:27: error: 'boolean' was not declared in this scope; did you mean 'bool'?
16 | boolean f = true;
| ^~~~~~~
| bool
a.cc:19:27: error: 'boolean' was not declared in this scope; did you mean 'bool'?
19 | boolean f = true;
| ^~~~~~~
| bool
a.cc:22:27: error: 'boolean' was not declared in this scope; did you mean 'bool'?
22 | boolean f = true;
| ^~~~~~~
| bool
a.cc:24:23: error: 'f' was not declared in this scope
24 | if (f) {
| ^
a.cc:25:27: error: 'System' was not declared in this scope
25 | System.out.println("YES");
| ^~~~~~
a.cc:27:24: error: 'System' was not declared in this scope
27 | else System.out.println("NO");
| ^~~~~~
|
s916968338
|
p04043
|
C++
|
str = gets
ary = []
ary.push(str[0])
ary << str[2]
ary << str[4]
a = ["5", "5", "7"]
b = ["5", "7", "5"]
c = ["7", "5", "5"]
if ary == a || ary == b || ary == c
puts "Yes"
else
puts "No"
end
|
a.cc:1:1: error: 'str' does not name a type
1 | str = gets
| ^~~
|
s754243648
|
p04043
|
C++
|
include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
#include<string>
#include<cstring>
using namespace std;
int main()
{
int a,b,d;
cin>>a>>b>>d;
if(1<=a,b,d&&a,b,d<=10)
{
if(a==5&&b==5&&d==7)cout<<"YES"<<endl;
else if(a==5&&b==7&&d==5)cout<<"YES"<<endl;
else if(a==7&&b==5&&d==5)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
else cout<<"NO"<<endl;
}
|
a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/iomanip:41,
from a.cc:2:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/14/bits/char_traits.h:50,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/iomanip:42:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
2171 | template<std::size_t _Len>
| ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared
144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type
146 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared
150 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared
153 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared
156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared
159 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared
187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| _
|
s475522369
|
p04043
|
C++
|
include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
#include<string>
#include<cstring>
using namespace std;
int main()
{
int a,b,d;
cin>>a>>b>>d;
if(1<=a,b,d&&a,b,d<=10)
{
if(a==5&&b==5&&d==7)cout<<"YES"<<endl;
if(a==5&&b==7&&d==5)cout<<"YES"<<endl;
if(a==7&&b==5&&d==5)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
else cout<<"NO"<<endl;
}
|
a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/iomanip:41,
from a.cc:2:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/14/bits/char_traits.h:50,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/iomanip:42:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
2171 | template<std::size_t _Len>
| ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared
144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type
146 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared
150 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared
153 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared
156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared
159 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared
187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| _
|
s664850307
|
p04043
|
C++
|
include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
#include<string>
#include<cstring>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(1<=a,b,c&&a,b,c<=10)
{
if(a==5&&b==5&&c==7)cout<<"YES"<<endl;
if(a==5&&b==7&&c==5)cout<<"YES"<<endl;
if(a==7&&b==5&&c==5)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
else cout<<"NO"<<endl;
}
|
a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/iomanip:41,
from a.cc:2:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/14/bits/char_traits.h:50,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/iomanip:42:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
2171 | template<std::size_t _Len>
| ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared
144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type
146 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared
150 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared
153 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared
156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared
159 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared
187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| _
|
s719970937
|
p04043
|
C++
|
include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
#include<string>
#include<cstring>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(1<=a,b,c&&a,b,c<=10)
{
if(a==5&&b==5&&c==7)cout<<"YES"<<endl;
if(a==5&&b==7&&c==5)cout<<"YES"<<endl;
if(a==7&&b==5&&c==7)cout<<"YES"<<endl;
if(a==7&&b==7&&c==5)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
else cout<<"NO"<<endl;
}
|
a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/iomanip:41,
from a.cc:2:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/14/bits/char_traits.h:50,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/iomanip:42:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
2171 | template<std::size_t _Len>
| ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared
144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type
146 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared
150 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared
153 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared
156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared
159 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared
187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| _
|
s213857249
|
p04043
|
C++
|
include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
#include<string>
#include<cstring>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(1<=a,b,c&&a,b,c<=10)
{
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==7)cout<<"YES"<<endl;
else if(a==7&&b==7&&c==5)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
else cout<<"NO"<<endl;
}
|
a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/iomanip:41,
from a.cc:2:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/14/bits/char_traits.h:50,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/iomanip:42:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
2171 | template<std::size_t _Len>
| ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared
144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type
146 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared
150 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared
153 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared
156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared
159 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared
187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| _
|
s217770769
|
p04043
|
C++
|
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>y;
if(a==5&&b==5&&y==7)
cout<<"YES"<<endl;
else if(a==5&&b==7&&y==5)
cout<<"YES"<<endl;
else if(a==7&&b==5&&y==5)
cout<<"YES"<<endl;
else cout<<"No"<<endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:20: error: 'y' was not declared in this scope
9 | cin>>a>>b>>y;
| ^
|
s917228735
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(){
int n5=0, n7=0;
for (int i=0; i<3 ; ++i){
cin >> d;
if(d==5) ++n5;
if(d==7) ++n7;
}
if(n5==2 and n7==1) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:12: error: 'd' was not declared in this scope
6 | cin >> d;
| ^
|
s310987236
|
p04043
|
C++
|
#include <iostream>
int main(){
int n5=0, n7=0;
for (int i=0; i<3 ; ++i){
cin >> d;
if(d==5) ++n5;
if(d==7) ++n7;
}
if(n5==2 and n7==1) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> d;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:6:12: error: 'd' was not declared in this scope
6 | cin >> d;
| ^
a.cc:10:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | if(n5==2 and n7==1) cout << "YES" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:10:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
10 | if(n5==2 and n7==1) cout << "YES" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:11:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | else cout << "NO" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:11:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | else cout << "NO" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s117715261
|
p04043
|
C++
|
#include<bits/stdc++.h>
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"<<endl;
else cout<<"NO"<<endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>a[0]>>a[1]>>a[2];
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:6:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
6 | sort(a,a+3);
| ^~~~
| std::sort
In file included from /usr/include/c++/14/algorithm:86,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
a.cc:7:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | if(a[0]==5&&a[1]==5&&a[2]==7) cout<<"YES"<<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:7:48: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | if(a[0]==5&&a[1]==5&&a[2]==7) cout<<"YES"<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:8:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | else cout<<"NO"<<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
8 | else cout<<"NO"<<endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s589977484
|
p04043
|
C++
|
#include <iostream>
int main(){
int a,b,c;
cin >> a >> b >> c;
bool flag = false;
if(a==5 && b==5 && c==7) flag = true;
if(a==5 && b==7 && c==5) flag = true;
if(a==7 && b==5 && c==5) flag = true;
if(flag) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:12:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | if(flag) cout << "YES" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
12 | if(flag) cout << "YES" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:13:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
13 | else cout << "NO" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:13:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
13 | else cout << "NO" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s541887901
|
p04043
|
C++
|
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
typedef long long lng;
#define UP(i,a,b) for(int i=(a); i<=(b); ++i)
#define DOWN(i,b,a) for(int i=(b); i>=(a); --i)
#define REP(i,n) UP(i,0,n-1)
#define ALL(a) (a).begin(), (a).end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end()) //NOTE: <a> must be sorted in advance
lng power(lng b, lng n) {lng sol=1; while(n>0) {if(n&1) {sol=sol*b;} n>>=1; b*= b;} return sol;} //calculate b^n
const int MOD = 1000000007; //10^9+7
/*********** variables ************/
/**********************************/
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int A,B,C;
cin >> A >> B >> C;
if(a*b*c==175) cout << "Yes" << endl;
else cout << "No" << endl;
}
|
a.cc: In function 'int main()':
a.cc:28:8: error: 'a' was not declared in this scope
28 | if(a*b*c==175) cout << "Yes" << endl;
| ^
a.cc:28:10: error: 'b' was not declared in this scope
28 | if(a*b*c==175) cout << "Yes" << endl;
| ^
a.cc:28:12: error: 'c' was not declared in this scope
28 | if(a*b*c==175) cout << "Yes" << endl;
| ^
|
s718150596
|
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" << endl;}
else{
cout << "NO" << endl;}
}
|
a.cc: In function 'int main()':
a.cc:7:49: error: lvalue required as left operand of assignment
7 | if(A==5 && B=5 && C==7 || A==5 && B=7 && C==5 || A==7 && B=5 && C==5){
| ~~~~~~~~~~^~~~~~~~~~~~
|
s425019309
|
p04043
|
C++
|
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> A(3);
for(int i = 0; i < 3; i++) cin >> A[i];
sort(A.begin(), A.end());
if (A[0] == 5 && A[1] == 5 && A[2] == 7) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
9 | sort(A.begin(), A.end());
| ^~~~
| short
|
s183946351
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main() {
vector<int> A(3);
for(int i = 0; i < 3; i++) cin >> A[i];
sort(A.begin(), A.end());
if (A[0] == 5 && A[1] == 5 && A[2] == 7) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
6 | vector<int> A(3);
| ^~~~~~
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>
2 |
a.cc:6:10: error: expected primary-expression before 'int'
6 | vector<int> A(3);
| ^~~
a.cc:7:37: error: 'A' was not declared in this scope
7 | for(int i = 0; i < 3; i++) cin >> A[i];
| ^
a.cc:8:8: error: 'A' was not declared in this scope
8 | sort(A.begin(), A.end());
| ^
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
8 | sort(A.begin(), A.end());
| ^~~~
| short
|
s560877604
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
int a[3],b[3],c;
b[0]=5;
b[1]=5;
b[2]=5;
for(int i=0;i<3;i++){
cin>>a[1]:
for(int j=0;j<3;j++){
if(a[i]==b[j]){
a[i]=0;
b[j]=0;
c++;
}
}
}
if(c==3) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
|
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ':' token
9 | cin>>a[1]:
| ^
| ;
a.cc:10:29: error: 'j' was not declared in this scope
10 | for(int j=0;j<3;j++){
| ^
|
s864723535
|
p04043
|
C++
|
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;
int main(){
int s[3];
for(int i=0;i<3;i++)cin>>s[i];
sort(s,s+3);
if(s[0]==5&&s[1]==5&&s[2]==7)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:29: error: 'cin' was not declared in this scope
7 | for(int i=0;i<3;i++)cin>>s[i];
| ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
3 | #include <cmath>
+++ |+#include <iostream>
4 | using namespace std;
a.cc:9:38: error: 'cout' was not declared in this scope
9 | if(s[0]==5&&s[1]==5&&s[2]==7)cout<<"YES"<<endl;
| ^~~~
a.cc:9:38: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:51: error: 'endl' was not declared in this scope
9 | if(s[0]==5&&s[1]==5&&s[2]==7)cout<<"YES"<<endl;
| ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
3 | #include <cmath>
+++ |+#include <ostream>
4 | using namespace std;
a.cc:10:14: error: 'cout' was not declared in this scope
10 | else cout<<"NO"<<endl;
| ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:26: error: 'endl' was not declared in this scope
10 | else cout<<"NO"<<endl;
| ^~~~
a.cc:10:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s119080577
|
p04043
|
C++
|
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a==5&&b==7&&c==5){cout<<"Yes"<<endl;}
else if(a==5&&b==5&&c==7){cout<<"Yes"<<endl;}
else if(a==7&&b==5&&c==5){cout<<"Yes"<<endl;}
else(cout<<"No"<<endl;}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:22: error: expected ')' before ';' token
9 | else(cout<<"No"<<endl;}
| ~ ^
| )
a.cc: At global scope:
a.cc:10:1: error: expected unqualified-id before 'return'
10 | return 0;
| ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
11 | }
| ^
|
s066424948
|
p04043
|
C
|
#include<iostream>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#include<string>
using namespace std;
int main(void)
{
int i;
vector<int>n(3);
for (i = 0; i < 3; i++)
{
cin >> n[i];
}
sort(n.begin(), n.end());
if (n[0] == 5 && n[1] == 5 && n[2] == 7)
{
cout << "YES\n";
}
else
{
cout << "NO\n";
}
return 0;
}
|
main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s327163013
|
p04043
|
Java
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class ARC058A {
int a, b, c;
public static void main(String args[]) {
new ARC058A().run();
}
void run() {
FastReader sc = new FastReader();
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
solve();
}
void solve() {
if (a == 7 && b == 5 && c == 5) {
System.out.println("YES");
} else if (a == 5 && b == 7 && c == 7) {
System.out.println("YES");
} else if (a == 5 && b == 5 && c == 7){
System.out.println("YES");
} else {
System.out.println("NO");
}
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements())
{
try
{
st = new StringTokenizer(br.readLine());
}
catch (IOException e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
long nextLong()
{
return Long.parseLong(next());
}
double nextDouble()
{
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try
{
str = br.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
}
}
|
Main.java:6: error: class ARC058A is public, should be declared in a file named ARC058A.java
public class ARC058A {
^
1 error
|
s961612313
|
p04043
|
C++
|
import System.IO
quick [] = []
quick (x:xs)=
let sma_eq = [a | a <- xs,a <= x]
lar = [a | a <- xs,a > x]
in quick sma_eq ++ [x] ++ quick lar
main = do
ss <- (map read . words) <$> getLine
if (sum ss == 17) && (minimum ss == 5) && (maximum ss ==7)
then putStrLn "YES"
else putStrLn "NO"
|
a.cc:1:1: error: 'import' does not name a type
1 | import System.IO
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
|
s538066584
|
p04043
|
C++
|
#include <bits/stdc++.h>
#include <iostream>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <complex>
#include <vector>
#include <list>
#include <set>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>
#if __cplusplus >= 201103
#include <numeric>
#endif
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
haiku = 0;
if(a==5 && b==5 && c==7){
haiku = 1;
}
else if(a==5 && b==7 && c==5){
haiku =1;
}
else if(a==7 && b==5 && c==5){
haiku=1;
}
if(haiku ==1) cout << "Yes" << endl;
else if(haiku==0) cout << "No" << endl;
}
|
a.cc: In function 'int main()':
a.cc:24:5: error: 'haiku' was not declared in this scope
24 | haiku = 0;
| ^~~~~
|
s905316980
|
p04043
|
C++
|
#include<bits/stdc++.h>
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"<<endl;
else{
cout<<"NO"<<endl;
}
}
|
a.cc: In function 'int main()':
a.cc:9:9: error: expected '}' before 'else'
9 | else{
| ^~~~
a.cc:7:38: note: to match this '{'
7 | if(a[0]==5&&a[1]==5&&a[2]==7){
| ^
|
s497407556
|
p04043
|
C++
|
p = list(map(int, input().split()))
if sorted(p) == [5,5,7]:
print("YES")
else:
print("NO")
|
a.cc:1:1: error: 'p' does not name a type
1 | p = list(map(int, input().split()))
| ^
|
s483491060
|
p04043
|
C++
|
#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
using namespace std;
int main(){
int a,b,c;
cin << a << b << c;
if(a+b+c == 17) cout >> "YES" >> endl;
else cout >> "NO" >> endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:9: 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<char>}
a.cc:6:9: note: candidate: 'operator<<(int, int)' (built-in)
6 | cin << a << b << c;
| ~~~~^~~~
a.cc:6:9: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:5: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << a << b << c;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c;
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c;
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c;
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c;
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b << c;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b << c;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b << c;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Trai
|
s498095811
|
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")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
else cout << "NO" <<endl;
}
|
a.cc: In function 'int main()':
a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
| ~^~~~~
a.cc:7:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
| ~^~~~~
a.cc:7:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
| ~^~~~~
a.cc:7:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
| ~^~~~~
a.cc:7:55: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
| ~^~~~~
a.cc:7:65: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
| ~^~~~~
a.cc:7:75: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
| ~^~~~~
a.cc:7:85: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
| ~^~~~~
a.cc:7:95: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
| ~^~~~~
|
s114071742
|
p04043
|
C++
|
a = sorted(map(int, input().split()))
if a == [5, 5, 7]:
|
a.cc:1:1: error: 'a' does not name a type
1 | a = sorted(map(int, input().split()))
| ^
|
s858307084
|
p04043
|
C++
|
count_5 st' = [ c | c <- st',c `elem` [ 5 ]]
count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]]
is_ok :: String -> Bool
-- Implement code below
is_ok s = ( 2 == length ( count_5 s ) ) && ( 1 == length ( count_7 s ) )
-- This is related to IO , you don ’ t have to completed it XD
main = do
s <- getLine
putStrLn $ if is_ok s then " Yes " else " No "
|
a.cc:1:11: warning: multi-character literal with 16 characters exceeds 'int' size of 4 bytes
1 | count_5 st' = [ c | c <- st',c `elem` [ 5 ]]
| ^~~~~~~~~~~~~~~~~~
a.cc:1:32: error: stray '`' in program
1 | count_5 st' = [ c | c <- st',c `elem` [ 5 ]]
| ^
a.cc:1:37: error: stray '`' in program
1 | count_5 st' = [ c | c <- st',c `elem` [ 5 ]]
| ^
a.cc:2:11: error: empty character constant
2 | count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]]
| ^~
a.cc:2:29: error: empty character constant
2 | count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]]
| ^~
a.cc:2:34: error: stray '`' in program
2 | count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]]
| ^
a.cc:2:39: error: stray '`' in program
2 | count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]]
| ^
a.cc:6:36: error: extended character ’ is not valid in an identifier
6 | -- This is related to IO , you don ’ t have to completed it XD
| ^
a.cc:1:1: error: 'count_5' does not name a type
1 | count_5 st' = [ c | c <- st',c `elem` [ 5 ]]
| ^~~~~~~
|
s725442730
|
p04043
|
C++
|
#include<iostream>
#include<vector>
using namespace std;
int main(){
int N,L;
cin >> N >> L;
vector<string> v;
string ret;
string s;
for(int i = 0;i < N;i++){
cin >> s;
v.push_back(s);
}
sort(v.begin(),v.end());
for(vector<string>::iterator it = v.begin() ;it != v.end();it++){
ret += *it;
}
cout << ret << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:23:5: error: 'sort' was not declared in this scope; did you mean 'short'?
23 | sort(v.begin(),v.end());
| ^~~~
| short
|
s394521382
|
p04043
|
C++
|
//問題URL
//
//解き方メモ
//
#include<iostream>
using namespace std;
int main(){
int abc[3];
int five_cnt=0;
int seven_cnt=0;
cin >> abc[0] >> abc[1] >> abc[2];
for(int i=0;i<3;i++){
if(a[i] == 5){
five_cnt++;
} else if(a[i] == 7){
seven_cnt++;
}
}
if(five_cnt == 2 && seven_cnt == 1){
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:18:8: error: 'a' was not declared in this scope
18 | if(a[i] == 5){
| ^
|
s819541838
|
p04043
|
Java
|
public class Main{
public static void main(String [] args){
int A = 5;
int B = 7;
int C = 5;
|
Main.java:5: error: reached end of file while parsing
int C = 5;
^
1 error
|
s766112429
|
p04043
|
C++
|
#include <iostream>
int main() {
int A, B, C;
std::cin >> A >> B >> C;
int N = count (A, B, 5);
int n = count (C, 5);
int M = count (A, B, 7);
int m = count (C, 7);
if (N + n == 2 && M + m == 1) {
std::cout << "Yes" <<std::endl;
} else {
std::cout << "No" <<std::endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:5:17: error: 'count' was not declared in this scope
5 | int N = count (A, B, 5);
| ^~~~~
|
s104852924
|
p04043
|
C++
|
#include <iostream>
int main() {
int A, B, C;
std::cin >> A >> B >> C;
int N = std::count (A, B, 5);
int n = std::count (C, 5);
int M = std::count (A, B, 7);
int m = std::count (C, 7);
if (N + n == 2 && M + m == 1) {
std::cout << "Yes" <<std::endl;
} else {
std::cout << "No" <<std::endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:5:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
5 | int N = std::count (A, B, 5);
| ^~~~~
| cout
a.cc:6:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
6 | int n = std::count (C, 5);
| ^~~~~
| cout
a.cc:7:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
7 | int M = std::count (A, B, 7);
| ^~~~~
| cout
a.cc:8:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
8 | int m = std::count (C, 7);
| ^~~~~
| cout
|
s265256518
|
p04043
|
C++
|
#include <iostream>
int main() {
int A, B, C;
std::cin >> A >> B >> C;
int N = std::count (A, B, C, 1);
int M = std::count (A, B, C, 7);
if (N == 2 && M == 1) {
std::cout << "Yes" <<std::endl;
} else {
std::cout << "No" <<std::endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:5:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
5 | int N = std::count (A, B, C, 1);
| ^~~~~
| cout
a.cc:6:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
6 | int M = std::count (A, B, C, 7);
| ^~~~~
| cout
|
s117291782
|
p04043
|
C++
|
#include <iostream>
int main() {
int A, B, C;
std::cin >> A >> B >> C;
if (std::count (A, B, C, 1) == 2 && std::count (A, B, C, 7) == 1) {
std::cout << "Yes" <<std::endl;
} else {
std::cout << "No" <<std::endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:5:18: error: 'count' is not a member of 'std'; did you mean 'cout'?
5 | if (std::count (A, B, C, 1) == 2 && std::count (A, B, C, 7) == 1) {
| ^~~~~
| cout
a.cc:5:50: error: 'count' is not a member of 'std'; did you mean 'cout'?
5 | if (std::count (A, B, C, 1) == 2 && std::count (A, B, C, 7) == 1) {
| ^~~~~
| cout
|
s660336673
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
//#define MD 100010
int main(){
vector<int> v(3);
int cnt_go=0,cnt_na=0;
for(int i=0;i<3;i++){
cin>>v[i];
if(v[i]==5){
cnt_go+++;
}else if(v[i]==7){
cnt_na++;
}
}
if(cnt_go==2 && cnt_na==1){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:13:22: error: expected primary-expression before ';' token
13 | cnt_go+++;
| ^
|
s916872032
|
p04043
|
C++
|
#include "bits\stdc++.h"
#define REP(i,m,n) for(long long i=m;i<n;++i)
#define INF 10000000000000000
#define MOD 1000000007
#define ll long long
#define mp make_pair
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a+b+c==17&&(a==5||a==7)&&(b==5||b==7)&&(c==5||c==7)){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
return 0;
}
|
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include "bits\stdc++.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s933827766
|
p04043
|
C++
|
#inlcude <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a+b+c==17&&a*b*c==245){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl;
}
}
|
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <bits/stdc++.h>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
5 | 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 | #inlcude <bits/stdc++.h>
a.cc:7:5: error: 'cout' was not declared in this scope
7 | cout<<"Yes"<<endl;
| ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: 'endl' was not declared in this scope
7 | cout<<"Yes"<<endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | #inlcude <bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout<<"No"<<endl;
| ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:17: error: 'endl' was not declared in this scope
10 | cout<<"No"<<endl;
| ^~~~
a.cc:10:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s817298829
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
if ((a+b+c) == 17 )
if ((a==b&&c==7)||(a==c&&b==7)||(c==b&&a==7))
cout << "NO" << endl; return 0;
cout << "YES" << endl; return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:15: error: no match for 'operator==' (operand types are 'std::__cxx11::basic_string<char>' and 'int')
6 | if ((a+b+c) == 17 )
| ~~~~~~~ ^~ ~~
| | |
| | int
| std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::fpos<_StateT>'
6 | if ((a+b+c) == 17 )
| ^~
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::allocator<_CharT>'
6 | if ((a+b+c) == 17 )
| ^~
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
6 | if ((a+b+c) == 17 )
| ^~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
6 | if ((a+b+c) == 17 )
| ^~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::move_iterator<_IteratorL>'
6 | if ((a+b+c) == 17 )
| ^~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::move_iterator<_IteratorL>'
6 | if ((a+b+c) == 17 )
| ^~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::pair<_T1, _T2>'
6 | if ((a+b+c) == 17 )
| ^~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | if ((a+b+c) == 17 )
| ^~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | if ((a+b+c) == 17 )
| ^~
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
6 | if ((a+b+c) == 17 )
| ^~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
6 | if ((a+b+c) == 17 )
| ^~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: mismatched types 'const _CharT*' and 'int'
6 | if ((a+b+c) == 17 )
| ^~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
6 | if ((a+b+c) == 17 )
| ^~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::tuple<_UTypes ...>'
6 | if ((a+b+c) == 17 )
| ^~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)'
234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
| ^~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: template argument deduction/substitution failed:
a.cc:6:18: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>'
6 | if ((a+b+c) == 17 )
| ^~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/c++allocator.h:33,
from /usr/include/c++/14/bits/allocator.h:46:
/usr/include/c++/14/bits/new_allocator.h:215:9: note: candidate: 'template<class _Up> bool std::operator==(const __new_allocator<char>&, const __new_allocator<_Tp>&)'
215 | operator==(const __new_allocator&, const __new_allocator<_Up>&)
| ^~~~~~~~
/usr/include/c++/14/bits/new_allocator.h:215:9: note: template argument deduction/substitution failed:
a.cc:6:18: note:
|
s733374135
|
p04043
|
C++
|
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a==b==5,c==7){
printf("YES\n");
}
else if(a==c==5,b==7){
printf("YES\n");
}
else if(b==c==5,a==7){
printf(YES\n);
}
else{
printf("NO\n");
}
return 0;
}
|
a.cc:13:15: error: stray '\' in program
13 | printf(YES\n);
| ^
a.cc: In function 'int main()':
a.cc:13:12: error: 'YES' was not declared in this scope
13 | printf(YES\n);
| ^~~
|
s857863923
|
p04043
|
C++
|
package main
import (
"bufio"
"fmt"
"os"
"sort"
"strconv"
"strings"
)
var sc = bufio.NewScanner(os.Stdin)
func nextLine() string {
sc.Scan()
return sc.Text()
}
func main() {
abc := strings.Split(nextLine(), " ")
var slc []int
for _, s := range abc {
tmp, _ := strconv.Atoi(s)
slc = append(slc, tmp)
}
sort.Slice(slc, func(i, j int) bool { return slc[i] < slc[j] })
if slc[0] == 5 && slc[1] == 5 && slc[2] == 7 {
fmt.Println("YES")
} else {
fmt.Println("NO")
}
}
|
a.cc:1:1: error: 'package' does not name a type
1 | package main
| ^~~~~~~
a.cc:19:1: error: 'func' does not name a type
19 | func main() {
| ^~~~
|
s368076446
|
p04043
|
C++
|
#include <iostream>
#include <string>
#include <string.h>
#include <map>
#include <set>
#include <vector>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <queue>
#include <cmath>
#include <cstdio>
using namespace std;
int main(){
int c=0,b=0;
int a[2];
for(int i=0;i<=2;i++)
cin>>a[i];;
for(int i=0;i<n;i++){
if(a[i]==5)
b++;
if(a[i]==7)
c++;}
if(b==2&&c==1)
cout<<"YES";
else
cout<<"NO";
system("pause");
return 0;
}
|
a.cc: In function 'int main()':
a.cc:19:15: error: 'n' was not declared in this scope
19 | for(int i=0;i<n;i++){
| ^
|
s948596777
|
p04043
|
Java
|
import java.util.Scanner;
public class Main{
public static void main(String[] args) throws IOException{
int count_5=0,count_7=0;
Scanner scan =new Scanner(System.in);
for(int i=0;i<3;i++)
{
int num=scan.nextInt();
if(num==5) count_5++;
if(num==7) count_7++;
}
if(count_5==2 && count_7==1) System.out.println("YES");
else System.out.println("NO");
}
}
|
Main.java:4: error: cannot find symbol
public static void main(String[] args) throws IOException{
^
symbol: class IOException
location: class Main
1 error
|
s905326925
|
p04043
|
Java
|
import java.util.Scanner;
public class main{
public static void main(String[] args) throws IOException{
int count_5=0,count_7=0;
Scanner scan =new Scanner(System.in);
for(int i=0;i<3;i++)
{
int num=scan.nextInt();
if(num==5) count_5++;
if(num==7) count_7++;
}
if(count_5==2 && count_7==1) System.out.println("YES");
else System.out.println("NO");
}
}
|
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main{
^
Main.java:4: error: cannot find symbol
public static void main(String[] args) throws IOException{
^
symbol: class IOException
location: class main
2 errors
|
s441042147
|
p04043
|
Java
|
import java.util.Scanner;
public class Main{
public static void main(String[] args) throws IOException{
int count_5=0,count_7=0;
Scanner scan =new Scanner(System.in);
for(int i=0;i<3;i++)
{
int num=scan.nextInt();
if(num==5) count_5++;
if(num==7) count_7++;
}
if(count_5==2 && count_7==1) System.out.println("YES");
else System.out.println("NO");
}
}
|
Main.java:4: error: cannot find symbol
public static void main(String[] args) throws IOException{
^
symbol: class IOException
location: class Main
1 error
|
s163581058
|
p04043
|
Java
|
import java.util.Scanner;
public class Iroha{
public static void main(String[] args) throws IOException{
int count_5=0,count_7=0;
Scanner scan =new Scanner(System.in);
for(int i=0;i<3;i++)
{
int num=scan.nextInt();
if(num==5) count_5++;
if(num==7) count_7++;
}
if(count_5==2 && count_7==1) System.out.println("YES");
else System.out.println("NO");
}
}
|
Main.java:3: error: class Iroha is public, should be declared in a file named Iroha.java
public class Iroha{
^
Main.java:4: error: cannot find symbol
public static void main(String[] args) throws IOException{
^
symbol: class IOException
location: class Iroha
2 errors
|
s751554471
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(){
//数値入力
int a,b,c;
cin>>a>>b>>c;
//判定yes
if(a==7&& b==5&& c==5)
cout<<"YES"<<endl;
else if(a==5&& b==7&& c==5)
cout<<"YES"<<endl;
else if(a==5&& b==5&& c==7)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0
}
|
a.cc: In function 'int main()':
a.cc:18:11: error: expected ';' before '}' token
18 | return 0
| ^
| ;
19 | }
| ~
|
s127262194
|
p04043
|
Java
|
import java.io.*;
import java.util.*;
class main
{
public static void main (String args[])
{
Scanner sc=new Scanner(System.in);
int a[]=new int[3];
a[0]=5;
a[1]=7;
a[2]=5;
int b[]=new int[3];
for(int i=0;i<3;i++)
{b[i]=sc.nextInt();}
int count=0;
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
if(b[i]==a[j])
{
a[j]=0;
count++;
break;
}
}
}
if(count=3)
{
System.out.println("YES");
}
else
System.out.println("NO");
}
}
|
Main.java:28: error: incompatible types: int cannot be converted to boolean
if(count=3)
^
1 error
|
s065465318
|
p04043
|
C++
|
#include<iostream>
#include<algorithm>
using namespace std;
int main() {
int ar[3] = { a,b,c };
cin >> a >> b >> c ;
sort(ar, ar + 3);
if ((ar[0] == ar[1]) && (ar[1] == 5) && (ar[2] == 7)) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:6:23: error: 'a' was not declared in this scope; did you mean 'ar'?
6 | int ar[3] = { a,b,c };
| ^
| ar
a.cc:6:25: error: 'b' was not declared in this scope
6 | int ar[3] = { a,b,c };
| ^
a.cc:6:27: error: 'c' was not declared in this scope
6 | int ar[3] = { a,b,c };
| ^
|
s294446450
|
p04043
|
C++
|
#include<iostream>
int main(){
int a, b, c;
std::cin >> a << b << c;
if (((a * b * c) == 175) and ((a + b + c) == 17))
std::cout << "YES";
else
std::cout << "NO";
return 0:
}
|
a.cc: In function 'int main()':
a.cc:6:19: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
6 | std::cin >> a << b << c;
| ~~~~~~~~~~~~~ ^~ ~
| | |
| | int
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
a.cc:6:19: note: candidate: 'operator<<(int, int)' (built-in)
6 | std::cin >> a << b << c;
| ~~~~~~~~~~~~~~^~~~
a.cc:6:19: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin >> a << b << c;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:14: note: cannot convert 'std::cin.std::basic_istream<char>::operator>>(a)' (type 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | std::cin >> a << b << c;
| ~~~~~~~~~^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin >> a << b << c;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:6:22: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin >> a << b << c;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with
|
s105313728
|
p04043
|
Java
|
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(in.readLine());
int fiveCount = 0;
int sevenCount = 0;
for (int i = 0; i < 3; i++) {
int x = Integer.parseInt(st.nextToken());
if (x == 5)
fiveCount++;
if (x == 7)
sevenCount++;
}
if (fiveCount == 2 && sevenCount == 1)
System.out.println("YES");
else
System.out.println("NO");
}
}
|
Main.java:2: error: cannot find symbol
public static void main(String[] args) throws IOException {
^
symbol: class IOException
location: class Main
Main.java:3: error: cannot find symbol
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:3: error: cannot find symbol
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:3: error: cannot find symbol
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class InputStreamReader
location: class Main
Main.java:4: error: cannot find symbol
StringTokenizer st = new StringTokenizer(in.readLine());
^
symbol: class StringTokenizer
location: class Main
Main.java:4: error: cannot find symbol
StringTokenizer st = new StringTokenizer(in.readLine());
^
symbol: class StringTokenizer
location: class Main
6 errors
|
s832960647
|
p04043
|
Java
|
import java.io.*;
import java.util.*;
public class ACBeg42 {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(in.readLine());
int fiveCount = 0;
int sevenCount = 0;
for (int i = 0; i < 3; i++) {
int x = Integer.parseInt(st.nextToken());
if (x == 5)
fiveCount++;
if (x == 7)
sevenCount++;
}
if (fiveCount == 2 && sevenCount == 1)
System.out.println("YES");
else
System.out.println("NO");
}
}
|
Main.java:4: error: class ACBeg42 is public, should be declared in a file named ACBeg42.java
public class ACBeg42 {
^
1 error
|
s336437252
|
p04043
|
Java
|
import java.io.*;
import java.util.*;
public class ACBeg42 {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(in.readLine());
int fiveCount = 0;
int sevenCount = 0;
for (int i = 0; i < N; i++) {
int x = Integer.parseInt(st.nextToken());
if (x == 5)
fiveCount++;
if (x == 7)
sevenCount++;
}
if (fiveCount == 2 && sevenCount == 1)
System.out.println("YES");
else
System.out.println("NO");
}
}
|
Main.java:4: error: class ACBeg42 is public, should be declared in a file named ACBeg42.java
public class ACBeg42 {
^
Main.java:11: error: cannot find symbol
for (int i = 0; i < N; i++) {
^
symbol: variable N
location: class ACBeg42
2 errors
|
s707884035
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a==5&&b==5&&c==7)
printf("YES\n");
else if(a==5&&b==7&&c==5)
printf("NO\n");
else if(a==7&&b=5&&c==5)
printf("YES\n");
else
printf("NO\n");
return 0;
}
|
a.cc: In function 'int main()':
a.cc:15:17: error: lvalue required as left operand of assignment
15 | else if(a==7&&b=5&&c==5)
| ~~~~^~~
|
s773268355
|
p04043
|
C++
|
#include<iostraeam>
#include<string>
#include<cstring>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a==7&&b==5&&c==5){cout<<"YES";return 0;}
if(a==5&&b==7&&c==5){cout<<"YES";return 0;}
if(a==5&&b==5&&c==7){cout<<"YES";return 0;}
cout<<"NO";
return 0;
}
|
a.cc:1:9: fatal error: iostraeam: No such file or directory
1 | #include<iostraeam>
| ^~~~~~~~~~~
compilation terminated.
|
s905881594
|
p04043
|
C++
|
a,b,c=gets.split(" ").map(&:to_i)
count5=0
count7=0
count5 +=1 if a == 5
count7 +=1 if a == 7
count5 +=1 if b == 5
count7 +=1 if b == 7
count5 +=1 if c == 5
count7 +=1 if c == 7
print count5 == 2 && count7==1 ? "YES\n" : "NO\n"
|
a.cc:1:1: error: 'a' does not name a type
1 | a,b,c=gets.split(" ").map(&:to_i)
| ^
|
s854801518
|
p04043
|
C++
|
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a==5&&c==5){
printf("Yes");
}else if(b==5&&c==5){
printf("Yes");
}else if(a==5&&b==5){
printf("Yes");
}else{
printf("No");
}
return0;
}
|
a.cc: In function 'int main()':
a.cc:15:9: error: 'return0' was not declared in this scope
15 | return0;
| ^~~~~~~
|
s829910579
|
p04043
|
C++
|
#include<iostream>
#include<cstdio>
#include<string>
#include<algorithm>
#include<queue>
#include<cstring>
#include<utility>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<bitset>
#include<deque>
#include<cctype>
using namespace std;
int main()
{
int five=0;
int seven=0;
int a,b,c;
cin>>a>>b>>c;
if(a==5) five++;
else if(a==7) seven++;
if(b==5) five++;
else if(b==7) seven++;
if(c==5) five++;;
else if(c==7) seven++;
if(five==2&&seven==1) cout<<"Yes";
else cout<<"No";
return 0;
}
|
a.cc: In function 'int main()':
a.cc:29:9: error: 'else' without a previous 'if'
29 | else if(c==7) seven++;
| ^~~~
|
s454020404
|
p04043
|
C++
|
#include <iostream>
#include <string>
int main(){
int a,c,b;
std::cin >> a >> b >> c;
if(a==7 && b==5 && c==5)
std::cout << "YES" << std::endl;
else if(b==7 && a==5 && c=5)
std::cout << "YES" << std::endl;
else if(c==7 && b==5 && a==5)
std::cout << "YES" << std::endl;
else
std::cout << "NO" << std::endl;
}
|
a.cc: In function 'int main()':
a.cc:8:22: error: lvalue required as left operand of assignment
8 | else if(b==7 && a==5 && c=5)
| ~~~~~~~~~~~~~^~~~
|
s529288237
|
p04043
|
C++
|
#include <bits/stdc++.h>
//#include <math.h>
using namespace std;
#define INF 1.1e9
#define LINF 1.1e18
#define FOR(i,a,b) for (int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define BIT(x,n) bitset<n>(x)
#define PI 3.14159265358979323846
typedef long long ll;
typedef pair<int,int> P;
typedef pair<int,P> PP;
struct edge {
int to, cost;
edge(int t,int c):to(t),cost(c) {}
};
//-----------------------------------------------------------------------------
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int a[3];REP(i,3) cin>>a[i];
sort(a,a+3);
if(a[0]==a[1]&&a[0]=5&&a[2]==7) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:35:22: error: lvalue required as left operand of assignment
35 | if(a[0]==a[1]&&a[0]=5&&a[2]==7) cout<<"YES"<<endl;
| ~~~~~~~~~~^~~~~~
|
s720329408
|
p04043
|
Java
|
import java.util.Scanner;
public class Q042 {
public static void Main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
int[] count = new int[11];
count[scanner.nextInt()]++;
count[scanner.nextInt()]++;
count[scanner.nextInt()]++;
if (count[5] == 2 && count[7] == 1) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
}
|
Main.java:3: error: class Q042 is public, should be declared in a file named Q042.java
public class Q042 {
^
1 error
|
s258811950
|
p04043
|
C++
|
#include <iostream>
#include <array>
#include <algorithm>
void main() {
int a, b, c;
std::cin >> a >> b >> c;
std::array<int, 3> inputs{a, b, c};
auto found5 = std::count(inputs.begin(), inputs.end(), 5);
auto found7 = std::count(inputs.begin(), inputs.end(), 7);
std::cout << (found5 == 2 && found7 == 1) ? 'YES' : 'NO';
}
|
a.cc:13:47: warning: multi-character character constant [-Wmultichar]
13 | std::cout << (found5 == 2 && found7 == 1) ? 'YES' : 'NO';
| ^~~~~
a.cc:13:55: warning: multi-character character constant [-Wmultichar]
13 | std::cout << (found5 == 2 && found7 == 1) ? 'YES' : 'NO';
| ^~~~
a.cc:5:1: error: '::main' must return 'int'
5 | void main() {
| ^~~~
|
s894653679
|
p04043
|
C++
|
#include<iostream>
using namespace std;
int main(){
int n,l;
cin >> n >> l;
char s[n][l];
int t[n][l];
for(int i = 0;i < n;i++){
cin >> s[i];
for(int j = 0;j < l;j++){
if(s[i][j] == 'a'){
t[i][j] = 1;
}
if(s[i][j] == 'b'){
t[i][j] = 2;
}
if(s[i][j] == 'c'){
t[i][j] = 3;
}
if(s[i][j] == 'd'){
t[i][j] = 4;
}
if(s[i][j] == 'e'){
t[i][j] = 5;
}
if(s[i][j] == 'f'){
t[i][j] = 6;
}
if(s[i][j] == 'g'){
t[i][j] = 7;
}
if(s[i][j] == 'h'){
t[i][j] = 8;
}
if(s[i][j] == 'i'){
t[i][j] = 9;
}
if(s[i][j] == 'j'){
t[i][j] = 10;
}
if(s[i][j] == 'k'){
t[i][j] = 11;
}
if(s[i][j] == 'l'){
t[i][j] = 12;
}
if(s[i][j] == 'm'){
t[i][j] = 13;
}
if(s[i][j] == 'n'){
t[i][j] = 14;
}
if(s[i][j] == 'o'){
t[i][j] = 15;
}
if(s[i][j] == 'p'){
t[i][j] = 16;
}
if(s[i][j] == 'q'){
t[i][j] = 17;
}
if(s[i][j] == 'r'){
t[i][j] = 18;
}
if(s[i][j] == 's'){
t[i][j] = 19;
}
if(s[i][j] == 't'){
t[i][j] = 20;
}
if(s[i][j] == 'u'){
t[i][j] = 21;
}
if(s[i][j] == 'v'){
t[i][j] = 22;
}
if(s[i][j] == 'w'){
t[i][j] = 23;
}
if(s[i][j] == 'x'){
t[i][j] = 24;
}
if(s[i][j] == 'y'){
t[i][j] = 25;
}
if(s[i][j] == 'z'){
t[i][j] = 26;
}
}
}
for(int i = 0;i < l;i++){
for(int j = 1;j < n;j++){
if(i == 0 || t[j-1][i-1] == t[j][i-1] || (t[j][i-1] == t[j+1][i-1] && j < n-1)){
for(int k = 0;k < n;k++){
int x = 0;
if(t[x][i] < t[j][i]){
x = j;
}
for(int m = 0;m < l;m++){
char ss[l];
ss[m] = s[x][m];
s[x][m] = s[n-k-1][m];
s[n-k-1][m] = ss[m];
int tt;
t = t[x][m];
t[x][m] = t[n-k-1][m];
t[n-k-1][m] = t[x][m]
}
}
}
}
}
for(int i = 0;i < n;i++){
for(int j = 0;j < l;j++){
cout << s[i][j];
}
}
cout << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:107:27: error: incompatible types in assignment of 'int' to 'int [n][l]'
107 | t = t[x][m];
| ~~^~~~~~~~~
a.cc:109:46: error: expected ';' before '}' token
109 | t[n-k-1][m] = t[x][m]
| ^
| ;
110 | }
| ~
|
s698380080
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(void){
int a=0,b=0;
int c=0;
for(int i=0;i<3;i++){
cin>>c;
if(c==5){a+=1;}
if(c==7){b+=1;}
}
if(a==2&& b==1){cout << “Yes”<<endl;}
else{cout<<“No”<<endl;}
return 0;
}
|
a.cc:13:25: error: extended character “ is not valid in an identifier
13 | if(a==2&& b==1){cout << “Yes”<<endl;}
| ^
a.cc:13:25: error: extended character ” is not valid in an identifier
a.cc:14:12: error: extended character “ is not valid in an identifier
14 | else{cout<<“No”<<endl;}
| ^
a.cc:14:12: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:25: error: '\U0000201cYes\U0000201d' was not declared in this scope
13 | if(a==2&& b==1){cout << “Yes”<<endl;}
| ^~~~~
a.cc:14:12: error: '\U0000201cNo\U0000201d' was not declared in this scope
14 | else{cout<<“No”<<endl;}
| ^~~~
|
s651242503
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(void){
int a=0,b=0;
int c=0;
for(int i=0;i<3;i++){
cin>>c;
if(c==5){a+=1;}
if(c==7){b+=1;}
}
if(a==2&& b==1){cout << “Yes”<<endless;}
else{cout<<“No”<<endl;}
return 0;
}
|
a.cc:13:25: error: extended character “ is not valid in an identifier
13 | if(a==2&& b==1){cout << “Yes”<<endless;}
| ^
a.cc:13:25: error: extended character ” is not valid in an identifier
a.cc:14:12: error: extended character “ is not valid in an identifier
14 | else{cout<<“No”<<endl;}
| ^
a.cc:14:12: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:25: error: '\U0000201cYes\U0000201d' was not declared in this scope
13 | if(a==2&& b==1){cout << “Yes”<<endless;}
| ^~~~~
a.cc:13:32: error: 'endless' was not declared in this scope
13 | if(a==2&& b==1){cout << “Yes”<<endless;}
| ^~~~~~~
a.cc:14:12: error: '\U0000201cNo\U0000201d' was not declared in this scope
14 | else{cout<<“No”<<endl;}
| ^~~~
|
s568261848
|
p04043
|
C++
|
#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <functional>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <list>
#include <numeric>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i,n) for(int (i)=0;(i)<(ll)(n);++(i))
#define repd(i,n,d) for(ll (i)=0;(i)<(ll)(n);(i)+=(d))
#define all(v) (v).begin(), (v).end()
#define pb(x) push_back(x)
#define mp(x,y) make_pair((x),(y))
#define mset(m,v) memset((m),(v),sizeof(m))
#define chmin(X,Y) ((X)>(Y)?X=(Y),true:false)
#define chmax(X,Y) ((X)<(Y)?X=(Y),true:false)
#define fst first
#define snd second
#define UNIQUE(x) (x).erase(unique(all(x)),(x).end())
template<class T> ostream &operator<<(ostream &os, const vector<T> &v){int n=v.size();rep(i,n)os<<v[i]<<(i==n-1?"":" ");return os;}
int main(){
int a[3];
rep(i, 3) cin>>a[i];
sort(all(a));
if(a[0]==5&&a[1]==5&&a[2]==7) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:30:20: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
30 | #define all(v) (v).begin(), (v).end()
| ^~~~~
a.cc:44:14: note: in expansion of macro 'all'
44 | sort(all(a));
| ^~~
a.cc:30:33: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
30 | #define all(v) (v).begin(), (v).end()
| ^~~
a.cc:44:14: note: in expansion of macro 'all'
44 | sort(all(a));
| ^~~
|
s902503718
|
p04043
|
C++
|
#include<iostream>
#include<array>
const int poetry = 3;
int main() {
std::array<int, poetry> arry;
int five, seven;
for (int i = 0; i < poetry; i++) {
std::cin >> arry[i];
}
five=std::count(arry.begin(), arry.end(), 5);
seven = std::count(arry.begin(), arry.end(), 7);
if (2 == five && 1 == seven) {
std::cout << "YES" << std::endl;
}
else {
std::cout << "NO" << std::endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:14:19: error: 'count' is not a member of 'std'; did you mean 'cout'?
14 | five=std::count(arry.begin(), arry.end(), 5);
| ^~~~~
| cout
a.cc:15:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
15 | seven = std::count(arry.begin(), arry.end(), 7);
| ^~~~~
| cout
|
s128771987
|
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" << endl;
else cout << "NO" << endl;
}
|
a.cc: In function 'int main()':
a.cc:7:5: error: 'sort' was not declared in this scope; did you mean 'short'?
7 | sort(a,a+3);
| ^~~~
| short
|
s711790171
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a+b+c == 17 && a*b*c=175)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}
|
a.cc: In function 'int main()':
a.cc:7:16: error: lvalue required as left operand of assignment
7 | if(a+b+c == 17 && a*b*c=175)
| ~~~~~~~~~~~~^~~~~~~~
|
s197051890
|
p04043
|
C++
|
#include<bits/bits/stdc++.h>
using namespace std;
int main(){
int n;
scanf("%d");
vector<string> str(n); //declaring an array of string
for(int i=0; i<n; i++) cin>>str[i];//taking n string inputs
sort(str, str+n);//sorting n strings lexicographically and "sort()" is a built in function of C++
for(int i=0; i<n; i++) cout<<str[i];//printing the sorted strings
return 0;
}
|
a.cc:1:9: fatal error: bits/bits/stdc++.h: No such file or directory
1 | #include<bits/bits/stdc++.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.