Borderou de evaluare (job #706627)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Investitie (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 mar. 2023 22:46:32 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In constructor 'cycle::cycle(std::vector<long long int>&, int64_t)':
main.cpp:15:9: warning: 'cycle::l' will be initialized after [-Wreorder]
15 | int l;
| ^
main.cpp:14:21: warning: 'std::vector<long long int> cycle::vec' [-Wreorder]
14 | vector<int64_t> vec, sump;
| ^~~
main.cpp:16:5: warning: when initialized here [-Wreorder]
16 | cycle(vector<int> &vec, int l) : l(l), vec(vec)
| ^~~~~
main.cpp: In function 'int64_t ansCol(int64_t, int64_t, int64_t)':
main.cpp:97:9: warning: unused variable 'elem' [-Wunused-variable]
97 | int elem = c.vec[pozelem];
| ^~~~
main.cpp: At global scope:
main.cpp:4:13: error: '::main' must return 'int'
4 | #define int int64_t
| ^~~~~~~
main.cpp:136:1: note: in expansion of macro 'int'
136 | int main()
| ^~~