Borderou de evaluare (job #2237640)
Utilizator | Data | 2 septembrie 2018 15:17:47 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:4:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main(void){
^~~~
user.c: In function ‘main’:
user.c:7:5: error: ‘s’ undeclared (first use in this function)
s
^
user.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
user.c:8:5: error: expected ‘;’ before ‘int’
int nr1, nr2, suma;
^~~
user.c:13:30: error: ‘nr1’ undeclared (first use in this function)
fscanf(inputFile, "%d", &nr1);
^~~
user.c:14:30: error: ‘nr2’ undeclared (first use in this function)
fscanf(inputFile, "%d", &nr2);
^~~
user.c:18:5: error: ‘suma’ undeclared (first use in this function)
suma = nr1 + nr2;
^~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !