0_0_36643952_1588.cpp:3:9: error: 'pair' does not name a type
typedef pair<int,int> P;
^
0_0_36643952_1588.cpp: In function 'void f1()':
0_0_36643952_1588.cpp:12:5: error: 'map' was not declared in this scope
map<P,int> g;
^
0_0_36643952_1588.cpp:12:9: error: 'P' was not declared in this scope
map<P,int> g;
^
0_0_36643952_1588.cpp:12:11: error: expected primary-expression before 'int'
map<P,int> g;
^
0_0_36643952_1588.cpp:13:24: error: 'scanf' was not declared in this scope
scanf("%d%s",&n,s+1);
^
0_0_36643952_1588.cpp:15:5: error: 'g' was not declared in this scope
g[P(0,0)]=1;
^
0_0_36643952_1588.cpp:31:11: error: expected ';' before 'na'
P na=P(x,y);
^
0_0_36643952_1588.cpp:32:20: error: 'na' was not declared in this scope
if(g.count(na)){
^
0_0_36643952_1588.cpp:40:24: error: 'printf' was not declared in this scope
printf("%lld\n",ans);
^
0_0_36643952_1588.cpp: In function 'int main()':
0_0_36643952_1588.cpp:45:24: error: 'scanf' was not declared in this scope
int t;scanf("%d",&t);
^
|