14962022-11-21 14:01:32teodorbatkaiMicimackó (40 pont)cpp11Compilation error
#include <bits/stdc++.h>

using namespace std;

int main(){
    int n, m, k, v;
    cin >> n >> m >> k >> v;
    k -= n;
    if(n < 0) n = 0;
    v += x;
    v -= n + m;
    if(v < 0) v = 0;
    cout << v << endl;
}
Compilation error
exit status 1
main.cpp: In function 'int main()':
main.cpp:10:10: error: 'x' was not declared in this scope
   10 |     v += x;
      |          ^
Exited with error status 1