Pagini recente » Borderou de evaluare (job #278893) | Borderou de evaluare (job #806715) | Borderou de evaluare (job #3243747) | Borderou de evaluare (job #2969821) | Borderou de evaluare (job #2377498)
Borderou de evaluare (job #2377498)
Raport evaluator
Compilare:
main.cpp:15:1: warning: 'typedef' was ignored in this declaration
typedef struct compareEdges {
^~~~~~~
main.cpp: In function 'void display(std::vector<node>&, int)':
main.cpp:45:32: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::vector<node>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n%d\n",sum,a.size());
^
main.cpp:46:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); i++)
~~^~~~~~~~~~
main.cpp: In function 'void solve(int, std::vector<node>)':
main.cpp:85:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < graph.size(); i++)
~~^~~~~~~~~~~~~~
main.cpp: In function 'void read(int&, int&, std::vector<node>&)':
main.cpp:25:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("apm.in", "r", stdin);
^
main.cpp:26:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("apm.out", "w", stdout);
^
main.cpp:28:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &vertices_number, &edges_number);
^
main.cpp:36:86: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &new_node.first_verted, &new_node.second_vertex, &new_node.value);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Corect | 10 |
2 | 2ms | 131kb | Corect | 10 |
3 | 3ms | 131kb | Corect | 10 |
4 | 3ms | 131kb | Corect | 10 |
5 | 3ms | 131kb | Corect | 10 |
6 | 309ms | 5099kb | Corect | 10 |
7 | 400ms | 8896kb | Time limit exceeded | 0 |
8 | 100ms | 2093kb | Corect | 10 |
9 | 92ms | 2355kb | Corect | 10 |
10 | 403ms | 7454kb | Time limit exceeded | 0 |
Punctaj total | 80 |