Borderou de evaluare (job #2426507)
Utilizator | Data | 28 mai 2019 14:23:46 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:1: error: stray '\177' in program
#include <bits/stdc++.h>
^
main.cpp:1:2: error: stray '#' in program
#include <bits/stdc++.h>
^
main.cpp:1:3: error: 'include' does not name a type
#include <bits/stdc++.h>
^~~~~~~
main.cpp:4:1: error: 'ifstream' does not name a type
ifstream in("cautbin.in");
^~~~~~~~
main.cpp:5:1: error: 'ofstream' does not name a type
ofstream out("cautbin.out");
^~~~~~~~
main.cpp: In function 'int cbin(int)':
main.cpp:10:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int msk=1<<20;msk>0;msk/=2)
^~~
main.cpp:13:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return pos;
^~~~~~
main.cpp: In function 'int main()':
main.cpp:19:5: error: 'in' was not declared in this scope
in>>n;
^~
main.cpp:32:17: error: 'out' was not declared in this scope
out<<p<<'\n';
^~~
main.cpp:34:17: error: 'out' was not declared in this scope
out<<"-1"<<'\n';
^~~
main.cpp:39:13: error: 'out' was not declared in this scope
out<<p<<'\n';
^~~
main.cpp:44:13: error: 'out' was not declared in this scope
out<<p+1<<'\n';
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !