fork download
  1. int main (int argc, char *argv[])
  2. {
  3. /*QVector<QString> vec;
  4.   vec << "xxx" << "yyy" << "zzz";
  5.   QVector<QString>::iterator it = vec.begin();*/
  6. qDebug() << "before loop";
  7. /*for (; it != vec.end(); ++it)
  8.   {
  9.   qDebug() << "Element:" << *it;
  10.   }*/
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main(int, char**)':
prog.cpp:6:12: error: 'qDebug' was not declared in this scope
     qDebug() << "before loop";
            ^
stdout
Standard output is empty