Borderou de evaluare (job #1657384)

Utilizator Aquaryus0Alexandru Benchea Aquaryus0 Data 20 martie 2016 14:05: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:60: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:61: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
10ms456kbOK!10
20ms456kbOK!10
30ms400kbKilled by signal 11(SIGSEGV).0
40ms404kbKilled by signal 11(SIGSEGV).0
50ms400kbKilled by signal 11(SIGSEGV).0
60ms400kbKilled by signal 11(SIGSEGV).0
70ms404kbKilled by signal 11(SIGSEGV).0
80ms400kbKilled by signal 11(SIGSEGV).0
90ms404kbKilled by signal 11(SIGSEGV).0
104ms472kbWrong answer!0
Punctaj total20

Ceva nu functioneaza?