Borderou de evaluare (job #1360348)

Utilizator danysilas23Silas Daniel danysilas23 Data 25 februarie 2015 13:54:05
Problema Maxd Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:38:26: warning: writing into constant object (argument 2) [-Wformat=] scanf("%ld","%ld", &a, &b); ^ user.cpp:38:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘const char*’ [-Wformat=] user.cpp:38:26: warning: too many arguments for format [-Wformat-extra-args] user.cpp:54:20: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int*’ [-Wformat=] printf("%ld", i+a); ^ user.cpp:56:31: warning: too many arguments for format [-Wformat-extra-args] printf("\n", "%ld", imax, "\n"); ^ user.cpp:35:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("maxd.in", "r", stdin); ^ user.cpp:36:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("maxd.out", "w", stdout); ^ user.cpp:38:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld","%ld", &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms152kbKilled by signal 11(SIGSEGV).00
20ms156kbKilled by signal 11(SIGSEGV).0
30ms160kbKilled by signal 11(SIGSEGV).0
40ms160kbKilled by signal 11(SIGSEGV).0
50ms156kbKilled by signal 11(SIGSEGV).00
60ms152kbKilled by signal 11(SIGSEGV).0
70ms156kbKilled by signal 11(SIGSEGV).0
80ms152kbKilled by signal 11(SIGSEGV).00
90ms156kbKilled by signal 11(SIGSEGV).0
100ms152kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?