#include <stdio.h> #include <stdint.h> int main() { uint32_t vec[] = {123, 124, 125}; uint32_t *ptr = vec; for(auto it: ptr) fprintf(stdout, "%u\n", it); return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:7:16: error: ‘begin’ was not declared in this scope prog.cpp:7:16: error: ‘end’ was not declared in this scope prog.cpp:7:16: error: unable to deduce ‘auto’ from ‘<expression error>’
Standard output is empty