[ create a new paste ] login | about

Link: http://codepad.org/8fkqvQ2i    [ raw code | output | fork ]

C, pasted on May 14:
1
2
3
4
5
6
7
8
9
10
#include<stdio.h>
int somar(){
return 1 + 2.15;
}
int main(){
int resultado = 0;
resultado = somar();
printf(O resultado da funcao e = %d,resultado);
return 0;
} 


Output:
1
2
3
4
5
6
7
8
9
10
11
In function 'main':
Line 8: error: stray '\342' in program
Line 8: error: stray '\200' in program
Line 8: error: stray '\234' in program
Line 8: error: 'O' undeclared (first use in this function)
Line 8: error: (Each undeclared identifier is reported only once
Line 8: error: for each function it appears in.)
Line 8: error: expected ')' before 'resultado'
Line 8: error: stray '\342' in program
Line 8: error: stray '\200' in program
Line 8: error: stray '\235' in program


Create a new paste based on this one


Comments: