/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <iostream> include<string>
 ^
foo.cpp:3:1: error: 'string' does not name a type
 string a, s;
 ^
foo.cpp: In function 'int main()':
foo.cpp:8:8: error: 'cin' was not declared in this scope
 while (cin >> a)
        ^
foo.cpp:8:15: error: 'a' was not declared in this scope
 while (cin >> a)
               ^
foo.cpp:20:13: error: expected ';' before numeric constant
 p[t] = p[t] 10 + (int)(a[k] - '0');
             ^
foo.cpp:37:14: error: expected ';' before 'x'
 x = y + p[k] x;
              ^
foo.cpp:51:1: error: 'cout' was not declared in this scope
 cout << i << endl;
 ^
foo.cpp:51:14: error: 'endl' was not declared in this scope
 cout << i << endl;
              ^
foo.cpp:53:1: error: 'cout' was not declared in this scope
 cout << i << '/' << j << endl;
 ^
foo.cpp:53:26: error: 'endl' was not declared in this scope
 cout << i << '/' << j << endl;
                          ^
foo.cpp:68:1: error: 'cout' was not declared in this scope
 cout << '[' << p[0] << ']'<<endl;
 ^
foo.cpp:68:29: error: 'endl' was not declared in this scope
 cout << '[' << p[0] << ']'<<endl;
                             ^
foo.cpp:84:1: error: 'cout' was not declared in this scope
 cout << '[';
 ^
foo.cpp:107:16: error: 'endl' was not declared in this scope
 cout << ']' << endl;
                ^

信息

递交者
类型
递交
题目
P1696 数与连分数
语言
C++
递交时间
2016-02-22 14:05:48
评测时间
2016-02-22 14:05:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes