Pagini recente » Borderou de evaluare (job #1105974) | Borderou de evaluare (job #1828303) | Borderou de evaluare (job #536054) | Borderou de evaluare (job #2220881) | Borderou de evaluare (job #2377522)
Borderou de evaluare (job #2377522)
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:94:15: 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 | 263ms | 3534kb | Corect | 10 |
7 | 403ms | 6152kb | Time limit exceeded | 0 |
8 | 85ms | 1507kb | Corect | 10 |
9 | 73ms | 1572kb | Corect | 10 |
10 | 400ms | 5107kb | Time limit exceeded | 0 |
Punctaj total | 80 |