Borderou de evaluare (job #3249952)
Utilizator | Data | 18 octombrie 2024 20:20:21 | |
---|---|---|---|
Problema | Stiva | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: 'ifstream' does not name a type
7 | ifstream cin("stiva.in");
| ^~~~~~~~
main.cpp:8:1: error: 'ofstream' does not name a type
8 | ofstream cout("stiva.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:16:5: error: 'cin' was not declared in this scope
16 | cin.getline(v, 501);
| ^~~
main.cpp:7:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
6 | #include <fstream>
+++ |+#include <iostream>
7 | ifstream cin("stiva.in");
main.cpp:49:21: error: 'cout' was not declared in this scope
49 | cout << s.top();
| ^~~~
main.cpp:49:21: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:62:5: error: 'cout' was not declared in this scope
62 | cout << cnt;
| ^~~~
main.cpp:62:5: 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 !