/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:2: error: 'cin' was not declared in this scope
  cin>>a;
  ^~~
/in/foo.cc:8:2: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:75:0,
                 from /in/foo.cc:1:
/usr/include/c++/6/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^~~
/in/foo.cc:9:12: error: request for member 'length' in 'a', which is of non-class type 'char [800]'
  int len=a.length
            ^~~~~~
/in/foo.cc:11:8: error: 'left' was not declared in this scope
  while(left<=right)
        ^~~~
/in/foo.cc:11:8: note: suggested alternative:
In file included from /usr/include/c++/6/ios:42:0,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/ios_base.h:999:3: note:   'std::left'
   left(ios_base& __base)
   ^~~~
/in/foo.cc:11:14: error: 'right' was not declared in this scope
  while(left<=right)
              ^~~~~
/in/foo.cc:11:14: note: suggested alternative:
In file included from /usr/include/c++/6/ios:42:0,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/ios_base.h:1007:3: note:   'std::right'
   right(ios_base& __base)
   ^~~~~
/in/foo.cc:14:51: error: 'n' was not declared in this scope
   if(a[mid]*a[mid]*a[mid]+a[mid]*a[mid]+3*a[mid]<=n&&a[mid+1]*a[mid+1]*a[mid+1]+a[mid+1]*a[mid+1]+3*a[mid+1]>n)
                                                   ^
/in/foo.cc:24:2: error: 'cout' was not declared in this scope
  cout<<p;
  ^~~~
/in/foo.cc:24:2: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:75:0,
                 from /in/foo.cc:1:
/usr/include/c++/6/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~
/in/foo.cc:9:6: warning: unused variable 'len' [-Wunused-variable]
  int len=a.length
      ^~~
/in/foo.cc:26:1: error: expected '}' at end of input
 }
 ^

信息

递交者
类型
递交
题目
P1375 大整数
语言
C++
递交时间
2018-10-09 18:23:38
评测时间
2018-10-09 18:23:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes