/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <iostream> include <map> include <cstdio>
 ^
foo.cpp:3:1: error: 'map' does not name a type
 map<long long, long long> biao;
 ^
foo.cpp: In function 'int main()':
foo.cpp:7:16: error: 'scanf' was not declared in this scope
 scanf ("%d", &n);
                ^
foo.cpp:11:6: error: 'biao' was not declared in this scope
 if (!biao.count(temp)) biao[temp] = 0;
      ^
foo.cpp:12:1: error: 'biao' was not declared in this scope
 biao[temp]++;
 ^
foo.cpp:14:6: error: 'map' was not declared in this scope
 for (map<long long, long long>::iterator i=biao.begin(); i!=biao.end(); ++i) {
      ^
foo.cpp:14:10: error: expected primary-expression before 'long'
 for (map<long long, long long>::iterator i=biao.begin(); i!=biao.end(); ++i) {
          ^
foo.cpp:14:10: error: expected ';' before 'long'
foo.cpp:14:58: error: name lookup of 'i' changed for ISO 'for' scoping [-fpermissive]
 for (map<long long, long long>::iterator i=biao.begin(); i!=biao.end(); ++i) {
                                                          ^
foo.cpp:14:58: note: (if you use '-fpermissive' G++ will accept your code)
foo.cpp:14:61: error: 'biao' was not declared in this scope
 for (map<long long, long long>::iterator i=biao.begin(); i!=biao.end(); ++i) {
                                                             ^
foo.cpp:15:6: error: base operand of '->' is not a pointer
 if (i->second & 1) {
      ^
foo.cpp:16:1: error: 'cout' was not declared in this scope
 cout << i->first << endl;
 ^
foo.cpp:16:10: error: base operand of '->' is not a pointer
 cout << i->first << endl;
          ^
foo.cpp:16:21: error: 'endl' was not declared in this scope
 cout << i->first << endl;
                     ^

信息

递交者
类型
递交
题目
P1684 丢失的筷子
语言
C++
递交时间
2016-07-20 09:42:30
评测时间
2016-07-20 09:42:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes