Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Score

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.13 sec, absolute running time: 0.22 sec, cpu time: 0.14 sec, memory peak: 3 Mb, absolute service time: 0,44 sec 
edit mode |  history  | discussion
Warning(s):
source_file.c: In function ‘main’:
source_file.c:16:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s",studentName);
     ^
source_file.c:19:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s",courseName);
     ^
source_file.c:22:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s",professor);
     ^
source_file.c:25:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&room);
     ^
source_file.c:28:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s",semester);
     ^
source_file.c:31:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&year);
     ^
source_file.c:34:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%f",&score);
     ^
Please enter student name: 
Please enter name of the course: 
Please enter professor teaching name of the course: 
Please enter room:
Please enter semester:
Please enter year:
Please enter score: