Submission #244505

# Submission time Handle Problem Language Result Execution time Memory
244505 2020-07-04T07:51:35 Z SomeoneUnknown Pipes (CEOI15_pipes) C++14
0 / 100
2765 ms 65540 KB
#include <bits/stdc++.h>
using namespace std;

int main(){
    int v, e;
    scanf("%d %d", &v, &e);
    vector<int> adjlist[v+1];
    for(int i = 0; i < e; i++){
        int a, b;
        scanf("%d %d", &a, &b);
        adjlist[a].push_back(b);
        adjlist[b].push_back(a);
    }
}

Compilation message

pipes.cpp: In function 'int main()':
pipes.cpp:6:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d", &v, &e);
     ~~~~~^~~~~~~~~~~~~~~~~
pipes.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d %d", &a, &b);
         ~~~~~^~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 256 KB Wrong number of edges
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 640 KB Wrong number of edges
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 165 ms 8296 KB Output is correct
2 Incorrect 159 ms 7864 KB Wrong number of edges
# Verdict Execution time Memory Grader output
1 Correct 316 ms 11384 KB Output is correct
2 Incorrect 352 ms 16356 KB Wrong number of edges
# Verdict Execution time Memory Grader output
1 Runtime error 550 ms 21172 KB Memory limit exceeded (if you are sure your verdict is not MLE, please contact us)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 924 ms 23928 KB Memory limit exceeded (if you are sure your verdict is not MLE, please contact us)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1436 ms 44996 KB Memory limit exceeded (if you are sure your verdict is not MLE, please contact us)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2043 ms 62044 KB Memory limit exceeded (if you are sure your verdict is not MLE, please contact us)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2517 ms 59008 KB Memory limit exceeded (if you are sure your verdict is not MLE, please contact us)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2765 ms 65540 KB Execution killed with signal 9 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -