Click here to Skip to main content
15,886,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What are the best mocking frameworks available on Linux? Pin
Hila Berger13-May-18 0:49
Hila Berger13-May-18 0:49 
GeneralRe: What are the best mocking frameworks available on Linux? Pin
IlanGreen13-May-18 1:15
IlanGreen13-May-18 1:15 
GeneralRe: What are the best mocking frameworks available on Linux? Pin
Hila Berger14-May-18 20:38
Hila Berger14-May-18 20:38 
QuestionInvalid operands to binary expression Pin
Member 1380291228-Apr-18 7:03
Member 1380291228-Apr-18 7:03 
AnswerRe: Invalid operands to binary expression Pin
Richard MacCutchan28-Apr-18 22:18
mveRichard MacCutchan28-Apr-18 22:18 
GeneralRe: Invalid operands to binary expression Pin
Member 1380291229-Apr-18 10:21
Member 1380291229-Apr-18 10:21 
GeneralRe: Invalid operands to binary expression Pin
Richard MacCutchan29-Apr-18 21:02
mveRichard MacCutchan29-Apr-18 21:02 
GeneralRe: Invalid operands to binary expression Pin
Member 1486266714-Jun-20 2:38
Member 1486266714-Jun-20 2:38 
fatal error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'void')

this is the error i am getting.What should i do?

#include <iostream>
void Find(int arr[], int n, int sum) 
{ 
	unordered_set<int> s; 
    int temp;
    for (int i = 0; i < n; i++) 
    { 
     temp = sum - arr[i]; 
     if (s.find(temp) != s.end()) 
            cout<< arr[i]<<"+"<< temp<<" "; 
      s.insert(arr[i]);       
     } 
}
    int main()
{ 
	int arr[] = {1,2,3,4,5,6,6,5,56,7,11,13} ; 
	int n = sizeof(arr)/sizeof(arr[0]); 
	int sum = 12; 
	cout<<Find(arr,n,sum); 
    return 0;
} 

GeneralRe: Invalid operands to binary expression Pin
Richard MacCutchan14-Jun-20 4:30
mveRichard MacCutchan14-Jun-20 4:30 
GeneralRe: Invalid operands to binary expression Pin
Member 1486266714-Jun-20 20:50
Member 1486266714-Jun-20 20:50 
GeneralRe: Invalid operands to binary expression Pin
Richard MacCutchan14-Jun-20 22:17
mveRichard MacCutchan14-Jun-20 22:17 
QuestionData packet was cut when sending from Arduino Uno to Raspberry Pi 3 in C++ Pin
Ahmad ZULKIPLEE24-Apr-18 23:26
Ahmad ZULKIPLEE24-Apr-18 23:26 
AnswerRe: Data packet was cut when sending from Arduino Uno to Raspberry Pi 3 in C++ Pin
Jochen Arndt25-Apr-18 0:17
professionalJochen Arndt25-Apr-18 0:17 
GeneralRe: Data packet was cut when sending from Arduino Uno to Raspberry Pi 3 in C++ Pin
Ahmad ZULKIPLEE25-Apr-18 2:15
Ahmad ZULKIPLEE25-Apr-18 2:15 
GeneralRe: Data packet was cut when sending from Arduino Uno to Raspberry Pi 3 in C++ Pin
Jochen Arndt25-Apr-18 3:06
professionalJochen Arndt25-Apr-18 3:06 
AnswerRe: Data packet was cut when sending from Arduino Uno to Raspberry Pi 3 in C++ Pin
Richard MacCutchan25-Apr-18 0:19
mveRichard MacCutchan25-Apr-18 0:19 
AnswerRe: Data packet was cut when sending from Arduino Uno to Raspberry Pi 3 in C++ Pin
leon de boer25-Apr-18 15:05
leon de boer25-Apr-18 15:05 
QuestionFrom framebuffer to SPI via ioctl in Linux Pin
Vaclav_23-Apr-18 3:16
Vaclav_23-Apr-18 3:16 
AnswerRe: From framebuffer to SPI via ioctl in Linux Pin
Jochen Arndt23-Apr-18 3:59
professionalJochen Arndt23-Apr-18 3:59 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_23-Apr-18 4:17
Vaclav_23-Apr-18 4:17 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Jochen Arndt23-Apr-18 4:24
professionalJochen Arndt23-Apr-18 4:24 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_23-Apr-18 8:08
Vaclav_23-Apr-18 8:08 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Jochen Arndt23-Apr-18 10:28
professionalJochen Arndt23-Apr-18 10:28 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_23-Apr-18 13:39
Vaclav_23-Apr-18 13:39 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Jochen Arndt23-Apr-18 21:21
professionalJochen Arndt23-Apr-18 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.