#include <iostream> #include <string> using namespace std; int main() { short j; for(int i = 0; i < 20; ++i++){ j = i/2; count << "i:" << String(i) << "\tj:" << String(j) << endl; } return 0; }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:7:28: error: lvalue required as increment operand for(int i = 0; i < 20; ++i++){ ^ prog.cpp:9:3: error: 'count' was not declared in this scope count << "i:" << String(i) << "\tj:" << String(j) << endl; ^ prog.cpp:9:28: error: 'String' was not declared in this scope count << "i:" << String(i) << "\tj:" << String(j) << endl; ^
Standard output is empty