[ create a new paste ] login | about

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

C, pasted on Jul 15:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
int main(){
    int nbredenote;
    int sommedesnotes;
    scanf ("%d", &nbredenote);
    for (int i=0; i<nbredenote; i++){
        scanf ("%d", &sommedesnotes);
    }
    return 0;
}


Output:
1
2
In function 'main':
Line 6: error: 'for' loop initial declaration used outside C99 mode


Create a new paste based on this one


Comments: