Borderou de evaluare (job #1510485)
Utilizator | Data | 25 octombrie 2015 08:45:03 | |
---|---|---|---|
Problema | Submultimi | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main(int, char**)’:
user.cpp:13:2: error: ‘ofya’ was not declared in this scope
ofya=(1<<n)-1;
^
user.cpp:21:7: error: ‘a’ was not declared in this scope
if(a%2==1){
^
user.cpp:23:19: error: ‘p’ was not declared in this scope
printf("%d ", p);
^
user.cpp:26:4: error: ‘a’ was not declared in this scope
a/=2;
^
user.cpp:27:6: error: ‘p’ was not declared in this scope
++p;
^
user.cpp:17:14: warning: unused variable ‘y’ [-Wunused-variable]
int x=ofya,y=1;
^
user.cpp:6:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("submultimi.in", "r", stdin);
^
user.cpp:7:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("submultimi.out", "w", stdout);
^
user.cpp:11:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !