Borderou de evaluare (job #2321500)
Utilizator | Data | 16 ianuarie 2019 10:11:06 | |
---|---|---|---|
Problema | Identitate | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int calc()':
main.cpp:16:7: error: 'i' was not declared in this scope
for(i = 0
^
main.cpp:17:1: error: expected primary-expression before '}' token
}
^
main.cpp:17:1: error: expected ';' before '}' token
main.cpp:17:1: error: expected primary-expression before '}' token
main.cpp:17:1: error: expected ')' before '}' token
main.cpp:17:1: error: expected primary-expression before '}' token
main.cpp:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
main.cpp: In function 'int main()':
main.cpp:44:13: error: too few arguments to function 'void add(int, int, int)'
add(i, 1);
^
main.cpp:7:13: note: declared here
inline void add(int x, int a, int c){
^~~
main.cpp:46:19: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d", rez);
^
main.cpp:22:25: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(s, MAXN + 2, in);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !