Borderou de evaluare (job #2059917)

Utilizator B_RazvanBaboiu Razvan B_Razvan Data 7 noiembrie 2017 19:03:12
Problema Permutari 3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In member function ‘Big& Big::operator*(long long int&)’: user.cpp:37:13: warning: reference to local variable ‘P’ returned [-Wreturn-local-addr] Big P; ^ user.cpp: In member function ‘Big Big::printNumb()’: user.cpp:48:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In member function ‘Big& Big::operator+(Big)’: user.cpp:52:13: warning: reference to local variable ‘rez’ returned [-Wreturn-local-addr] Big rez = Big(); ^ user.cpp: In function ‘void read()’: user.cpp:75:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:77:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &m[i]); ^ user.cpp:79:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &p[i]); ^ user.cpp:75:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:77:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m[i]); ^ user.cpp:79:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &p[i]); ^ user.cpp: In function ‘int main()’: user.cpp:112:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perm3.in", "r", stdin); ^ user.cpp:113:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perm3.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms624kbWrong answer!0
20ms552kbOK!10
30ms496kbKilled by signal 11(SIGSEGV).0
40ms496kbKilled by signal 11(SIGSEGV).0
50ms500kbKilled by signal 11(SIGSEGV).0
60ms496kbKilled by signal 11(SIGSEGV).0
70ms496kbKilled by signal 11(SIGSEGV).0
80ms500kbKilled by signal 11(SIGSEGV).0
90ms488kbKilled by signal 11(SIGSEGV).0
100ms844kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?