1
0
UAHCode/CPE455/lab06/cppcheck.txt

25 lines
966 B
Plaintext
Raw Permalink Normal View History

2022-08-28 21:12:16 +00:00
ec3.cpp:11:6: error: Array 'a[10]' accessed at index 10, which is out of bounds. [arrayIndexOutOfBounds]
a[10] = 0;
^
ec3.cpp:16:10: error: Array 'a[10]' accessed at index 10, which is out of bounds. [arrayIndexOutOfBounds]
a[k] = k;
^
ec3.cpp:62:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn]
return false;
^
ec3.cpp:33:6: error: Null pointer dereference: x [nullPointer]
*x = 1;
^
ec3.cpp:32:14: note: Assignment 'x=0', assigned value is 0
int* x = 0;
^
ec3.cpp:33:6: note: Null pointer dereference
*x = 1;
^
ec3.cpp:29:6: error: Uninitialized variable: p [uninitvar]
*p = 5;
^
ec3.cpp:47:12: error: Memory is allocated but not initialized: r [uninitdata]
delete r;
^