does codechef support std c++0x?

I submitted a problem in codechef and got an compile error message. Here’s details

prog.cpp: In function 'int main()':
prog.cpp:73: error: ISO C++ forbids declaration of 'it' with no type
prog.cpp:73: error: cannot convert 'std::_Rb_tree_iterator<std::pair<const int, int> >' to 'int' in       initialization
prog.cpp:73: error: no match for 'operator!=' in 'it != mmp.std::map<_Key, _Tp, _Compare, _Alloc>::end  [with _Key = int, _Tp = int, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, int> >]()'
prog.cpp:75: error: conversion from 'int' to non-scalar type 'std::_Rb_tree_iterator<std::pair<const int, int> >' requested

But my code runs perfectly in my computer. I use codeblocks with stdc++0x enabled. I used data type ‘auto’ in my code. Is that the problem?

Using data type ‘auto’ is not a problem. Seems that you are using older version of gcc compiler.
For more info check

codechef compilers do support bits/stdc++

4 Likes

But after I removed auto and used a regular iterator(also fixed some minor bugs) my code become OKay!!!