Borderou de evaluare (job #2331867)
Utilizator | Data | 30 ianuarie 2019 07:31:28 | |
---|---|---|---|
Problema | Reteta2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:8: error: expected initializer before '*' token
char p*;
^
main.cpp:9:14: error: 'reteta2' was not declared in this scope
ifstream in(reteta2.in);
^~~~~~~
main.cpp:15:13: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator>>'
in.getline>>r.lungime[1001];
~~~~~~~~~~^~~~~~~~~~~~~~~~~
main.cpp:16:10: error: 'p' was not declared in this scope
strtok(p,")");
^
main.cpp:17:21: error: invalid conversion from 'char' to 'char*' [-fpermissive]
strcpy(r.lungime[0],r.timp_prep);
~~~~~~~~~~~^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/iostream:38,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: initializing argument 1 of 'char* strcpy(char*, const char*)'
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !