Borderou de evaluare (job #1503977)

Utilizator OFY4Ahmed Hamza Aydin OFY4 Data 17 octombrie 2015 10:14:25
Problema Modulo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] scanf("%d", A); ^ user.cpp:13:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] scanf("%d", B); ^ user.cpp:14:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d", C); ^ user.cpp:16:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<B;++i){ ^ user.cpp:23:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d", B); ^ user.cpp:5:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("modulo.in", "r", stdin); ^ user.cpp:6:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("modulo.out", "w", stdout); ^ user.cpp:12:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", A); ^ user.cpp:13:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", B); ^ user.cpp:14:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", C); ^ user.cpp:12:19: warning: ‘A’ is used uninitialized in this function [-Wuninitialized] scanf("%d", A); ^ user.cpp:13:19: warning: ‘B’ is used uninitialized in this function [-Wuninitialized] scanf("%d", B); ^ user.cpp:14:19: warning: ‘C’ is used uninitialized in this function [-Wuninitialized] scanf("%d", C); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms232kbKilled by signal 11(SIGSEGV).0
20ms236kbKilled by signal 11(SIGSEGV).0
30ms236kbKilled by signal 11(SIGSEGV).0
40ms236kbKilled by signal 11(SIGSEGV).0
50ms232kbKilled by signal 11(SIGSEGV).0
60ms232kbKilled by signal 11(SIGSEGV).0
70ms240kbKilled by signal 11(SIGSEGV).0
80ms236kbKilled by signal 11(SIGSEGV).0
90ms240kbKilled by signal 11(SIGSEGV).0
100ms240kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?