fork download
  1. // test_ip_op.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <vector>
  7.  
  8. using namespace std;
  9.  
  10. int main()
  11. {
  12. vector<int> i{ 1,2,88,42,99 };
  13.  
  14. for (auto a = i.begin(); a!= i.end() ; a++)
  15. {
  16. if (*a == 42)
  17. break;
  18. cout << " no :" << *a << endl;
  19. }
  20. return 0;
  21. }
  22.  
  23.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:20: fatal error: stdafx.h: No such file or directory
 #include "stdafx.h"
                    ^
compilation terminated.
stdout
Standard output is empty