Borderou de evaluare (job #1817348)
Utilizator | Data | 27 noiembrie 2016 17:51:57 | |
---|---|---|---|
Problema | Orase1 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:1: error: expected initializer before ‘using’
using namespace std;
^
user.cpp:5:1: error: ‘ifstream’ does not name a type
ifstream cin(orase.in);
^
user.cpp:6:1: error: ‘ofstream’ does not name a type
ofstream cout(orase1.out);
^
user.cpp:7:26: error: ‘st’ does not name a type
int A[100010],N,k,k1,pos;st,dr,mid;
^
user.cpp: In function ‘int check(int)’:
user.cpp:11:41: error: ‘upper_bound’ was not declared in this scope
pos=upper_bound(A+i,A+N+1,A[i]+x)-a-1;
^
user.cpp:11:41: note: suggested alternative:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:2544:5: note: ‘std::upper_bound’
upper_bound(_ForwardIterator __first, _ForwardIterator __last,
^
user.cpp:11:43: error: ‘a’ was not declared in this scope
pos=upper_bound(A+i,A+N+1,A[i]+x)-a-1;
^
user.cpp: In function ‘int main()’:
user.cpp:17:6: error: ‘cin’ was not declared in this scope
cin>>N>>k1;
^
user.cpp:17:6: note: suggested alternative:
In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0,
from user.cpp:2:
/usr/include/c++/4.8/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^
user.cpp:23:7: error: ‘ll’ was not declared in this scope
ll st=1; ll dr=987654321123;
^
user.cpp:23:10: error: expected ‘;’ before ‘st’
ll st=1; ll dr=987654321123;
^
user.cpp:23:19: error: expected ‘;’ before ‘dr’
ll st=1; ll dr=987654321123;
^
user.cpp:24:15: error: ‘dr’ was not declared in this scope
while(dr>=st){
^
user.cpp:24:19: error: ‘st’ was not declared in this scope
while(dr>=st){
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !