Borderou de evaluare (job #1545968)
Utilizator | Data | 7 decembrie 2015 15:24:16 | |
---|---|---|---|
Problema | Cifra | 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:24:2: error: ‘cin’ was not declared in this scope
cin >> t;
^
user.cpp:24:2: note: suggested alternative:
In file included from user.cpp:1:0:
/usr/include/c++/4.8/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^
user.cpp:29:4: error: ‘cout’ was not declared in this scope
cout << suma(n) % 10 << endl ;
^
user.cpp:29:4: note: suggested alternative:
In file included from user.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note: ‘std::cout’
extern ostream cout; /// Linked to standard output
^
user.cpp:29:28: error: ‘endl’ was not declared in this scope
cout << suma(n) % 10 << endl ;
^
user.cpp:29:28: note: suggested alternative:
In file included from /usr/include/c++/4.8/iostream:39:0,
from user.cpp:1:
/usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^
user.cpp:22:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen( "cifra.in", "r" , stdin);
^
user.cpp:23:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ( "cifra.out" , "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !