Borderou de evaluare (job #1955524)

Utilizator 1475369147896537415369Andrei Udriste 1475369147896537415369 Data 6 aprilie 2017 01:16:00
Problema Dk Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:49:55: error: ‘S’ was not declared in this scope for(int i = 0; buffer[i+1]; i++) N = N * 10 + S[i] - '0'; ^ user.cpp:41:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dk.in", "r", stdin); ^ user.cpp:42:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dk.out", "w", stdout); ^ user.cpp:44:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:48:45: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(buffer, sizeof(buffer), stdin); N = 0; ^

Ceva nu functioneaza?