Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

printf and scanf for pair

$
0
0

why printf and scanf do not work when we use statements like this- pair < int, string> f[10001]; scanf("%s %d",f[i].second,&f[i].first);//where 0<=i<=10000 but cin and cout works :(


Viewing all articles
Browse latest Browse all 40121

Trending Articles