Borderou de evaluare (job #1783499)
Utilizator | Data | 19 octombrie 2016 01:17:36 | |
---|---|---|---|
Problema | A+B | 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:2: error: ‘cin’ was not declared in this scope
cin >> a >> b;
^
user.cpp:7: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:8:2: error: ‘cout’ was not declared in this scope
cout << *a + *b;
^
user.cpp:8:2: 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:3:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("adunare.in", "r", stdin);
^
user.cpp:4:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("adunare.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !