0_0_38501754_17638.cpp:1:1: error: 'include' does not name a type
include"iostream"
^
0_0_38501754_17638.cpp: In function 'int main()':
0_0_38501754_17638.cpp:8:2: error: 'cout' was not declared in this scope
cout.setf(ios::fixed);
^
0_0_38501754_17638.cpp:8:12: error: incomplete type 'std::ios {aka std::basic_ios<char>}' used in nested name specifier
cout.setf(ios::fixed);
^
0_0_38501754_17638.cpp:9:8: error: 'cin' was not declared in this scope
while(cin>>i)
^
0_0_38501754_17638.cpp:11:10: error: call of overloaded 'abs(float&)' is ambiguous
t=abs(i);
^
0_0_38501754_17638.cpp:11:10: note: candidates are:
In file included from 0_0_38501754_17638.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:205:15: note: int abs(int)
int __cdecl abs(int _X);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/string_conversions.h:41:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2850,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iomanip:40,
from 0_0_38501754_17638.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:174:3: note: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:166:3: note: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^
0_0_38501754_17638.cpp:12:40: error: 'endl' was not declared in this scope
cout<<""<<fixed<<setprecision(2)<<t<<endl;
^
|