0_0_19934912_30994.cpp: In function 'void vote()':
0_0_19934912_30994.cpp:39:27: error: 'memset' was not declared in this scope
memset(cnt, 0, sizeof(cnt));
^
0_0_19934912_30994.cpp:44:49: error: 'max_element' was not declared in this scope
int max_cnt = *max_element(cnt + 1, cnt + 11 + 1), p = -1;
^
0_0_19934912_30994.cpp:45:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
FOR(i,1,11) if (cnt[i] == max_cnt) { if (p == -1) p = i; else return;}
^
0_0_19934912_30994.cpp:45:53: error: incompatible types in assignment of 'int' to 'Person [12]'
FOR(i,1,11) if (cnt[i] == max_cnt) { if (p == -1) p = i; else return;}
^
0_0_19934912_30994.cpp:46:7: error: invalid conversion from 'Person*' to 'int' [-fpermissive]
dead(p);
^
0_0_19934912_30994.cpp:30:6: note: initializing argument 1 of 'void dead(int)'
void dead(int id)
^
|