Borderou de evaluare (job #3376591)
| Utilizator | Data | 18 noiembrie 2026 14:21:36 | |
|---|---|---|---|
| Problema | Combinari | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <bits/stdc++.h>
| ^~~~~~~
| include
main.cpp:5:1: error: 'vector' does not name a type
5 | vector <int> a;
| ^~~~~~
main.cpp: In function 'bool lal()':
main.cpp:9:12: error: 'a' was not declared in this scope
9 | if(a[i]<n-k+1){
| ^
main.cpp: In function 'int main()':
main.cpp:22:5: error: 'ifstream' was not declared in this scope
22 | ifstream cin("combinari.in");
| ^~~~~~~~
main.cpp:1:1: note: 'std::ifstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
+++ |+#include <fstream>
1 | #inlcude <bits/stdc++.h>
main.cpp:23:5: error: 'ofstream' was not declared in this scope
23 | ofstream cout("combinari.out");
| ^~~~~~~~
main.cpp:23:5: note: 'std::ofstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
main.cpp:24:5: error: 'cin' was not declared in this scope
24 | cin>>n>>k;
| ^~~
main.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | #inlcude <bits/stdc++.h>
main.cpp:25:5: error: 'a' was not declared in this scope
25 | a.resize(k+1);
| ^
main.cpp:31:13: error: 'cout' was not declared in this scope
31 | cout<<a[i]<<" ";
| ^~~~
main.cpp:31:13: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:33:9: error: 'cout' was not declared in this scope
33 | cout<<'\n';
| ^~~~
main.cpp:33:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
