Borderou de evaluare (job #1048761)
Utilizator | Data | 6 decembrie 2013 13:04:54 | |
---|---|---|---|
Problema | Desen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:20: warning: left operand of comma operator has no effect [-Wunused-value]
FILE*f=("desen.in","r");
^
user.cpp:5:23: error: cannot convert ‘const char*’ to ‘FILE* {aka _IO_FILE*}’ in initialization
FILE*f=("desen.in","r");
^
user.cpp:6:21: warning: left operand of comma operator has no effect [-Wunused-value]
FILE*g=("desen.out","w");
^
user.cpp:6:24: error: cannot convert ‘const char*’ to ‘FILE* {aka _IO_FILE*}’ in initialization
FILE*g=("desen.out","w");
^
user.cpp:14:1: error: ‘priority_queue’ does not name a type
priority_queue<pair<int,double>,vector<pair<int,double> >,compar> q;
^
user.cpp:51:1: error: expected ‘}’ at end of input
}
^
user.cpp: In member function ‘void compar::apm(std::vector<std::pair<int, int> >)’:
user.cpp:19:19: error: ‘memset’ was not declared in this scope
memset(s,n+1,0);
^
user.cpp:20:24: error: conflicting declaration ‘double nr’
double ct=0.000000,nr=1000000.000000;
^
user.cpp:17:24: error: ‘nr’ has a previous declaration as ‘int nr’
int mini=1,s[1001],nr=0;
^
user.cpp:26:9: error: ‘q’ was not declared in this scope
q.push(v[mini][i]);
^
user.cpp:28:13: error: ‘q’ was not declared in this scope
while(s[q.top().first]==1)
^
user.cpp:30:7: error: ‘q’ was not declared in this scope
h=q.top();
^
user.cpp: In member function ‘int compar::main()’:
user.cpp:39:22: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
fscanf(f,"%ld",&n);
^
user.cpp:42:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
fscanf(f,"%ld",&x,&y);
^
user.cpp:42:29: warning: too many arguments for format [-Wformat-extra-args]
user.cpp:47:60: warning: value computed is not used [-Wunused-value]
v[j].push_back(make_pair(i,sqrt(pow((a[j].first-a[i].first,2)+pow(a[j].second-a[i].second,2)))));
^
user.cpp:47:104: error: ‘pow’ was not declared in this scope
v[j].push_back(make_pair(i,sqrt(pow((a[j].first-a[i].first,2)+pow(a[j].second-a[i].second,2)))));
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !