Pagini recente » Borderou de evaluare (job #1128285) | Borderou de evaluare (job #1420525) | Borderou de evaluare (job #3189813) | Borderou de evaluare (job #281005) | Borderou de evaluare (job #2615209)
Borderou de evaluare (job #2615209)
Raport evaluator
Compilare:
main.cpp: In function 'int toposort(std::vector<int>*, int, int*)':
main.cpp:19:12: warning: unused variable 'j' [-Wunused-variable]
int i, j, depth = 0, l = 0, length = 1, new_length = 0;
^
main.cpp:72:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:75:9: warning: unused variable 'i' [-Wunused-variable]
int i, j, n, m, x, y;
^
main.cpp:75:12: warning: unused variable 'j' [-Wunused-variable]
int i, j, n, m, x, y;
^
main.cpp:89:10: warning: unused variable 'ans' [-Wunused-variable]
int *ans = (int*)malloc(100 * sizeof(int));
^~~
main.cpp:79:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sortaret.in", "r", stdin);
^
main.cpp:80:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sortaret.out", "w", stdout);
^
main.cpp:82:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &m);
^
main.cpp:84:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 5ms | 1703kb | OK | 10 |
2 | 5ms | 1703kb | OK | 10 |
3 | 8ms | 1835kb | OK | 10 |
4 | 10ms | 1835kb | OK | 10 |
5 | 16ms | 2002kb | OK | 10 |
6 | 32ms | 2486kb | OK | 10 |
7 | 48ms | 2748kb | OK | 10 |
8 | 78ms | 3457kb | OK | 10 |
9 | 183ms | 4837kb | OK | 10 |
10 | 252ms | 12038kb | Time limit exceeded | 0 |
Punctaj total | 90 |