I was doing challenges on codeeval.com,and this code runs perfectly on devc++
but when I submitted this code on site they show me error in results
OUTPUT
..
any help? .
It says the first (command line) argument is a file path to a file that contains the test case numbers. You should use these numbers instead of reading a number from stdin using scanf like you do now. It is not clear how you should separate the output for each test case but a fair assumption is that they want you to use one line for each test case.