View Code of Problem 1

#include <iostream>

using namespace std;

int main(int argc, char* argv[], char** env){
  char** lines = env;
  while(*lines!=nullptr){
    cout << *lines <<endl;
  }
  return 0
}
/*
Main.cc: In function 'int main(int, char**, char**)':
Main.cc:11:1: error: expected ';' before '}' token
 }
 ^
*/

Double click to view unformatted code.


Back to problem 1