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;
^