#include <iostream>#include <string>#include "opencv2\opencv.hpp" using namespace std;using namespace cv; void test(int num, int* arr){ for(int i=0;i<num;i++) { cout<<arr[i]; }} int main(void){ int D[5]={0,1,2,3,4}; test(5,D); return 0;}
Standard input is empty
prog.cpp:3:30: error: opencv2\opencv.hpp: No such file or directory prog.cpp:6: error: ‘cv’ is not a namespace-name prog.cpp:6: error: expected namespace-name before ‘;’ token
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!