Borderou de evaluare (job #3250018)

Utilizator dorupopDoru Pop dorupop Data 19 octombrie 2024 08:52:40
Problema Zero Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp: In function 'void atrib(int*, int*)': main.cpp:27:20: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument] 27 | memset(a,0,sizeof(a)); | ~^~ main.cpp:25:16: note: declared here 25 | void atrib(int a[], int b[]) | ~~~~^~~ main.cpp:27:13: 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] 27 | memset(a,0,sizeof(a)); | ^~~~~~~~~ main.cpp: In function 'int main()': main.cpp:108:6: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 108 | else | ^~~~ main.cpp:110:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 110 | for(int i=2;i<=l;i++) | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbWrong answer0
20ms303kbWrong answer0
30ms303kbWrong answer0
40ms303kbOkay!5
50ms303kbWrong answer0
60ms303kbWrong answer0
70ms303kbWrong answer0
80ms303kbOkay!5
90ms303kbOkay!5
100ms303kbWrong answer0
110ms303kbWrong answer0
120ms303kbWrong answer0
130ms561kbWrong answer0
140ms561kbWrong answer0
150ms557kbWrong answer0
160ms303kbWrong answer0
170ms303kbOkay!5
180ms303kbOkay!5
190ms303kbOkay!5
200ms303kbWrong answer0
Punctaj total30

Ceva nu functioneaza?