Borderou de evaluare (job #2181166)
Utilizator | Data | 21 martie 2018 15:02:33 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void cer0()’:
user.cpp:14:9: error: ‘i’ was not declared in this scope
for(i=-1;logn;logn<<=1)
^
user.cpp:17:10: error: ‘i’ was not declared in this scope
if(v[i]==x)
^
user.cpp:18:24: error: ‘pritnf’ was not declared in this scope
pritnf("%d",i+1);
^
user.cpp: In function ‘void cer1()’:
user.cpp:26:9: error: ‘i’ was not declared in this scope
for(i=n-1;logn;logn<<=1)
^
user.cpp:29:17: error: ‘i’ was not declared in this scope
printf("%d",i+1);
^
user.cpp: In function ‘void cer2()’:
user.cpp:35:9: error: ‘i’ was not declared in this scope
for(i=-1;logn;logn<<=1)
^
user.cpp:38:17: error: ‘i’ was not declared in this scope
printf("%d",i+1);
^
user.cpp: In function ‘void cer0()’:
user.cpp:13:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp: In function ‘void cer1()’:
user.cpp:25:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp: In function ‘void cer2()’:
user.cpp:34:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp: In function ‘int main()’:
user.cpp:44:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:47:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
user.cpp:48:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&q);
^
user.cpp:51:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&cer);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !