Borderou de evaluare (job #3160223)
Utilizator | Data | 23 octombrie 2023 12:56:52 | |
---|---|---|---|
Problema | Problema rucsacului | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:1: error: 'Ifstream' does not name a type
4 | Ifstream cin("rucsac.in");
| ^~~~~~~~
main.cpp:5:1: error: 'Ofstream' does not name a type
5 | Ofstream cout("rucsac.out");
| ^~~~~~~~
main.cpp: In function 'int afisare()':
main.cpp:25:5: error: 'cout' was not declared in this scope
25 | cout<<s1;
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
26 | }
| ^
main.cpp: In function 'int main()':
main.cpp:28:2: error: 'cin' was not declared in this scope
28 | {cin>>n>>G;
| ^~~
main.cpp:28:2: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:29:18: error: 'cout' was not declared in this scope
29 | if(n==0 || G==0) cout<<0;
| ^~~~
main.cpp:29:18: 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 !