Quote:
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -Wall -pedantic
main.cpp: In function `void readtolldetails(int&, int&, std::string&, std::string&, std::string&, int&, int&)':
main.cpp:42: warning: statement has no effect
main.cpp:51: error: argument of type `std::basic_string<char, std::char_traits<char>, std::allocator<char> > (std::basic_string<char, std::char_traits<char>, std::allocator<char> >::)(unsigned int, unsigned int) const' does not match `char'
main.cpp:52: error: argument of type `std::basic_string<char, std::char_traits<char>, std::allocator<char> > (std::basic_string<char, std::char_traits<char>, std::allocator<char> >::)(unsigned int, unsigned int) const' does not match `char'
main.cpp:50: warning: unused variable 'position'
main.cpp:78:28: warning: multi-character character constant
main.cpp: In function `void calculatetoll(std::string&, int, float&, float&, float&, float&, float&, double&)':
main.cpp:78: warning: comparison is always false due to limited range of data type
main.cpp:83:31: warning: multi-character character constant
main.cpp:83: warning: comparison is always false due to limited range of data type
main.cpp:88:31: warning: multi-character character constant
main.cpp:88: warning: comparison is always false due to limited range of data type
main.cpp:94: error: `totalI' undeclared (first use this function)
main.cpp:94: error: (Each undeclared identifier is reported only once for each function it appears in.)
main.cpp: In function `int main()':
main.cpp:129: error: `station' undeclared (first use this function)
main.cpp:129: error: `totalA' undeclared (first use this function)
main.cpp:129: error: `totalB' undeclared (first use this function)
main.cpp:129: error: `totalC' undeclared (first use this function)
main.cpp:129: error: `totalD' undeclared (first use this function)
main.cpp:129: error: `calculateStation' undeclared (first use this function)
main.cpp:134: error: `printmainHeading' undeclared (first use this function)
main.cpp:135: error: `printcolumnHeading' undeclared (first use this function)
main.cpp:136: error: `date' undeclared (first use this function)
main.cpp:136: error: `inputString' undeclared (first use this function)
main.cpp:136: error: `position' undeclared (first use this function)
main.cpp:137: error: `i' undeclared (first use this function)
main.cpp:137: error: `a' undeclared (first use this function)
main.cpp:137: error: `b' undeclared (first use this function)
main.cpp:137: error: `c' undeclared (first use this function)
main.cpp:137: error: `d' undeclared (first use this function)
main.cpp:137: error: `calculateTotalStation' undeclared (first use this function)
main.cpp:138: error: `total' undeclared (first use this function)
main.cpp:119: warning: unused variable 'Total'
main.cpp:120: warning: unused variable 'contotal'
Functions and variables are still not declared. This chunk of code here is a tip of a very big iceberg, so declare stuff the right type and make sure that function signatures match.