/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include<iostream> include<cstring> include<stdlib.h> include<cmath> 
 ^
foo.cpp: In function 'int main()':
foo.cpp:13:2: error: 'cin' was not declared in this scope
  cin >> s;
  ^
foo.cpp:14:14: error: 'strlen' was not declared in this scope
  if (strlen(s) > 10)
              ^
foo.cpp:15:2: error: 'cout' was not declared in this scope
  cout << "0" << endl;
  ^
foo.cpp:15:17: error: 'endl' was not declared in this scope
  cout << "0" << endl;
                 ^
foo.cpp:18:12: error: 'atoi' was not declared in this scope
  i = atoi(s);
            ^
foo.cpp:19:11: error: 'abs' was not declared in this scope
  j = abs(i);
           ^
foo.cpp:22:2: error: 'cout' was not declared in this scope
  cout << "0" << endl;
  ^
foo.cpp:22:17: error: 'endl' was not declared in this scope
  cout << "0" << endl;
                 ^
foo.cpp:31:2: error: 'cout' was not declared in this scope
  cout << a << endl;
  ^
foo.cpp:31:15: error: 'endl' was not declared in this scope
  cout << a << endl;
               ^

信息

递交者
类型
递交
题目
P1185 Endless Traveling
语言
C++
递交时间
2015-11-03 07:35:22
评测时间
2015-11-03 07:35:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes