using namespace std int main (int argc, char argv) char quitreturn 0 and these are the errors that go with it.Thanks, I uninstalled, and deleted everything to do with, Dev C and then installed it allStill not working :/ Im getting the same error message. Hello, m begginer to c, ive a problem in program in codeblocksmy program is simple and iveand the errors are: cout was not declare in the scope cin was not declared in the scope error::main must return int in function int main().Dev-C or Code Blocks using Windows 7 Forum. The error messages appear truncated. Dev-C doesnt recompile my code although I made modifications. Where is the resource editor?[Warning] no newline at end of file. main must return int. [Linker error] undefined reference to mcount. Dev C.MAIN MUST RETURN INT error in C ? | Yahoo Answers Best Answer: it should be " int main()" instead of "void main(void)" and then put a "return 0" at the end of the function. dev c compiler error. disable warning in c.Make sure you put int in front of main (). I believe any C/C programs main() function is required by POSIX and the appropriate language standards to return an int (someone correct me if Im wrong). c cout.remove the- int main () and add after return 0 i.e return 0Dev!L. 2. semi colon missing there. rajshukla. 2. u need (semicolon). return 0 Luda glista.