fork download
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <cstdlib>
  5. #include <cassert>
  6. using namespace std;
  7.  
  8. int main(void)
  9. {
  10. int n, m, d, v;
  11. scanf("%d%d%d", &n, &m, &d);
  12. for(int i = 0;i < n;i++) scanf("%d", &v);
  13. assert(v <= d);
  14. }
Runtime error #stdin #stdout #stderr 0s 3472KB
stdin
1 0 5
10
stdout
Standard output is empty
stderr
prog: prog.cpp:13: int main(): Assertion `v <= d' failed.