Borderou de evaluare (job #1745013)
Utilizator | Data | 20 august 2016 22:47:04 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:1: error: expected ‘,’ or ‘;’ before ‘using’
using namespace std;
^
user.cpp: In function ‘int main()’:
user.cpp:17:5: error: ‘cin’ was not declared in this scope
cin >> n >> p;
^
user.cpp:17:5: 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:38:5: error: ‘cout’ was not declared in this scope
cout << n;
^
user.cpp:38:5: 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:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lgput.in", "r", stdin);
^
user.cpp:14:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lgput.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !