Borderou de evaluare (job #3297591)
Utilizator | Data | 22 mai 2025 23:19:41 | |
---|---|---|---|
Problema | Permutari 3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void AtribMic(int*, int)':
main.cpp:19:25: warning: 'sizeof' on array function parameter 'x' will return size of 'int*' [-Wsizeof-array-argument]
19 | memset(x, 0, sizeof(x));
| ~^~
main.cpp:18:22: note: declared here
18 | void AtribMic(NrMare x, int n) {
| ~~~~~~~^
main.cpp:19:18: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
19 | memset(x, 0, sizeof(x));
| ^~~~~~~~~
main.cpp: In function 'int Update(int, int)':
main.cpp:107:1: warning: no return statement in function returning non-void [-Wreturn-type]
107 | }
| ^
main.cpp: In function 'int main()':
main.cpp:128:14: error: 'vec' was not declared in this scope
128 | f >> vec[i];
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !