Borderou de evaluare (job #2828510)
Utilizator | Data | 7 ianuarie 2022 15:15:56 | |
---|---|---|---|
Problema | Triunghi5 | Status | done |
Runda | oji_clasa10_2019_2016..... | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:37:9: error: 'vector' was not declared in this scope
37 | vector<int> arr(n);
| ^~~~~~
main.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
3 | #include <algorithm>
+++ |+#include <vector>
4 | using namespace std;
main.cpp:37:16: error: expected primary-expression before 'int'
37 | vector<int> arr(n);
| ^~~
main.cpp:39:22: error: 'arr' was not declared in this scope
39 | for(auto& x: arr)
| ^~~
main.cpp:49:13: error: 'arr' was not declared in this scope
49 | arr.push_back(1);
| ^~~
main.cpp:55:13: error: 'arr' was not declared in this scope
55 | arr.push_back(1);
| ^~~
main.cpp:59:9: error: 'arr' was not declared in this scope
59 | arr.push_back((1 << 31) - 1); /// Padding for the loop
| ^~~
main.cpp:59:33: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow]
59 | arr.push_back((1 << 31) - 1); /// Padding for the loop
| ~~~~~~~~~~^~~
main.cpp:60:33: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow]
60 | arr.push_back((1 << 31) - 1);
| ~~~~~~~~~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !