/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:20:2: error: 'cin' was not declared in this scope
  cin >> x1 >> x2 >> v1 >> v2 >> len;
  ^~~
/in/foo.cc:20:2: note: suggested alternative: 'sin'
  cin >> x1 >> x2 >> v1 >> v2 >> len;
  ^~~
  sin
/in/foo.cc:40:3: error: 'cout' was not declared in this scope
   cout << "Impossible" << endl;
   ^~~~
/in/foo.cc:40:3: note: suggested alternative: 'cosl'
   cout << "Impossible" << endl;
   ^~~~
   cosl
/in/foo.cc:40:27: error: 'endl' was not declared in this scope
   cout << "Impossible" << endl;
                           ^~~~
/in/foo.cc:40:27: note: suggested alternative: 'ynl'
   cout << "Impossible" << endl;
                           ^~~~
                           ynl
/in/foo.cc:46:4: error: 'cout' was not declared in this scope
    cout << (dx*k / d)%len << endl;
    ^~~~
/in/foo.cc:46:4: note: suggested alternative: 'cosl'
    cout << (dx*k / d)%len << endl;
    ^~~~
    cosl
/in/foo.cc:46:30: error: 'endl' was not declared in this scope
    cout << (dx*k / d)%len << endl;
                              ^~~~
/in/foo.cc:46:30: note: suggested alternative: 'ynl'
    cout << (dx*k / d)%len << endl;
                              ^~~~
                              ynl
/in/foo.cc:49:4: error: 'cout' was not declared in this scope
    cout << ((len + k)*dx / d)%len << endl;
    ^~~~
/in/foo.cc:49:4: note: suggested alternative: 'cosl'
    cout << ((len + k)*dx / d)%len << endl;
    ^~~~
    cosl
/in/foo.cc:49:38: error: 'endl' was not declared in this scope
    cout << ((len + k)*dx / d)%len << endl;
                                      ^~~~
/in/foo.cc:49:38: note: suggested alternative: 'ynl'
    cout << ((len + k)*dx / d)%len << endl;
                                      ^~~~
                                      ynl

信息

递交者
类型
递交
题目
P1009 清帝之惑之康熙
语言
C++
递交时间
2018-11-10 09:23:30
评测时间
2018-11-10 09:23:30
评测机
分数
0
总耗时
131ms
峰值内存
17.086 MiB