Borderou de evaluare (job #2703891)
Utilizator | Data | 9 februarie 2021 14:01:34 | |
---|---|---|---|
Problema | Blis | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: 'vector' does not name a type
vector<pair<int, int>> updates[2 + MAX_N];
^~~~~~
main.cpp: In function 'int main()':
main.cpp:52:9: error: 'updates' was not declared in this scope
updates[j].push_back({right, number});
^~~~~~~
main.cpp:55:19: error: 'updates' was not declared in this scope
for (auto p : updates[i])
^~~~~~~
main.cpp:28:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("blis.in", "r", stdin);
^
main.cpp:29:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("blis.out", "w", stdout);
^
main.cpp:32:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n%s", &k, s + 1);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !