/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include "string" include "iostream" include "math.h"
 ^
foo.cpp:5:1: error: 'string' does not name a type
 string ToASCII(int Num) {
 ^
foo.cpp: In function 'int main()':
foo.cpp:22:1: error: 'string' was not declared in this scope
 string Num_A, Num_S;
 ^
foo.cpp:22:8: error: expected ';' before 'Num_A'
 string Num_A, Num_S;
        ^
foo.cpp:24:1: error: 'cin' was not declared in this scope
 cin >> Num_A;
 ^
foo.cpp:24:8: error: 'Num_A' was not declared in this scope
 cin >> Num_A;
        ^
foo.cpp:26:1: error: 'Num_S' was not declared in this scope
 Num_S += ToASCII(i);
 ^
foo.cpp:26:19: error: 'ToASCII' was not declared in this scope
 Num_S += ToASCII(i);
                   ^
foo.cpp:31:1: error: 'cout' was not declared in this scope
 cout << IndexOf + 1;
 ^

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C++
递交时间
2015-12-17 15:03:16
评测时间
2015-12-17 15:03:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes