Borderou de evaluare (job #1209853)
Utilizator | Data | 18 iulie 2014 19:52:50 | |
---|---|---|---|
Problema | Coduri Huffman | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:22:36: error: ISO C++ forbids declaration of ‘iaper’ with no type [-fpermissive]
inline iaper(pair<long long,int> &x){
^
user.cpp: In function ‘int iaper(std::pair<long long int, int>&)’:
user.cpp:33:12: error: ‘y’ was not declared in this scope
if(x < y)
^
user.cpp:37:9: error: ‘ret’ was not declared in this scope
ret
^
user.cpp:38:5: error: expected ‘;’ before ‘}’ token
}
^
user.cpp:23:15: warning: unused variable ‘v1’ [-Wunused-variable]
long long v1,v2;
^
user.cpp:23:18: warning: unused variable ‘v2’ [-Wunused-variable]
long long v1,v2;
^
user.cpp: In function ‘int main()’:
user.cpp:77:20: error: too few arguments to function ‘int iaper(std::pair<long long int, int>&)’
fs = iaper(),
^
user.cpp:22:8: note: declared here
inline iaper(pair<long long,int> &x){
^
user.cpp:78:20: error: too few arguments to function ‘int iaper(std::pair<long long int, int>&)’
fd = iaper(),
^
user.cpp:22:8: note: declared here
inline iaper(pair<long long,int> &x){
^
user.cpp:62:19: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:62:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:66:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !