Borderou de evaluare (job #1288696)

Utilizator RatkinHHKNica Dan RatkinHHK Data 8 decembrie 2014 23:32:16
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:11: error: ‘::main’ must return ‘int’ void main() ^ user.cpp: In function ‘int main()’: user.cpp:8:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(input,"%d", &a); ^ user.cpp:9:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(input,"%d", &b); ^ user.cpp:13:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(output, "%d", a + b); ^ user.cpp:8:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(input,"%d", &a); ^ user.cpp:9:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(input,"%d", &b); ^

Ceva nu functioneaza?