记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:2:5: error: 'string' was not declared in this scope
     string abs_address = "/";
     ^~~~~~
/in/foo.cc:3:9: error: expected ';' before 'command'
  string command, address;
         ^~~~~~~
/in/foo.cc:5:2: error: 'cin' was not declared in this scope
  cin >> n;
  ^~~
/in/foo.cc:7:10: error: 'command' was not declared in this scope
   cin >> command;
          ^~~~~~~
/in/foo.cc:9:4: error: 'cout' was not declared in this scope
    cout << abs_address << endl;
    ^~~~
/in/foo.cc:9:12: error: 'abs_address' was not declared in this scope
    cout << abs_address << endl;
            ^~~~~~~~~~~
/in/foo.cc:9:27: error: 'endl' was not declared in this scope
    cout << abs_address << endl;
                           ^~~~
/in/foo.cc:12:11: error: 'address' was not declared in this scope
    cin >> address;
           ^~~~~~~
/in/foo.cc:13:16: error: 'abs_address' was not declared in this scope
    adress_deal(abs_address, address);
                ^~~~~~~~~~~
/in/foo.cc:13:36: error: 'adress_deal' was not declared in this scope
    adress_deal(abs_address, address);
                                    ^

信息

递交者
类型
递交
题目
Cd and pwd commands
语言
C++
递交时间
2017-06-28 23:41:47
评测时间
2017-06-28 23:41:47
评测机
分数
0
总耗时
15ms
峰值内存
2.812 MiB