Borderou de evaluare (job #1657827)

Utilizator Aquaryus0Alexandru Benchea Aquaryus0 Data 20 martie 2016 20:27:14
Problema Permutari 3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:14:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:18:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &a[i]); ^ user.cpp:24:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &b[i]); ^ user.cpp: In function ‘long long int algoritm()’: user.cpp:39:33: warning: for increment expression has no effect [-Wunused-value] for(long long int i=0; i<n; i) ^ user.cpp: In function ‘void read()’: user.cpp:14:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:18:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i]); ^ user.cpp:24:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &b[i]); ^ user.cpp: In function ‘int main()’: user.cpp:62: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:63: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
10ms448kbOK!10
20ms448kbOK!10
30ms452kbKilled by signal 11(SIGSEGV).0
40ms436kbKilled by signal 11(SIGSEGV).0
50ms432kbKilled by signal 11(SIGSEGV).0
60ms408kbKilled by signal 11(SIGSEGV).0
70ms416kbKilled by signal 11(SIGSEGV).0
80ms444kbKilled by signal 11(SIGSEGV).0
90ms404kbKilled by signal 11(SIGSEGV).0
104ms464kbWrong answer!0
Punctaj total20

Ceva nu functioneaza?