Borderou de evaluare (job #1493374)

Utilizator theprdvtheprdv theprdv Data 29 septembrie 2015 10:03:42
Problema Sobo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d\n", &N, &L); ^ user.cpp:24:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:31:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for (int i = 0; i < L; ++i) scanf("%d", &c[i]), P[i] = i; ^ user.cpp:66:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", A[(1 << N) - 1]); ^ user.cpp:20:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("data.out", "w", stdout); ^ user.cpp:24:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &N, &L); ^ user.cpp:27:33: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(line, 1005, stdin); ^ user.cpp:31:61: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 0; i < L; ++i) scanf("%d", &c[i]), P[i] = i; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbKilled by signal 6(SIGABRT).0
20ms256kbKilled by signal 6(SIGABRT).0
30ms256kbKilled by signal 6(SIGABRT).0
40ms260kbKilled by signal 6(SIGABRT).0
50ms260kbKilled by signal 6(SIGABRT).0
60ms256kbKilled by signal 6(SIGABRT).0
70ms260kbKilled by signal 6(SIGABRT).0
80ms256kbKilled by signal 6(SIGABRT).0
90ms256kbKilled by signal 6(SIGABRT).0
100ms256kbKilled by signal 6(SIGABRT).0
Punctaj total0

Ceva nu functioneaza?