Job 4569

Owner
Luca Roxana
Problem
Frame
Contest
MindCoding 2015 Test Round
Source
0.28KB
Result
Compile error

Compiler output

prog.cpp:5:11: error: 'int div' redeclared as different kind of symbol
In file included from /usr/include/c++/4.7/cstdlib:66:0,
                 from /usr/include/c++/4.7/ext/string_conversions.h:37,
                 from /usr/include/c++/4.7/bits/basic_string.h:2814,
                 from /usr/include/c++/4.7/string:54,
                 from /usr/include/c++/4.7/bits/locale_classes.h:42,
                 from /usr/include/c++/4.7/bits/ios_base.h:43,
                 from /usr/include/c++/4.7/ios:43,
                 from /usr/include/c++/4.7/ostream:40,
                 from /usr/include/c++/4.7/iostream:40,
                 from prog.cpp:1:
/usr/include/stdlib.h:785:14: error: previous declaration of 'div_t div(int, int)'
prog.cpp: In function 'int main()':
prog.cpp:11:17: error: overloaded function with no contextual type information
prog.cpp:15:17: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator%'

Questions?

Sponsors Gold