Borderou de evaluare (job #1280214)

Utilizator serban_ioan97Ciofu Serban serban_ioan97 Data 1 decembrie 2014 16:26:28
Problema Cifre4 Status done
Runda tema_grf Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:18:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &t); ^ user.cpp:21:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d", &n, &p); ^ user.cpp:21:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:33:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", a); ^ user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cifre4.in", "r", stdin); ^ user.cpp:16:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cifre4.out", "w", stdout); ^ user.cpp:18:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:21:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
188ms6756kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?