src\errors.cpp:2:2: information: Include file: <iostream> not found. Please note: Standard library headers do not need to be provided to get proper results. [missingIncludeSystem]
#include <iostream>
 ^
src\errors.cpp:13:21: error: Array 'arr[3]' accessed at index 10, which is out of bounds. [arrayIndexOutOfBounds]
    std::cout << arr[10] << std::endl;
                    ^
src\errors.cpp:7:19: error: Null pointer dereference: p [nullPointer]
    std::cout << *p << std::endl;
                  ^
src\errors.cpp:6:14: note: Assignment 'p=nullptr', assigned value is 0
    int* p = nullptr;
             ^
src\errors.cpp:7:19: note: Null pointer dereference
    std::cout << *p << std::endl;
                  ^
src\errors.cpp:6:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer]
    int* p = nullptr;
         ^
src\errors.cpp:12:9: style: Variable 'arr' can be declared as const array [constVariable]
    int arr[3] = {1,2,3};
        ^
src\errors.cpp:19:9: error: Uninitialized variable: val [uninitvar]
    if (val > 10) {
        ^
src\memory.cpp:2:2: information: Include file: <cstdio> not found. Please note: Standard library headers do not need to be provided to get proper results. [missingIncludeSystem]
#include <cstdio>
 ^
src\memory.cpp:3:2: information: Include file: <cstdlib> not found. Please note: Standard library headers do not need to be provided to get proper results. [missingIncludeSystem]
#include <cstdlib>
 ^
src\memory.cpp:9:1: error: Memory leak: data [memleak]
}
^
src\memory.cpp:15:12: error: Memory pointed to by 'p' is freed twice. [doubleFree]
    delete p;
           ^
src\memory.cpp:14:5: note: Memory pointed to by 'p' is freed twice.
    delete p;
    ^
src\memory.cpp:15:12: note: Memory pointed to by 'p' is freed twice.
    delete p;
           ^
src\memory.cpp:22:1: error: Resource leak: fp [resourceLeak]
}
^
src\memory.cpp:7:10: style: Variable 'data' can be declared as pointer to const [constVariablePointer]
    int* data = new int[100];
         ^
src\memory.cpp:20:11: style: Variable 'fp' can be declared as pointer to const [constVariablePointer]
    FILE* fp = fopen("test.txt", "w");
          ^
src\memory.cpp:14:12: error: Memory is allocated but not initialized: p [uninitdata]
    delete p;
           ^
src\memory.cpp:7:15: style: Variable 'data' is assigned a value that is never used. [unreadVariable]
    int* data = new int[100];
              ^
src\memory.cpp:7:10: style: Variable 'data' is allocated memory that is never used. [unusedAllocatedMemory]
    int* data = new int[100];
         ^
src\memory.cpp:13:10: style: Variable 'p' is allocated memory that is never used. [unusedAllocatedMemory]
    int* p = new int;
         ^
src\memory.cpp:20:14: style: Variable 'fp' is assigned a value that is never used. [unreadVariable]
    FILE* fp = fopen("test.txt", "w");
             ^
src\utils.cpp:2:2: information: Include file: <iostream> not found. Please note: Standard library headers do not need to be provided to get proper results. [missingIncludeSystem]
#include <iostream>
 ^
src\utils.cpp:6:11: style: Variable 'a' is assigned a value that is never used. [unreadVariable]
    int a = 10;
          ^
src\utils.cpp:11:11: style: Variable 'x' is assigned a value that is never used. [unreadVariable]
    int x = 100;
          ^
src\utils.cpp:5:13: style: The function 'unused_function' is never used. [unusedFunction]
static void unused_function() {
            ^
nofile:0:0: information: Active checkers: 173/186 (use --checkers-report=<filename> to see details) [checkersReport]

