Robotas

Taškai: 0

Compile: FAIL

robotas.cpp: In function ‘int main()’: robotas.cpp:51: error: call of overloaded ‘abs(int&)’ is ambiguous /usr/include/c++/4.4/cmath:94: note: candidates are: double std::abs(double) /usr/include/c++/4.4/cmath:98: note: float std::abs(float) /usr/include/c++/4.4/cmath:102: note: long double std::abs(long double) robotas.cpp:51: error: call of overloaded ‘abs(int&)’ is ambiguous /usr/include/c++/4.4/cmath:94: note: candidates are: double std::abs(double) /usr/include/c++/4.4/cmath:98: note: float std::abs(float) /usr/include/c++/4.4/cmath:102: note: long double std::abs(long double) robotas.cpp:54: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x

nr.resulttimemessage