Borderou de evaluare (job #1067507)
Utilizator | Data | 26 decembrie 2013 22:21:24 | |
---|---|---|---|
Problema | Coduri Huffman | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In constructor ‘Nod::Nod(Nod*, Nod*, long long int)’:
user.cpp:19:22: warning: ‘Nod::nodInternal2’ will be initialized after [-Wreorder]
Nod *nodInternal1, *nodInternal2;
^
user.cpp:16:12: warning: ‘long long int Nod::suma’ [-Wreorder]
long long suma;
^
user.cpp:25:2: warning: when initialized here [-Wreorder]
Nod (Nod *nod1Nou, Nod *nod2Nou, long long sumaNoua) : nodInternal1(nod1Nou), nodInternal2(nod2Nou), suma(sumaNoua), nod1(-1) { }
^
user.cpp:16:12: warning: ‘Nod::suma’ will be initialized after [-Wreorder]
long long suma;
^
user.cpp:15:12: warning: ‘long long int Nod::nod1’ [-Wreorder]
long long nod1, nod2;
^
user.cpp:25:2: warning: when initialized here [-Wreorder]
Nod (Nod *nod1Nou, Nod *nod2Nou, long long sumaNoua) : nodInternal1(nod1Nou), nodInternal2(nod2Nou), suma(sumaNoua), nod1(-1) { }
^
user.cpp: At global scope:
user.cpp:107:44: error: ‘::main’ must return ‘int’
long long main(long long argc, char* argv[])
^
user.cpp:107:11: warning: first argument of ‘int main(long long int, char**)’ should be ‘int’ [-Wmain]
long long main(long long argc, char* argv[])
^
user.cpp: In function ‘int main(long long int, char**)’:
user.cpp:115:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
long long i, n; fscanf (in, "%d", &n);
^
user.cpp:118:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
long long x; fscanf (in, "%d", &x);
^
user.cpp:144:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf (out, "%d\n", suma);
^
user.cpp:147:43: error: ‘sort’ was not declared in this scope
sort (paths.begin(), paths.end(), cmpFunc);
^
user.cpp:149:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf (out, "%d %d\n", it->first, it->second);
^
user.cpp:149:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long long int’ [-Wformat=]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !