#include <stdio.h>#include <time.h>int main(void) { printf("Clocks per Second: %E\n", CLOCKS_PER_SEC); // your code goes here return 0;}
Standard input is empty
prog.c: In function 'main': prog.c:4:9: error: format '%E' expects argument of type 'double', but argument 2 has type 'long int' [-Werror=format=] printf("Clocks per Second: %E\n", CLOCKS_PER_SEC); ^ cc1: all warnings being treated as errors
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!