Borderou de evaluare (job #1862085)
Utilizator | Data | 29 ianuarie 2017 15:24:17 | |
---|---|---|---|
Problema | Evaluare 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long int power(long long int&)’:
user.cpp:44:23: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’
ll x = getNumber(p);
^
user.cpp:13:4: error: in passing argument 1 of ‘long long int getNumber(int&)’
ll getNumber(int &p);
^
user.cpp: In function ‘int main()’:
user.cpp:17:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("evaluare2.in", "r", stdin);
^
user.cpp:18:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("evaluare2.out", "w", stdout);
^
user.cpp:19:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s + 1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !