Borderou de evaluare (job #2201307)
Utilizator | Data | 4 mai 2018 10:38:25 | |
---|---|---|---|
Problema | Sticle | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:7:3: error: ‘cin’ was not declared in this scope
cin >> t;
^~~
user.cpp:7:3: note: suggested alternative:
In file included from user.cpp:1:0:
/usr/include/c++/6/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^~~
user.cpp:14:5: error: ‘cout’ was not declared in this scope
cout << lg << "\n";
^~~~
user.cpp:14:5: note: suggested alternative:
In file included from user.cpp:1:0:
/usr/include/c++/6/iostream:61:18: note: ‘std::cout’
extern ostream cout; /// Linked to standard output
^~~~
user.cpp:4:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sticle.in", "r", stdin);
^
user.cpp:5:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sticle.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !